Hi, I tried this and i think it’s not working… is it supposed to or or i should create another entity separately that monitor time the light was up?
alias: light_kitchen_presence_on
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.presence_cuisine
to: "on"
condition:
- condition: state
entity_id: input_boolean.night_mode
state: "off"
- condition: state
entity_id: light.lavabo
state: "off"
for:
hours: 0
minutes: 5
seconds: 0
action:
- service: light.turn_on
data: {}
target:
entity_id: light.lavabo
mode: single