On Events not acting discrete


#1

1) Give a description of the problem
Trying to get two “On Events” to not cancel the other when the IF Condition in one of the On Events is true and the other On Event becomes true.

2) What is the expected behavior?
The behavior I would like to happen is the On Event is only processed when an event from that device is received and the IF Condition is True

3) What is happening/not happening?
The IF condition is being cancelled when the On Event has no events

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach any logs (From ST IDE and by turning logging level to Full)


#2

Why are you making your life so difficult lol…

IF
motion A IS active
THEN
with light A
Turn on
ELSE
with light A (TEP condition change only)
wait x
turn off

IF
motion B IS active
THEN
with light B
Turn on
ELSE
with light B (TEP condition change only)
wait x
turn off

You’re just asking for trouble putting waits inside multiple on-events.


#3

And double check your line 69… shouldn’t that be turn off, not on?