Hi all,
I have 2x Hue outdoor motion sensors to trigger hue outdoor lights on our garden path to/from the front door. I was thinking of using the gate and then door sensors to trigger a door bell or announcement of approaching person.
Obviously would need to differentiate between the directions (gate to door incoming vs door to gate leaving).
This seems relevant, but not sure the approach to take here. I’ve only written a couple scripts to turn on and cast to our garden speakers.
Trigger on the gate motion sensor.
In your actions use a wait for trigger action to wait for the door motion sensor to be triggered. Also set a wait time out for longer than it takes to get from the gate to the door.
If the trigger occurs: ring the bell. Or if it times out do nothing.
Pretty darn good for a first effort. The only thing you need to add is this:
action:
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.hue_outdoor_motion_sensor_1_motion
from: 'off'
to: 'on'
timeout: '00:00:15'
continue_on_timeout: false # don't increment your counter if it times out.
- service: counter.increment
mode: single
Ah, that makes sense.
Awesome, thank you very much! Very encouraging.
I can’t wait to dive into automations a bit more. Amazing how many possibilities there are.
Cheers!