It worked for days but suddenly the light control no longer works and I don't understand why. The motion detector detects movement but the lamp doesn't switch on. Lamp works. Can you help me?
description: ""
triggers:
- entity_id:
- binary_sensor.bewegungsmelder_eingang_eg_occupancy
from: "off"
to: "on"
trigger: state
conditions:
- condition: or
conditions:
- type: is_illuminance
condition: device
device_id: a5ef976635d588d412257389a9538859
entity_id: 1eea69ddeb1a15882922e603aeebaca1
domain: sensor
below: 1
- condition: or
conditions:
- condition: sun
before: sunrise
after: sunset
actions:
- action: light.turn_on
metadata: {}
data:
brightness_pct: 100
kelvin: 2000
enabled: true
target:
device_id: ae70bfd1a0fef4a177b7c4fef002d8f9
- wait_for_trigger:
- entity_id:
- binary_sensor.bewegungsmelder_eingang_eg_occupancy
from: "on"
to: "off"
for:
hours: 0
minutes: 0
seconds: 0
trigger: state
- action: light.turn_off
metadata: {}
data: {}
target:
device_id: ae70bfd1a0fef4a177b7c4fef002d8f9
mode: single