Trying to get a simple automation up and running, sure I’m either misunderstanding the Wait for Trigger, or something else small I’m overlooking. The first trigger & action happens, but stops there. The light never turns off after the motion goes back to cleared.
Here is the desired basic outcome (eventually when tested, will move it to be after sunset/before sunrise and probably restart instead of single mode):
- Motion detected in kitchen, turn on kitchen lights
- When motion clears, turn off light 5 mins later
I’m doing this in UI - but here is the yaml it spits out.
- id: '1601067028729'
alias: Kitchen - Lighting w Motion
description:
trigger:
- type: motion
platform: device
device_id: a04404d353f445b4b78b838cc103efaa
entity_id: binary_sensor.presence_8
domain: binary_sensor
condition: []
action:
- type: turn_on
device_id: ae3a20c96ad443f5a714db86b62eb933
entity_id: light.light_kitchen_pots_level
domain: light
brightness_pct: 85
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.presence_8
to: 'off'
for: 00:05:00
timeout: ''
- type: turn_off
device_id: ae3a20c96ad443f5a714db86b62eb933
entity_id: light.light_kitchen_pots_level
domain: light
mode: single
Thanks!
3 posts - 3 participants