02-09-2024 02:03 PM
Maybe I am making this harder than it needs to be but I am trying to setup an automation that turns off my exterior lights if either my Hue motion sensor or nest doorball does not detect motion for at least 10 minutes.
I have the hue motion sensor figured out via the motion detection state. I am not able to figure out how to check the eventdata for motiondetectionevent for the last motion trigger and check if it is over 10 minutes.
The doorbell does not support motiondetection STATE so I have to use event.
Any suggestions?
02-09-2024 07:41 PM
Something like this?
- starters:
- type: device.state.MotionDetection
device: sensor - Living Room
state: motionDetectionEventInProgress
is: false
for: 5min
actions:
- type: device.command.OnOff
devices:
- light - Living Room
on: false