Flash switch not turning off

i have a rule that doesnt work as expected

i expect that the rule will flash the light when the fridge door is open and then stop flashing when the door closes. the below logic works but if i take out the bolded if statement then it doesn't work. it just stays flashing. in the example where it doesnt work i move the delay to before the first if statement. that way if the door is shut by the time it gets to the if statement it just exits.

Select Trigger Events (ANY will trigger)

Kitchen Fridge Door Open(off) turns changed
IF (Kitchen Fridge Door Open(off) is on(F) [FALSE]) THEN
Delay 0:01:30
IF (Kitchen Fridge Door Open(off) is on(F) [FALSE]) THEN
Flash: Living Room Chair Lamp
END-IF
Exit Rule
ELSE
Off: Living Room Chair Lamp
END-IF

does anyone see any issues in my logic?

The following will be simpler:

Trigger:
Kitchen Fridge Door Open(off) turns On and stays On for 0:01:30

Actions:
Flash: Living Room Chair Lamp
Wait for event: Kitchen Fridge Door Open(off) turns Off
Off: Living Room Chair Lamp

that was my first attempt. ill give it another shot that way

1 Like

It took me a while before I discovered the “Wait for…” functionality - We all have to start somewhere! :blush:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.