Impossible for me to get ZHA Groups working, am I missing something, somewhere?
I can create ZHA groups and add 3 bulbs in the group, the group correctly appears as an entity. However, when I turn it on or off, nothing happens. When the bulbs are turned on the group seems to follow the status of the individual lights.
Nothing special in the log that caught my attention. Any idea what I am doing wrong? Do I miss a configuration step?
PS: I tried this with HUE Lights and with Ikea lights. Same issue
Seeing the low reply rate, I assume that ZHA groups are not used by many.
From the documentation I have the impression it should work. However, I read different mixed feedbacks for Philips Hue as for IKEA lights etc. All seem quite old.
Is there a way to debug/trace this? I enabled ZHA debugging but nothing seem to appear.
Or should I simply migrate to HA Groups (Light Groups) although those seem to have an impact on the Zigbee network.
Possibly much help, given the elapsed time, but mine would only react to their new group once I power cycled them at the mains. That got mine working through HA controls at least. Reconfiguring the bulbs was recommended but just didnāt help.
I had a similar experience where nothing looked odd; but their just wasnāt much to see even with the debug logs on.
Iāve been having a lot more issues with ZHA groups since; I canāt bind a remote to the group. Individual lights pair immediately but group bindings do nothing. No errors, no ui feedback and no completion (or failure) in the debug logs.
Iāve been having issues with groups as well, my workaround has been to copy the Entity ID, delete the group, and remake. Then add my devices so the group initializes and then replace the Entity ID with the prior one so all of my automations donāt break. My working theory is that some bit on the ZHA backend is corrupted for that group and the process above works for a fresh one.
I suggest to use zha-toolkit to check if the devices are effectively in the groups.
You can also add an remove devices (endpoints) from a group, but you best start by checking how the devices are currently configured before changing their configuration.
I moved to Light Groups and never further investigated the issue. Light Groups are working fine for me.
I mentioned the performance as (in theory), with Zigbee groups you would only send one command (one command to the Zigbee Group) vs multiple commands (one command for each group members - Light Groups).
My old system on a RPI3 had quite some performance issues. In the mean time I moved to a NUC, cleaned my system and I donāt have any performance issues anymore.
The other issue thatās kept me from moving to HA Light Groups is offline support. I use groups to bind switches to light groups. I donāt want my switches to be non-functional in the event my HA goes down. With zigbee groups, the devices can control each other even if HA goes offline. For most HA stuff, I donāt care. But for being able to toggle light switches, I really want that to not be dependent on the HA server.
I had a similar problem and found the solution. Posting here hoping it might help others.
Short version: Clear group memberships from devices/bulbs directly either through zha toolkit or through the previous zigbee network setup.
For me, the strange behavior was due to old group memberships retained when migrating from a previous zigbee network setup (deconz) to zha. Group associations are stored locally in each zigbee device. In zigbee networks, group commands are sent a single time to all devices, and the message includes the group ID for which devices the message is intended for. Each device/bulb knows which group numbers it should react to and does so accordingly.
I assume that zha keeps a parallel, but not necessarily equal, record of group memberships. When something other than zha has defined these groups, if the bulb is reset, or if a āremove groupā/āadd groupā message has not reached the device, there will be a discrapancy between the zha record of group membership and the devices own perceived groups memberships. In that case, zha will update group status based on changes in devices in the zha group, but bulbs will only react to their own record.
The solution is to update the group membership in the device/bulb itself. It can be done in zha by adding then removing from group or vice versa depending on if the device is not reacting when it should or reacting when it should not.
It can also be done in the previous zigbee network where the groups were defined in the first place.
It can also be done by zha toolkit. Install through HACS, then add āzha_toolkit:ā to configuration.yaml, restart HA, then run the following services in developer tools, services:
zha_toolkit.get_groups (see which groups the device itself thinks it belongs to, this corresponds to the āGroup Idā reported by zha, ā0x0002ā in the image in the first post. Note that the number is hexadecimal, and zha toolkit reports the number value, ie. ā2ā)
zha_toolkit.add_to_groups
zha_toolkit.remove_from_group
zha_toolkit.remove_all_groups (remove the single device from all groups)
etcā¦
Hi, not sure if this is the best thread but new to Zigbee devices and Iām exploring āgroupsā with ZHA. I have 4x SONOFF TRVs connected to ZHA with a SONOFF Coordinator USB dongle. All the TRVs appear as devices, all the entities exposed are there and controllable but I canāt group them (using Zha). I from the Zigbee coordinator device I follow: zha/group-add ā new group. But in the āadd devicesā the search doesnāt return any devices or results. Iām running latest version of Zha on HA core 2024.1.5
Am I missing something? I wondered if a Zigbee network needs a router to create groups? Is it a bug or is there some reason Zigbee TRVs donāt appear as devices that can be grouped? Any help/advice greatly appreciated
It sound promising. Iāve been working to get things back in order since the unfortunate update of the household IKEA remotesā¦ right now Iām relying on HA to automate with the sluggish response and lack of resilience as a result.
Can you share some more detailed examples of what you did to get things to work?
Iāve been trying both the aha-toolkit functions and the usual ZHA bindings.
Remote: Remote Control N2 by IKEA of Sweden (Quirk: zhaquirks.ikea.fourbtnremote.IkeaTradfriRemoteV2)
Lights: TRADFRI bulb E27 WS globe 1055lm by IKEA of Sweden (no quirk)
Coordinator: Conbee II
Lights are grouped in a ZLL group that seems to work when manipulated by ZHA.