I have automation rules for turning on a light after motion detection. The light should stay on for 3 minutes after the last motion detected. This works quit well except for… the lights start to dim and brighten after a second motion is detected at a moment between 20 seconds and 3 minutes after the first motion detected.
- alias: Licht in berging bij beweging
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.fibaro_system_fgms001_zw5_motion_sensor_sensor_2
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.visonic_z04
from: 'off'
to: 'on'
condition:
condition: or
conditions:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: sun
before: sunrise
before_offset: "00:01:00"
action:
service: light.turn_on
entity_id: light.lamp_berging
- alias: Licht in berging uit na 3 minuten
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.fibaro_system_fgms001_zw5_motion_sensor_sensor_2
to: 'off'
for:
minutes: 3
condition:
condition: or
conditions:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: sun
before: sunrise
before_offset: "00:01:00"
action:
service: light.turn_off
entity_id: light.lamp_berging
Can anyone explain this behaviour so that I can learn?
Any tips for preventing this strange behaviour?