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


All-in-One Scene: How to do it Better


cag014

Recommended Posts

On 4/7/2020 at 11:29 PM, cag014 said:

Yes... but the format slightly different.. without OR 

lineState={"{&housestatus:value=safe}{&notifications:value=on}"}

 

If you need AND condition separate statements by |

lineState={"{&housestatus:value=safe|&notifications:value=on}"}

Hi Cag!

 

Can you help me?

What do you think? This is correct?

 

{0, "148|193",{lineState={"{148:value>0}{193:value>0}"},trueAct={"199","turnOn",""}}},
{0, "148|193",{lineState={"{148:value=0|193:value=0}"},trueAct={"199","turnOff",""}}},
 

Because don't working and i don't know what is the problem.

 

Thanks your answer!

Edited by SmartLifeSystems
Link to comment
Share on other sites

  • Topic Author
  • You're missing the state to determine when the status is true in order to verify the conditions and to take true-action?

    There are several options to trigger the line, here two of them:

    1. Replace trueAct by trigAct. Means every change on value of device the line is triggered and if conditions are true, trigAct executed.
      • {0, "148|193",{lineState={"{148:value>0}{193:value>0}"},trigAct={"199","turnOn",""}}},
      • {0, "148|193",{lineState={"{148:value=0|193:value=0}"},trigAct={"199","turnOff",""}}},
    2. Define state and use trueAct and falseAct commands (with conditions):
      • {0, "148|193",{state="value>0", trueAct={"199","turnOn",""}, falseAct("199","turnOff","","{148,149:value=0}"}}},

    I suggest to use second option (more readable and less lines in table view). Let me know if it works for you?

     

    BTW:

    Devices with same condition statement could be concatenated, separated by comma ‘ , ’

    {0, "148|193",{lineState={"{148,193:value=0}"},trigAct={"199","turnOff",""}}},

     

    Link to comment
    Share on other sites

    3 hours ago, cag014 said:

    You're missing the state to determine when the status is true in order to verify the conditions and to take true-action?

    There are several options to trigger the line, here two of them:

    1. Replace trueAct by trigAct. Means every change on value of device the line is triggered and if conditions are true, trigAct executed.
      • {0, "148|193",{lineState={"{148:value>0}{193:value>0}"},trigAct={"199","turnOn",""}}},
      • {0, "148|193",{lineState={"{148:value=0|193:value=0}"},trigAct={"199","turnOff",""}}},
    2. Define state and use trueAct and falseAct commands (with conditions):
      • {0, "148|193",{state="value>0", trueAct={"199","turnOn",""}, falseAct("199","turnOff","","{148,149:value=0}"}}},

    I suggest to use second option (more readable and less lines in table view). Let me know if it works for you?

     

    BTW:

    Devices with same condition statement could be concatenated, separated by comma ‘ , ’

    {0, "148|193",{lineState={"{148,193:value=0}"},trigAct={"199","turnOff",""}}},

     

     

    Thanks for your help!

     

    This combo working fine.

     

    • {0, "148|193",{lineState={"{148:value>0}{193:value>0}"},trigAct={"199","turnOn",""}}},
    • {0, "148|193",{lineState={"{148:value=0|193:value=0}"},trigAct={"199","turnOff",""}}},

     

    But it's interesting at the turnOff function that i had to write 0 to false.

     

     

    Link to comment
    Share on other sites

    hi cag014,

    i have a line:

    {0,"`frontdoor`",{state="value=true",lineState={"{&housestatus:value=safe|&notifications:value=on}"},initOnStartup=false,trueAct={{"doorstate","setGlobal","open"},{"Front door accessed. ","sendPopup","Front"},{"keydata","setGlobal","d99761eacfdf4276b5f39146a7fb5641"},{"`strobe`","turnOn",""},{"`strobe`","turnOff","5"}},falseAct={"`strobe`","turnOff",""}}},--front door opened

     

    works perfectly but would like to add the time and date onto "Front door accessed. ", i tried "Front door accessed. "..date(), but not working can you help please?

     

    thanks Len

     

    Link to comment
    Share on other sites

  • Topic Author
  • Attached file shows all time-date available keywords. (marked by red line)

     

    Please login or register to see this spoiler.

     

    Please use one of them as you need (below an example to set full time-date format use $osDate)

    {0,"`frontdoor`",{state="value=true",lineState={"{&housestatus:value=safe|&notifications:value=on}"},initOnStartup=false,trueAct={{"doorstate","setGlobal","open"},{"Front door accessed $osDate","sendPopup","Front"},{"keydata","setGlobal","d99761eacfdf4276b5f39146a7fb5641"},{"`strobe`","turnOn",""},{"`strobe`","turnOff","5"}},falseAct={"`strobe`","turnOff",""}}},--front door opened

     

    You can use any other keyword or combination of keywords to create needed time-date format.

    For example:

    $day $month $24clock - 11 4 22:16

    $day $mName $12clock - 11 Apr 11:16pm

    Edited by cag014
    Link to comment
    Share on other sites

    Hi cag!

     

    Can you help me again? :)

     

    How can i set up this?

     

    If 108 value=true#4 and 138=0 and timeslot=21:30~sunrisehour then 91 turn on, and tur off after 90 sec.

     

    I tried this, but doesn't work.

     

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

     

    Thank you!

    Edited by SmartLifeSystems
    Link to comment
    Share on other sites

  • Topic Author
  • The lineState sets condition for all actions in line therefore is doesn't make sense that trueAct and falseAct will have same condition.

    So in this case trueAct should execute both actions trueAct={{"91","turnOn",""},{"91","turnOff","90"}}

    Since state is not defined there is no trigger to execute the line and you should use trigAct (means on every value change trigger the line)

    At the end...

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

    Link to comment
    Share on other sites

    On 4/15/2020 at 4:56 PM, cag014 said:

    The lineState sets condition for all actions in line therefore is doesn't make sense that trueAct and falseAct will have same condition.

    So in this case trueAct should execute both actions trueAct={{"91","turnOn",""},{"91","turnOff","90"}}

    Since state is not defined there is no trigger to execute the line and you should use trigAct (means on every value change trigger the line)

    At the end...

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

    Hi cag,

     

    I tried this, but doesn't work.

    I tried without #4, and working. Have you got any idea?

    Link to comment
    Share on other sites

  • Topic Author
  • Ops, my bad... the hash sign # sets state delay.

    Will try to provide workaround if you must have #4

    let me know

    Edited by cag014
    Link to comment
    Share on other sites

  • Topic Author
  • To use delay, you must to define state.

    Break it into two lines:

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

     

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

     

    Please verify if the condition for falseAct{} is correct?

     

    Edited by cag014
    Link to comment
    Share on other sites

    Hi @cag014,

     

    How to deal with HUE? Could not find in the text here.

    Is this okay?

    --========================== USER CONFIGURABLE PARAMETERS ===============================
    jS2n={deur=233, doucheDeur=235, doucheDeurTemp=236, dakraam=239, dakraamtemp=240, bewegingssensor=243,bewegingssensortemp=244,luxsensor=245, humidity=246,}
    jS2n={badkamer="233|,|235|,|236|,|239|,|240|,|243|,|244|,|245|,|246|'deur'|'doucheDeur'|'doucheDeurTemp'|'dakraam'|'dakraamtemp'|'bewegingssensor'|'bewegingssensortemp'|'luxsensor'|'humidity'"}
    Or should it be one ine, if I do that it will generate error.

    How much ram/cpu usage if house is complete on AIO scene? Around 130 devices I gues.

    Please advice,

    //Sjakie

    sorry ine read as line

    Link to comment
    Share on other sites

  • Topic Author
  • @Sjakie

    Define as follow:

    S2n={deur=233, doucheDeur=235, doucheDeurTemp=236, dakraam=239, dakraamtemp=240, bewegingssensor=243, bewegingssensortemp=244, luxsensor=245, humidity=246, badkamer="'deur'|'doucheDeur'|'doucheDeurTemp'|'dakraam'|'dakraamtemp'|'bewegingssensor'|'bewegingssensortemp'|'luxsensor'|'humidity'"}

     

    Pay attention, you can use badkamer definition as devices list only. It cannot be used in conditions.

    (0,"`badkamer`",(state="...", trueAct={"`badkamer`",...} and so on..

     

    No issues with RAM or CPU.

     

    Edited by cag014
    Link to comment
    Share on other sites

    Hi @cag014,

    Yep no problem

    S2n={deur=233, ...........

    badkamer="'deur'|'........

    J2Sn={deur=250......

    woonkamer=deur.........................

    and so one

    Can it be done on this way?

     

    What about HUE? Must we use Sankotronics VD?

    Please advice,

    //Sjakie

     

    Link to comment
    Share on other sites

  • Topic Author
  • No,

    jS2n={deur=233, ...........

    badkamer="'deur'|'........

    At this point you're defining j2Sn again, so all previous data is gone.

    J2Sn={deur=250......,

    woonkamer=deur.........................}

     

    It must be same line.

    S2n={deur=233, ...........,

    badkamer="'deur'|'........,

    deur=250......

    woonkamer=deur.........................}

     

    Like that: (one line)

    S2n={deur=233, doucheDeur=235, doucheDeurTemp=236, dakraam=239, dakraamtemp=240, bewegingssensor=243, bewegingssensortemp=244, luxsensor=245, humidity=246, badkamer="'deur'|'doucheDeur'|'doucheDeurTemp'|'dakraam'|'dakraamtemp'|'bewegingssensor'|'bewegingssensortemp'|'luxsensor'|'humidity'"}

    Edited by cag014
    Link to comment
    Share on other sites

  • Topic Author
  •  

    26 minutes ago, SmartLifeSystems said:

     

    What do you mean exactly? How can I do that?

    Break it into two lines:

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

     

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

     

    Please verify if the condition for falseAct{} is correct?

    4 minutes ago, Sjakie said:

    Ok

     

    Hue please?

    All my rooms are equiped with He

    Do you use HUE plugin?

    How you're currently using this in your HC2? Is it VD?

    Can you post an example of HUE commands that you're using?

    In general you should be able to use same commands in All-in-One also, but let see...

    Edited by cag014
    Link to comment
    Share on other sites

    Nope I have VD Sankotronic

    Should be VD on or Off

    Problem now is fa

    toiletDoor= Open + Hue= on >>>fan: on

    can that be done in AIOS?

    Please advice,

    //Sjakie

    sorry I can off course install HUE pluggin

     

    Link to comment
    Share on other sites

    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...