home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.81k forks source link

Brightness of deconz group is constantly changing #124628

Open marlind89 opened 2 weeks ago

marlind89 commented 2 weeks ago

The problem

There seems to be an issue regarding the brightness of deconz group entities in home assistant. The brightness of the deconz group is constantly changing even though the lights within the group are not.

I have noticed that the different brightness levels the deconz group is constantly alternating between is the brightness values that the group's lights have (including the ones that are off).

Lets say a deconz group have these lights with the following states:

Light 1: On (Brightness 50) Light 2: Off (Brightness 150) Light 3: Off (Brightness 254)

(If I understand correctly deconz stores the previous brightness of the lights even if they currently are off?)

In this case the deconz group in home assistant will keep alternating between 50, 150, 254.

If all lights in the group were on with different brightness levels the issue would still occur, but I found it interesting it also occurs when all but one lights are off.

Similar issue was reported in #37548

Deconz gateway version: 2.27.6 Stick: Conbee II Deconz firmware version: 26780700

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

deconz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/deconz

Diagnostics information

Debug log: home-assistant_deconz_2024-08-25T20-03-19.413Z.log

Also I don't get why there are light changes events in the log file above. I didn't change any lights during debug logging (made sure to disable all automations while debug logging). Maybe thats normal, not sure how the deconz websocket api works.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 weeks ago

Hey there @kane610, mind taking a look at this issue as it has been labeled with an integration (deconz) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `deconz` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign deconz` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


deconz documentation deconz source (message by IssueLinks)

Kane610 commented 1 week ago

Thanks for reporting. I think that the cause of this might be state reports from the lights that also contain the brightness data which cause the group entity to update, this is not something I will fix short term.