Announcement

Collapse
No announcement yet.

Been in Range for X Hours

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Been in Range for X Hours

    Hello all,

    I have a trigger set up that is "IF <device> has been in range [-2147483648,20.9] for exactly 05:00:00".
    So when a device goes in this range and stays in that range for 5 hours, it will trigger the actions (or at least that's what I understand).

    My question is - if the device goes into that range for, say, 2 hours and then dips out of that range (back up to 21, for example) does that "stop" that 5 hour timer?
    If the device then re-enters that range does it start a new 5 hour timer?


    Thank you.

    #2
    To confirm what I assumed, I just tested this with a simple event using a virtual device. Briefly switching the virtual device's value/status before the time period expired prevented the event action firing.

    So, yes, your 5-hour timer will start over if the device exits then re-enters the range.
    -Wade

    Comment


      #3
      I confirm the timer is reset everytime the value goes out of the range and then re-enter.

      Comment

      Working...
      X