Hi,
I have an automation that turns on the light in the hallway brightly during the day and darker at night. Trigger and condition work. Only when the darker night light comes on for the first time, the bright light flashes briefly and then becomes darker. The second time, the darker light comes on immediately.
The light bulb is a Teckin SB50 flashed with Tasmota 9.3.1. Until recently I had connected all Tasmota devices via the Mosquitto integration. After one of the last updates, I switched everything to the Tasmota integration and the behaviour has only appeared since then. Before that, the darker light came on immediately.
Does anyone have a tip on how I can prevent this? The purpose of the automation is not to be blinded by the bright light at night, but this does not work when the bright light flashes briefly.
alias: Flur Licht an
description: ''
trigger:
- platform: state
entity_id: binary_sensor.flur_presence
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.flur_lightlevel
below: '10'
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.night_mode
state: 'on'
sequence:
- service: light.turn_on
data:
brightness_pct: 74
color_temp: 337
target:
entity_id: light.flur
default:
- service: light.turn_on
data:
white: 255
target:
entity_id: light.flur
mode: single