Announcement

Collapse
No announcement yet.

Single Event for "Device Was Off For At Least x Min, Now On"

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

    Single Event for "Device Was Off For At Least x Min, Now On"

    Is it possible to create a single event for this:

    "IF 'Light A' had been off for at least X minutes, and is now turned on"...

    I've tried using both of these with no luck:

    ---
    IF 'Light A' changes and becomes On
    AND IF 'Light A' has been Off for at least X minutes
    ---


    ---
    IF 'Light A' has been Off for at least X minutes
    AND IF 'Light A' has a value equal to On
    ---


    Any suggestions? Thanks!

    #2
    Originally posted by belias View Post
    Is it possible to create a single event for this:

    "IF 'Light A' had been off for at least X minutes, and is now turned on"...

    I've tried using both of these with no luck:

    ---
    IF 'Light A' changes and becomes On
    AND IF 'Light A' has been Off for at least X minutes
    ---


    ---
    IF 'Light A' has been Off for at least X minutes
    AND IF 'Light A' has a value equal to On
    ---


    Any suggestions? Thanks!
    Because the light changes state to trigger the events, it is no longer in the state required by the condition.

    You could add a timer and use 2 events

    Event 1
    If Light A changes and becomes Off
    Start timer Light A

    Event 2
    If Light A changes and becomes On
    And if timer Light A is greater than x minutes
    Then stop timer Light A
    Then reset timer Light A
    Then Action(s)...
    HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

    Comment


      #3
      OK that's kind of what I was thinking. I'm trying it now with 2 programs and a virtual device, but your method is cleaner... Thank you!


      - Brian



      Originally posted by rprade View Post
      Because the light changes state to trigger the events, it is no longer in the state required by the condition.

      You could add a timer and use 2 events

      Event 1
      If Light A changes and becomes Off
      Start timer Light A

      Event 2
      If Light A changes and becomes On
      And if timer Light A is greater than x minutes
      Then stop timer Light A
      Then reset timer Light A
      Then Action(s)...

      Comment

      Working...
      X