Hey there,
I noticed some strange behaviour in my light automations: Lights turning on or off when they shouldn’t, turining on quickly and then turning off again and similar things. The lights are various zigbee lights (lidl/ikea) connected via ZHA.
While trying to figure out what’s wrong I think I got closer to identifying the behaviour. I can recreate it if I make a test automation like so:
alias: Test
description: ""
mode: single
triggers: []
conditions: []
actions:
- action: light.turn_off
metadata: {}
data:
transition: 1
target:
device_id: 73a87fa6d03696114b4861d0af8b1f3c
- action: light.turn_on
metadata: {}
data:
transition: 1
target:
device_id: 73a87fa6d03696114b4861d0af8b1f3c
In the gui if I run only “turn off” two times and then run “turn on”, the lamp turns on for roughly half a second before turning off again. I I only run “turn off” once or remove the transistion in the data, both actions do what they should without a problem.
Is this a common problem/bug or are there any tips how to get around that behaviour?