Hi,
I have a zigbee light bulb in Z2M and it works fine. When I turn it on and off from the HA dashboard or the Z2M dashboard, it works great. No delay, state is instantly set. However, when I have an automation calling “toggle light” on that bulb, it sometimes takes very long for the state to update. So, if the automation turns on the light, it cannot turn it off by running the automation again, because in HA, its state is still off, so toggle will send a turn on command an the light just stays on. How and why is it different if I toggle the light from the dashboard compared to an automation? Trigger in that automation is a remote control button.
I even added reporting for genOnOff, but that didn’t help.
Hi Andreas, showing the automation YAML using </> in the toolbar, can be useful to help you.
Sure, here you are:
alias: Zigbee Remote Button 1 short
description: ""
triggers:
- domain: mqtt
device_id: 326125e57d181626ec6d2a98199dd3c0
type: action
subtype: 1_single
trigger: device
conditions: []
actions:
- action: light.toggle
metadata: {}
data:
brightness_pct: 100
color_temp_kelvin: 2000
target:
entity_id: light.lampenschirm_lampe
mode: single
So the light physically turns on but HA still shows it as off?
What happens if you remove the brightness & color temp Kelvin from your automation? Does it update correctly?