Hello everyone,
I have a problem with one of my automations, which doesn't work properly, but only sometimes. I cannot figure out why this is happening.
It's a simple one really, where I have a motion sensor turn on the light in the kitchen, then a mmwave senses presence and a wait for trigger waits for that presence to become clear and upon this happening, the light turns off.
This is all working as it should most of the times, just that there are times when the light will turn on, but never turn off and I don't know why this is happening. Any help would be appreciated.
This is the automation in yaml, but I did it in the gui, if it makes any difference:
description: ""
triggers:
- type: motion
device_id: beb15a3669816193a74b24c81f97fd0b
entity_id: 7645feb9149b47463893c81a413861ac
domain: binary_sensor
trigger: device
conditions:
- condition: or
conditions:
- condition: time
after: "18:01:00"
before: "00:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: time
after: "00:00:00"
before: "03:00:00"
weekday:
- sun
- sat
- fri
- thu
- wed
- tue
- mon
actions:
- type: turn_on
device_id: f90ee396cb8b141450b7a82ecd03815e
entity_id: 222bd61b1301527e42564631abffe914
domain: switch
- wait_for_trigger:
- type: not_occupied
device_id: 7067262dbc511ac2050e86dd462ff7e2
entity_id: e69a120f387efb8e1abe059079c65c44
domain: binary_sensor
trigger: device
continue_on_timeout: false
- type: turn_off
device_id: f90ee396cb8b141450b7a82ecd03815e
entity_id: 222bd61b1301527e42564631abffe914
domain: switch
mode: single
Thank you!