Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

Posted
20 hours ago, cag014 said:

@SmartLifeSystems

I'm curious, is it works?

{0, "108",{state="value=true#4",timeSlot="21:30~?$sunriseHour+1800?",trueAct={{"91","turnOn","{138:value=0}"},{"91","turnOff","90"}}}},

Hi cag,

 

I tried, but unfortunately don't working. :(

  • Topic Author
  • Posted

    What exactly doesn't work?

    Posted
    8 minutes ago, cag014 said:

    What exactly doesn't work?

    Don't turn on the lamp. I tried without #4, and don't work absolute.

     

     

     

  • Topic Author
  • Posted

    Thanks, will fix it

     

  • Topic Author
  • Posted (edited)
    41 minutes ago, SmartLifeSystems said:

    Don't turn on the lamp. I tried without #4, and don't work absolute.

     

     

     

    Did you do it in correct time-slot between 21:30~?$sunriseHour+1800?"

    TO debug it, please try that:

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","{138:value=0}"},{"91","turnOff","90"}}}},

    Edited by cag014
    Posted
    22 hours ago, cag014 said:

    Did you do it in correct time-slot between 21:30~?$sunriseHour+1800?"

    TO debug it, please try that:

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","{138:value=0}"},{"91","turnOff","90"}}}},

    Hi cag,

     

    I tried without the timslot, but don't working.

    I tried without the timeslot and the state delay too, and nothing. The lamp don't turn on.

    Posted

    hi cag014,

    {0,"&consdoor",{state="value=open",trueAct={"`stat`","setTargetLevel,&mintemp","600"}}},
    {0,"&consdoor",{state="value=closed",trueAct={"`stat`","setTargetLevel,&settemp",""}}},   

     

    consdoor is a global variable in which i store the conservatory door state if this door is open for ten minutes i wish to turn the heating thermostat down to a global called mintemp

    when the door is closed i return the thermostat to what it was set to before the door was opened (settemp)

     

    would the lines above work? and i am sure you have a much better way of achieving this :)

    second question:-

    if the conservatory door is closed during the ten minute wait time will it just cancel the timer?

    Thanks

    Len

  • Topic Author
  • Posted
    8 hours ago, SmartLifeSystems said:

    Hi cag,

     

    I tried without the timslot, but don't working.

    I tried without the timeslot and the state delay too, and nothing. The lamp don't turn on.

    Do you use this exact line?

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","{138:value=true}"},{"91","turnOff","90"}}}},

     

    There is format error (my bad)

    Please try

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","","{138:value=true}"},{"91","turnOff","90"}}}},

    Sorry

  • Topic Author
  • Posted (edited)
    4 hours ago, magicman said:

    hi cag014,

    {0,"&consdoor",{state="value=open",trueAct={"`stat`","setTargetLevel,&mintemp","600"}}},
    {0,"&consdoor",{state="value=closed",trueAct={"`stat`","setTargetLevel,&settemp",""}}},   

     

    consdoor is a global variable in which i store the conservatory door state if this door is open for ten minutes i wish to turn the heating thermostat down to a global called mintemp

    when the door is closed i return the thermostat to what it was set to before the door was opened (settemp)

     

    would the lines above work? and i am sure you have a much better way of achieving this :)

    second question:-

    if the conservatory door is closed during the ten minute wait time will it just cancel the timer?

    Thanks

    Len

    1. Yes,it should work.

    2. No, it won't cancel the timer. May I suggest as follow

    {0,"&consdoor",{state="value=open",trueAct={"`stat`","setTargetLevel,&mintemp","600"},falseAct={"`stat`","setTargetLevel,&settemp",""}}},

    Now if the door closed, truAct{} cancelled and falseAct{} executed

    Edited by cag014
    Posted

    wonderful thanks cag014

    Posted
    On 4/22/2020 at 7:31 PM, cag014 said:

    Do you use this exact line?

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","{138:value=true}"},{"91","turnOff","90"}}}},

     

    There is format error (my bad)

    Please try

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","","{138:value=true}"},{"91","turnOff","90"}}}},

    Sorry

     

     

    Hi cag!

     

    I tried, but unfortunatley don't working. :(

  • Topic Author
  • Posted

    Looks like an issue with Home Theater  status!?

    Try without

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn",""},{"91","turnOff","90"}}}},

    Posted
    6 hours ago, cag014 said:

    Looks like an issue with Home Theater  status!?

    Try without

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn",""},{"91","turnOff","90"}}}},

     

     

    That's working fine.

     

     

    Currently i use it this way:

     

    {0, "108",{state="value=true#4",timeSlot="21:30~?$sunriseHour+1800?",trueAct={"91","turnOn",""},falseAct={"91","turnOff","90"}}},

  • Topic Author
  • Posted

    OK,

    Now can you tell me what Home Theater value when it is off?

    Or post the device data  http://hc2/api/devices/<HT-ID> when it's OFF and when it's ON. 

    Posted
    23 minutes ago, cag014 said:

    OK,

    Now can you tell me what Home Theater value when it is off?

    Or post the device data  http://hc2/api/devices/<HT-ID> when it's OFF and when it's ON. 

    This device is a wall plug.

     

    Another scene, where is use, the value parameters when turn off = 0, when turn on = true.

     

    Here is the device link:

     

    Please login or register to see this code.

  • Topic Author
  • Posted

    Looks like when value=true the switch is ON.

    My question, do you actually using switch to turn ON/OFF Home Theater ? The reason I'm asking, because in my case the switch is constantly ON and Home Theater activated by remote control. I use energy value as condition.

  • Topic Author
  • Posted

    By the way try follow:

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","","{138:value=false}"},{"91","turnOff","90"}}}},

    Posted
    4 minutes ago, cag014 said:

    By the way try follow:

    {0, "108",{state="value=true#4",trueAct={{"91","turnOn","","{138:value=false}"},{"91","turnOff","90"}}}},

     

    OMG. That's working fine!

    Thank you very much!!!!

     

    I add the time slot too, and working too.

  • Topic Author
  • Posted

    Great...

    Posted
    4 minutes ago, cag014 said:

    Great...

    Thank you again your help!!!

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...