Open GentleHoneyLover opened 2 months ago
Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
They are not working as previously. if you have lights and switches mixed in a group which you could previously. The switches no longer count to the state of the group. so if a switch is on but no light is on. the group stays in the off-state. but if a light is turned on the state of the group is on. and when that light is turned off the state of the group goes off even if the switch i still on. This breaks all the group in my case.
@discodogge, I have multiple zigbee groups for just lightbulbs. Groups that have been created before 2024.8.X continue working as before. What is missing now is the ability to create new groups, ability to delete previously created groups and ability to bind devices (e. g. switches) to a group.
@GentleHoneyLover I see. Im sorry I did not mean to say that what you said was incorrect. I only meant to add that switches are also broken in a mixed group. All my groups were also created before 2024.8.X and as you say lightbulb groups only work fine. but is a hasel to create and edit. I managed to create new groups after I restarted HA but the group entity takes forever to be created. Something I noticed today trying to fix a broken group by recreating it.
@GentleHoneyLover could you enable debug logging and reload ZHA? Existing groups disappearing doesn't seem right.
I think this is the UI bug from the changes they made to data tables… turn the phone landscape and you will see the groups…
@GentleHoneyLover could you enable debug logging and reload ZHA? Existing groups disappearing doesn't seem right.
@puddly, here's the debug log: home-assistant_zha_2024-08-28T08-14-05.945Z.log
Interestingly enough, after a complete HASS restart, existing groups appeared in the ZHA settings and I was able to create a new "Test group":
However, the entity for this Test group does not show up (even after HASS reboot):
So, you seem to be able to create / delete zigbee groups but because you don't get an entity for the group, you cannot really use it.
I wonder if this is in any way related to #126080 ...
I wonder if this is in any way related to #126080 ...
Nope
@GentleHoneyLover could you enable debug logging and reload ZHA? Existing groups disappearing doesn't seem right.
@puddly, here's the debug log: home-assistant_zha_2024-08-28T08-14-05.945Z.log
Interestingly enough, after a complete HASS restart, existing groups appeared in the ZHA settings and I was able to create a new "Test group":
However, the entity for this Test group does not show up (even after HASS reboot):
So, you seem to be able to create / delete zigbee groups but because you don't get an entity for the group, you cannot really use it.
You will only get a group entity if there are 2 or more entities of the same domain on devices in the group.
@dmulcahey, in older HASS versions I successfully had a power outlet switch and a light bulb in one zigbee group and had an entity for it.
Are you saying that it dropping support for such scenario was by design? :)
@dmulcahey, in older HASS versions I successfully had a power outlet switch and a light bulb in one zigbee group and had an entity for it.
Are you saying that it dropping support for such scenario was by design? :)
Absolutely not unless the outlet was misidentifying itself as a bulb. This has not changed since the feature was originally introduced.
@dmulcahey, I am pretty positive that I used to have a zigbee group consisting of a power outlet (powering a dumb lamp) and a light bulb and I had an entity for it which I used in automations. After an upgrade to 2024.8, this entity became unavailable and I deleted it. Now, when I create such a group I don't get a switch entity for it anymore...
@dmulcahey, I am pretty positive that I used to have a zigbee group consisting of a power outlet (powering a dumb lamp) and a light bulb and I had an entity for it which I used in automations. After an upgrade to 2024.8, this entity became unavailable and I deleted it. Now, when I create such a group I don't get a switch entity for it anymore...
I’m telling you that that is impossible. Again, the group entity code has not changed since the feature was introduced. Group entities always required 2 entities on devices in the group from the same platform / domain. This is how we determine what platform to create the entity in and it is something that folks have complained about (there are tickets about single device groups not having group entities that you can look at for background)
Are you sure you weren’t overriding the type of the entity in YAML for the outlet to make it a light? Or the light to make it a switch?
@dmulcahey, to clear up my confusion. just to be certain. Are you speaking about helper groups? or groups when you click on integration zha - configure - groups? Zha Zigbee groups I have had mixed sins 0. Something. And they have always presented as a light and I you turn on a switch in that group that entity turn on. Sins relerse 2024.8 you can still configure zha zigbee groups in this manner. But the stat of the zha zigbee group no longer switches state if you turn of a switch in the group. Only If a light changes state. But toggling the zha zigbee group changes the state of all the individual entities.
@dmulcahey, 100% UI configuration — no YAML dances. If you look at a screenshot from the very first message here, you'll see a Kids Room Lights (Hidden)
entity which represented the zigbee group of a power plug switch and a lightbulb. As you can see on the screenshot, after the upgrade to 2024.8 this entity became unavailable. So, clearly something changed...
@discodogge, my experience matches yours... :)
@dmulcahey, to clear up my confusion. just to be certain. Are you speaking about helper groups? or groups when you click on integration zha - configure - groups? Zha Zigbee groups I have had mixed sins 0. Something. And they have always presented as a light and I you turn on a switch in that group that entity turn on. Sins relerse 2024.8 you can still configure zha zigbee groups in this manner. But the stat of the zha zigbee group no longer switches state if you turn of a switch in the group. Only If a light changes state. But toggling the zha zigbee group changes the state of all the individual entities.
This would be true if there are say 2 (or more) lights and a switch in the group…. Not just 1 and 1. It’s a limitation of how we pick the entity that best represents the group
@dmulcahey, 100% UI configuration — no YAML dances. If you look at a screenshot from the very first message here, you'll see a
Kids Room Lights (Hidden)
entity which represented the zigbee group of a power plug switch and a lightbulb. As you can see on the screenshot, after the upgrade to 2024.8 this entity became unavailable. So, clearly something changed...@discodogge, my experience matches yours... :)
Attach the diagnostic files for the group member devices. Only thing I can think of is someone added or modified a quirk that remapped the exposed device type (we really shouldn’t do that).
@dmulcahey, to clear up my confusion. just to be certain. Are you speaking about helper groups? or groups when you click on integration zha - configure - groups? Zha Zigbee groups I have had mixed sins 0. Something. And they have always presented as a light and I you turn on a switch in that group that entity turn on. Sins relerse 2024.8 you can still configure zha zigbee groups in this manner. But the stat of the zha zigbee group no longer switches state if you turn of a switch in the group. Only If a light changes state. But toggling the zha zigbee group changes the state of all the individual entities.
This would be true if there are say 2 (or more) lights and a switch in the group…. Not just 1 and 1. It’s a limitation of how we pick the entity that best represents the group
Well yes. All my groups consist of several light and a socket/switch or two. So Cool to learn why!
Where there a breaking change I missed. For the change in behavior, in 2024.7 if I turned on the switch individualy the group would turn on too. And after 2024.8 this no longer works. If the switch is the only thing on in a zha zigbee group then the group remains off. I have not touched the groups. And I'm 100% sirtuin of this because that is the condition for if all lights should turn on or off in all my rooms. For years now.
@dmulcahey, to clear up my confusion. just to be certain. Are you speaking about helper groups? or groups when you click on integration zha - configure - groups? Zha Zigbee groups I have had mixed sins 0. Something. And they have always presented as a light and I you turn on a switch in that group that entity turn on. Sins relerse 2024.8 you can still configure zha zigbee groups in this manner. But the stat of the zha zigbee group no longer switches state if you turn of a switch in the group. Only If a light changes state. But toggling the zha zigbee group changes the state of all the individual entities.
This would be true if there are say 2 (or more) lights and a switch in the group…. Not just 1 and 1. It’s a limitation of how we pick the entity that best represents the group
Well yes. All my groups consist of several light and a socket/switch or two. So Cool to learn why!
Where there a breaking change I missed. For the change in behavior, in 2024.7 if I turned on the switch individualy the group would turn on too. And after 2024.8 this no longer works. If the switch is the only thing on in a zha zigbee group then the group remains off. I have not touched the groups. And I'm 100% sirtuin of this because that is the condition for if all lights should turn on or off in all my rooms. For years now.
There was a state issue in .8 and I think maybe .8.1 but that should have been corrected. If you are having that issue still on the current HA version please put ZHA in debug mode, reproduce the issue, and capture debug logs and attach them here.
@dmulcahey, to clear up my confusion. just to be certain. Are you speaking about helper groups? or groups when you click on integration zha - configure - groups? Zha Zigbee groups I have had mixed sins 0. Something. And they have always presented as a light and I you turn on a switch in that group that entity turn on. Sins relerse 2024.8 you can still configure zha zigbee groups in this manner. But the stat of the zha zigbee group no longer switches state if you turn of a switch in the group. Only If a light changes state. But toggling the zha zigbee group changes the state of all the individual entities.
This would be true if there are say 2 (or more) lights and a switch in the group…. Not just 1 and 1. It’s a limitation of how we pick the entity that best represents the group
Well yes. All my groups consist of several light and a socket/switch or two. So Cool to learn why! Where there a breaking change I missed. For the change in behavior, in 2024.7 if I turned on the switch individually the group would turn on too. And after 2024.8 this no longer works. If the switch is the only thing on in a zha zigbee group then the group remains off. I have not touched the groups. And I'm 100% sirtuin of this because that is the condition for if all lights should turn on or off in all my rooms. For years now.
There was a state issue in .8 and I think maybe .8.1 but that should have been corrected. If you are having that issue still on the current HA version please put ZHA in debug mode, reproduce the issue, and capture debug logs and attach them here.
Here is the log. Hopefully, you can spot what's wrong. And thanks for your time so far. In the picture, you can see the group consisting of two lights Elliot tak 1 and 2, and the switch Elliot ovanför Sängen.
in the log I first turned on the group, and all entetis when to on. Then turned it off, and everything went to off. then I turned on just the smartplug but the group remains of.
Oooo is this only when the switch is on?? I need to double check the logic… but can you try something… turn off the switch and turn on one light…. What happens to the group entity?
Oooo is this only when the switch is on?? I need to double check the logic… but can you try something… turn off the switch and turn on one light…. What happens to the group entity?
I'm not sure I understand what you mean by only if the switch is on. I would say it doesn't matter what state the switch is.
But I did what you asked and I turned off everything including the switch. Then turned on a single light. The group also turns on. If I turn off the single light the group goes off.
And with everything off and I only turn on the switch the group remains off.
Edit: forgot to attach the debug log sorry home-assistant_zha_2024-09-19T18-26-19.937Z.log
Yep that is what I expected. Thanks!
The problem
Since the upgrade to 2024.8.X the Zigbee groups are broken.
1. If you go to the ZHA Groups overview, all Zigbee groups are gone:
2. If you try to create a new Zigbee group, after clicking the "CREATE GROUP" button, the progress wheel is spinning forever and nothing happens:
3. If you go to the device page of the Zigbee coordinator, all previously created groups are still there and function just fine:
4. If you go to the binding screen of any zigbee device, you only see a devices drop-down and no groups drop-down — so, binding to a zigbee group is not possible:
What version of Home Assistant Core has the issue?
core-2024.8.2
What was the last working version of Home Assistant Core?
core-2024.7.4
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ZHA
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response