I have been following this tutorial:
So i created the use case scenario one. But for some reason my kitchen light doesnt turn on. The sensor detects me i can see that, and when i go to devices and switch the kitchen light on by hand it works. So it seem the automation is not a 100%.
alias: Tutorial - Keuken light
description: ""
trigger:
- type: motion
platform: device
device_id: 1d6efa068f27b0f42c5a8555d6f06690
entity_id: binary_sensor.keuken_motionhue_motion
domain: binary_sensor
id: Motion-detected
- type: no_motion
platform: device
device_id: 1d6efa068f27b0f42c5a8555d6f06690
entity_id: binary_sensor.keuken_motionhue_motion
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 30
id: Motion_Uit_01
condition: []
action:
- if:
- condition: trigger
id: Motion-detected
then:
- type: turn_on
device_id: b24ce90084f88af828a12961306c2ecb
entity_id: light.keuken_lamp_2
domain: light
else:
- type: turn_off
device_id: b24ce90084f88af828a12961306c2ecb
entity_id: light.keuken_lamp_2
domain: light
mode: single
Any ideas why this is not turning on the light?