Koenkk / zigbee2mqtt

Zigbee šŸ to MQTT bridge šŸŒ‰, get rid of your proprietary Zigbee bridges šŸ”Ø
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.14k stars 1.68k forks source link

Brightness Updates via MQTT Not Reflected on Devices for Certain Light Groups #23441

Open mryshakow opened 3 months ago

mryshakow commented 3 months ago

What happened?

I am updating a group of lights from OpenHAB via MQTT. OpenHAB behaves correctly and sends the expected payload. Zigbee2MQTT (Z2M) receives and processes this payload, as evidenced by the Z2M UI updating accordingly. However, the actual brightness of the lights does not change. If I update the corresponding light via the Z2M UI, everything works as expected, and the light's brightness is adjusted accordingly. I have multiple groups of lights, and this phenomenon is only observed in some groups. Other groups work without issues. The groups consist either of only light bulbs or of light bulbs with intermediate plugs (switches). The error occurs in both groups with only light bulbs and in mixed groups. However, the plugs (switches) always behave correctly. Only the light bulbs are affected by the malfunction. If a group is affected, then all the light bulbs in that group are affected.

Example:

State: Brightness in OpenHAB: 100% Brightness in Z2M UI: 100% Brightness of the light: 100% <- Correct

Action: OpenHAB changes brightness to 50%

State: Brightness in OpenHAB: 50% Brightness in Z2M UI: 50% Brightness of the light: 100% <- Incorrect

Action: I change the brightness to 20% via click in the Z2M UI

State: Brightness in OpenHAB: 20% Brightness in Z2M UI: 20% Brightness of the light: 20% <- Correct

Action: OpenHAB changes brightness to 0%

State: Brightness in OpenHAB: 0% Brightness in Z2M UI: 0% Brightness of the light: 20% <- Incorrect

What did you expect to happen?

When Z2M processes a payload via MQTT, I expect not only the UI to be updated but also the corresponding devices.

How to reproduce it (minimal and precise)

No idea, I can't find any differences in the groups myself. :(

Zigbee2MQTT version

1.39.0

Adapter firmware version

0x26660700

Adapter

ConBee2/RaspBee2

Setup

Z2M as LXC on Proxmox

Debug log

Logs show no errors. The debug logs only indicate that the status of the lamps was updated accordingly, which is only true when done directly via the Z2M UI.

mryshakow commented 3 months ago

Removing the device from the group an re add it resolved this issue. Not sure why it took me days to come up with this idea... -.-

If I can provide more Information to fix this please contact me.