Working on an automation to close my garage doors if they are open and there has been no mortion detected for 10 minutes. Trying to figure out how to deal with the edge case of the when the door is opened that my motion detector never detected motion (maybe opened remotely). In this case my trigger for the motion detector going to “off” for 10 minutes does not work because it never went to “on” in the first place.
- alias: Close Garage Doors with NO Motion
initial_state: 'on'
condition:
condition: state
entity_id: group.garage_stall_doors
state: 'on'
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001d6e053
to: 'off'
for:
minutes: 10
# seconds: 15
action:
- service: ifttt.trigger
data: {"event":"Garage_close"}
Any advice on how to deal with this. I was thinking I could possibly manually trigger my motion detector to be sure it is “set” whenever a garage door opens - but not sure that is even possible - seems like I mght be over-thinking it.
Whoa whoa whoa!! I’m just the idea guy!!! I wish I could help ya out there, but I am just learning the basics of all this stuff. Maybe one of the script writing pros can chime in now…
Actually, I noticed that kitchen light timer has changed in the cookbook, try to use the old version here. This version uses a script that acts as a timer that can be reset with motion or when garage door is opened.