I have a door sensor in my pantry.
Door opens, light comes on, door shuts, light goes off......
Trouble is, my grand daughter comes over and leaves pantry door open.
How do you make this check if door is still open, and if the door is open for an amount of time, shut off? Thank you
Hereās how I would do this:
Trigger: Door Sensor contact open
Actions:
On: Pantry Switch
Wait for event: Door Sensor contact closed -> Timeout X minutes
Off: Pantry Switch
3 Likes
Excellent.
Note that the if/else condition is not required, and neither is the ācloseā trigger. They wonāt do any harm, but donāt add any value either, just extra lines of code.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.