Announcement

Collapse
No announcement yet.

Can't seem to get ANDIF condition to apply on a Manually Treiggered event?

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

  • Can't seem to get ANDIF condition to apply on a Manually Treiggered event?

    What am I not getting?

    I'm calling the event attached at the end of an event that changes my fireplace thermostat. This is a debug event, which I only want to run if the debug flag is set to ON. In the following case the email is always sent, even when the debug flag is OFF. Am I misunderstanding how "Manually Triggered" is used?

    Click image for larger version

Name:	2020-01-27 12_26_46-Window.png
Views:	61
Size:	40.9 KB
ID:	1357101

    I saw a very similar case in the topic "What do IF, OR IF, AND IF mean?" and that is what I think I'm doing (only the first part of it) , but...:
    Trigger Event
    IF the living room motion detector is set to motion
    AND IF the time is Nighttime
    AND IF the TV is On

    Then If the Event Conditions are True, Run Event Evening Lights
    Then If the Event Conditions are True, Run Event Night Lights

    Evening Lights Event
    IF this event is manually triggered
    AND IF the time is before 11:59PM
    (this is the IF)
    Then set living room lights to 50%


    Night Lights Event
    IF this event is manually triggered
    AND IF the time is after 12:00 AM
    (this is the ELSE)
    Then set living room lights to 25%

    Thanks
    gny




    Attached Files

  • #2
    On the event that calls this event, you have to check on the advanced option for the conditions on the called event to be honored.

    Click image for larger version

Name:	Event.png
Views:	59
Size:	14.2 KB
ID:	1357105

    Comment


    • #4
      Thanks guys. Always wondered what that tick box meant. Works perfectly now.
      gny

      Comment

      Working...
      X