Hallo zusammen,
ich habe vor Kurzem eine simple Automation erstellt, die abends wenn der Lux Wert 100 unterschreitet, aktiv werden soll. Sprich, das Licht im Flur soll dann an gehen bei Bewegung.
Hat anfangs auch ganz normal funktioniert aber seit ein paar Tagen ist mir aufgefallen, dass morgens Licht dauerhaft leuchtet, obwohl es sich eigentlich automatisch abschalten müsste, wenn der Luxwert über 100 steigt, was eigentlich der Fall ist.
Hier mal mein Yaml Code. Vielleicht hat jemand ne Idee. Bin noch nicht so fit in Automationen.
alias: Nachtlicht Flur bei Bewegung (Flur oder Bad)
description: >-
Schaltet das Nachtlicht im Flur bei Bewegung im Flur oder Bad ein und
nach 30 Sekunden ohne Bewegung wieder aus.
triggers:
- entity_id:
- binary_sensor.bwm_flur_occupancy
- binary_sensor.bwm_bad_occupancy
to: "on"
trigger: state
- entity_id:
- binary_sensor.bwm_flur_occupancy
- binary_sensor.bwm_bad_occupancy
to: "off"
for: "00:00:30"
trigger: state
conditions:
- condition: numeric_state
entity_id: sensor.bwm_flur_illuminance
below: 100
actions:
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.bwm_flur_occupancy
state: "on"
- condition: state
entity_id: binary_sensor.bwm_bad_occupancy
state: "on"
sequence:
- target:
entity_id: light.nachtlicht_flur
data:
brightness_pct: 1
action: light.turn_on
- conditions:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.bwm_flur_occupancy
state: "off"
- condition: state
entity_id: binary_sensor.bwm_bad_occupancy
state: "off"
sequence:
- target:
entity_id: light.nachtlicht_flur
action: light.turn_off
data: {}
mode: restart
