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

  • Topic Author
  • Well, you can put the safe true/false status directly

    Please login or register to see this code.

    If you use :breached When2turnLightOff will be true when it breached... etc.

     

    You can also make it a text string

    Please login or register to see this code.

    Link to comment
    Share on other sites

    43 minutes ago, jgab said:

    Well, you can put the safe true/false status directly

    Please login or register to see this code.

    If you use :breached When2turnLightOff will be true when it breached... etc.

     

    You can also make it a text string

    Please login or register to see this code.

     

    I need to read the status of the door sensor so i can use it for testing - In my case i uses a tri-state, "0, Breached & Not Breached." i use 0 to select to use one or the other rule (red arrows) to close the light. My issue i my PIR sensor dont cover the shower cabinet

     

    Please login or register to see this attachment.

    Edited by ChristianSogaard
    P
    Link to comment
    Share on other sites

    [SOLVED] - BUT

    What is tAB=false, i found it in an example at 

    Please login or register to see this link.

     

    Is there a way to test if the door sensor has been closed after the PiR sensor and use is in a EV4 condition ?

     

    Please login or register to see this code.

     

    Edited by ChristianSogaard
    P
    Link to comment
    Share on other sites

  • Topic Author
  • On 12/28/2020 at 8:14 AM, jgab said:

     

    Please login or register to see this code.

    The tricky part is the last rule that needs to have a test that is false when the second rule's test is true.

     

    I have no idea what tAB is, 18 month ago and those brain cells are dead and replaced by now.

     

    For a sensor (door or motion) you can get the seconds since they last changed state.

    if

      Badevarelset.motion:last - Badevarelset.door:last > 0

    the motion changed state after the door. Of course you need to add tests if it's breached or safe you want.

    • Thanks 1
    Link to comment
    Share on other sites

    39 minutes ago, jgab said:

     

    I have no idea what tAB is, 18 month ago and those brain cells are dead and replaced by now.

     

    For a sensor (door or motion) you can get the seconds since they last changed state.

    if

      Badevarelset.motion:last - Badevarelset.door:last > 0

    the motion changed state after the door. Of course you need to add tests if it's breached or safe you want.

     

    I tested this rule

    Please login or register to see this code.

    it triggers just when door :safe and the condition seems to be ignored or something else so I tried adding logs

    Please login or register to see this code.

    and motion no matter the direction of entering or leaving the room is always the highest number -

    eg. Motion 18 + door 0

    So why is that ? - and why is the numbers 1-2 digits - i would expect the whole time here ?

    Link to comment
    Share on other sites

  • Topic Author
  • 42 minutes ago, ChristianSogaard said:

     

    I tested this rule

    Please login or register to see this code.

    it triggers just when door :safe and the condition seems to be ignored or something else so I tried adding logs

    Please login or register to see this code.

    and motion no matter the direction of entering or leaving the room is always the highest number -

    eg. Motion 18 + door 0

    So why is that ? - and why is the numbers 1-2 digits - i would expect the whole time here ?

    It's seconds since last changed, not the time when changed.

    • Like 1
    Link to comment
    Share on other sites

    How do I add a value to a variable, including the existing value of the variable ? 

    Like this lastBreached=lastBreached+236:last; ?

    Please login or register to see this code.

     

    EDIT..

    Incoming sourceTrigger:{"type":"device","value":1655739749,"id":236,"old":1655737682,"property":"lastBreached"}

    is there a EV4 Rule syntax for using lastBreached=236:old or lastBreached=236:value?

     

    Edited by ChristianSogaard
    P
    Link to comment
    Share on other sites

  • Topic Author
  • Please login or register to see this code.

    works, but also

    Please login or register to see this code.

     

    Incoming sourceTrigger:{"type":"device","value":1655739749,"id":236,"old":1655737682,"property":"lastBreached"}

    is there a EV4 Rule syntax for using lastBreached=236:old or lastBreached=236:value?

     

    No, 236:last is actually translated to a

    Please login or register to see this code.

    So, it's always the latest value.

     

    Just now, jgab said:

    Please login or register to see this code.

    works, but also

    Please login or register to see this code.

     

    Incoming sourceTrigger:{"type":"device","value":1655739749,"id":236,"old":1655737682,"property":"lastBreached"}

    is there a EV4 Rule syntax for using lastBreached=236:old or lastBreached=236:value?

     

    No, 236:last is actually translated to a

    Please login or register to see this code.

    So, it's always the latest value.

     

     

    You could make your own rule to trigger on lastBreached

    Please login or register to see this code.

    and handle it the way you need...

    • Thanks 1
    Link to comment
    Share on other sites

    4 minutes ago, jgab said:

    Please login or register to see this code.

    works, but also

    Please login or register to see this code.

     

    Incoming sourceTrigger:{"type":"device","value":1655739749,"id":236,"old":1655737682,"property":"lastBreached"}

    is there a EV4 Rule syntax for using lastBreached=236:old or lastBreached=236:value?

     

    No, 236:last is actually translated to a

    Please login or register to see this code.

    So, it's always the latest value.

     

     

    You could make your own rule to trigger on lastBreached

    Please login or register to see this code.

    and handle it the way you need...

     

    Thank you :-) you are amazing ?

     

    Link to comment
    Share on other sites

    Jan, good morning somewhere out of the blue

    Please login or register to see this code.

    Yesterday HC3 restarted a few times due to electrical problems in the house.

    This QA is't tuched for days.

    For sure it will be Fibaro acting up but failsafe is the goal.

    Any magic you can do?

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • I blame the HC3 :-) 

    Well, it did restart.

     

    However, it's a bit old - it's v0.80 now.

    Edited by jgab
    Link to comment
    Share on other sites

    Jan, I thought I use the latest and greatest version.

    I only can downgrade??

    If I click >>QA it does't show other QA's

    Please login or register to see this image.

    /monthly_2022_06/image.png.6baaa6a9d386cd664bd80b21cf1099fe.png" />

    Link to comment
    Share on other sites

  • Topic Author
  • Could it be the problem with the latest FW that has issues with updating labels/button in the UI?

    Link to comment
    Share on other sites

    Jan perhaps you are right.

    Reverted back to 5.110.15 clicking buttuns respond better but still does't see the newer versions

    Please login or register to see this image.

    /monthly_2022_06/image.png.019e7ca8181f325a042255d4104ab498.png" />

    Link to comment
    Share on other sites

    Jan, if I click downgrade he is upgrading fix 79 but no fix 80 and I cant see what version I have

    Please login or register to see this code.

     

    Please login or register to see this image.

    /monthly_2022_06/image.png.e75ad0963a05c0419b624586c349c200.png" />

    I only get 1301 and 1309 in between he skip

    Edited by Sjakie
    data
    Link to comment
    Share on other sites

    Jan Iin QAUpdater when I select Event Runner I see only one QA updated 0.5 fix 80

    1302,1303,1304,1305 are not listed in QAUpdater but in tab Event Runner >>>0.5 fix 80

    Reinstalled QAUpdater did't solve 

    //Sjakie

     

    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, Sjakie said:

    Jan Iin QAUpdater when I select Event Runner I see only one QA updated 0.5 fix 80

    1302,1303,1304,1305 are not listed in QAUpdater but in tab Event Runner >>>0.5 fix 80

    Reinstalled QAUpdater did't solve 

    //Sjakie

     

    If you have an old ER (0.5fix ...) that was created before QAUpdater, the QAUpdater can't see that this is an EventRunner QA. Later ER's have a series number inside that allow me to identify them.

    If you  rename your ER QA with something with "Runner" in the name it will recognise it as a v0.5 ER. 

    Ex. call it "EventRunner X"

    then QAUpdater should be able to find it.

    ...and then you can rename them back to their old name.

    Edited by jgab
    Link to comment
    Share on other sites

    Jan,

    Please login or register to see this code.

    If I arm partition 21 I will get a proper log

    If I disarm in Yubii I cant get a log

    I tryed 21:alarm==false, 21:disarm

    Please advice,

    //Sjakie

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