‘Dear community, can anyone of you help me out and tell me why the light does not turn on. The switch off works without any problems.’
alias: Büro Bewegungsmelder
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.0x00158d000237535a_occupancy
from: "off"
to: "on"
id: normal
- platform: state
entity_id:
- binary_sensor.aqara_motion_buero_occupancy
to: "off"
for:
hours: 0
minutes: "{{ states.input_number.buero_licht_timer_min.state | int }}"
seconds: 0
id: vergessen
condition: []
action:
- if:
- condition: trigger
id: normal
then:
- service: light.turn_on
data:
brightness_pct: 35
target:
entity_id: light.buero
else:
- service: light.turn_off
data: {}
target:
entity_id: light.buero
mode: single