ZHA Zigbee Tested Devices...Please add your device results

I had it happen with one of my sensors occasionally. Replacement sensor had same problem. Traced it down to an Osram color light. Replaced it with Ikea color bulb and it flawless (mostly) since then. But I do have problem with one of Ikeas tunable whites. Sometimes is just freezes and all xiaomi sensors connected through it become unavailable. Requires a powercycle to fix it.

I’ve added ZHA into https://zigbee.blakadder.com and added most of the still available devices mentioned in this thread. Next step is to add all the devices from the quirks GitHub repository!

4 Likes

I really want this to work, but am a bit lost myself. I created zigbee group via the HA zha control panel. I added two zigbee lights. The only atribute I see is Group ID, no cluster, and also is how do I figure out commands? is there a list somewhere? Can you change colors using groups if both bulbs are the same? Just looking for a high level guide for
zha.issue_zigbee_group_command

Does not need to be a step by step (but that would be cool too), but just a go here to figure it out.

Thanks in advance

This has seemed to happen a bit more often for me as well. I have 6 of these and maybe once a week one get stuck. Sometimes just triggering motion gets it working again. I had felt like it was probably me restating HA while motion was detected,so I’ve pretty much ignored it,but will keep a closer eye on it now

1 Like

You have to use the zha issue group command service currently. it will get easier at some form in the future.

But for now you issue commands direct to the appropriate cluster. For example cluster six, command one to turn on the lights, command zero to turn them off, and command two to toggle the lights.

do you perhaps use node red? I have a small hacky flow that auto creates MQTT lights for all your zigbee groups. so then you just interact with the MQTT light entity like any other light but the backend is using the zig bee group commands.

1 Like

Thanks, I’m not using node red. I am unable to find the cluster ID, all I see is the group ID, which is 0x0001 since I only have one group that I created.

Thanks for the tips on the commands

edit: I think I found the cluster info. I’m able to send a command, but of course nothing happens. haha, but closer. My zigbee bulbs are hue light strips that I’ve moved to a zigbee controller, here is what I see, does this look right

image

This is what I’m trying (with and without manfacturer)
image

No errors that I can see, just nothing happens

Lose the manufacturer bit and it should work

Edit: sorry, saw that you already tried that. Can you crank the logging level for ZHA to debug And see that the group message is successfully sent?

So the lights are not right in front of me, it looks like they were in fact turning on and off. haha, but the UI did not show the individual lights state change, so I was looking at the UI, not seeing anything. So I guess my next question is… is that normal, and how can I get the lights in a group to report back their proper state when then change?

Hue bulbs do not support attribute reporting. :confused:

I didn’t like it either and in fact last night I just swapped out all of my hue bulbs for the $4 ecosmart bulbs.

1 Like

Well boo… haha. I have quite a few hue color bulbs, strips, and white. I’ll have to figure out another way (maybe after the fact via automation), to get the UI to update. My main goal is just for a few groups/scenes I have to turn on/off at the same time. I’m thinking I’ll automate the zha command to turn on the zigbee group, then maybe send the light command to “turn them on” but they’ll already be on.

Anyone able to set color or dimmer level via zha? I might start playing with that too.

Thanks agin

That was me and yes, it continues to be an issue on 0.104.2. I haven’t created a github issue yet (I have 3 of them I need to create), but work and home have been busy the past couple of weeks.

Would you mind sending me that flow? I’ve been slowly working on one, but given that I can’t even create groups right now, it’s not a high priority.

I’ve noticed the exact same behavior. Please keep me posted, I’m thinking of opening an issue on Github once I confirm the issue is not just me and on my end. These sensors are my primary motion sensors because of how fast and cheap they are.

1 Like

There is an issue with how the new group ID is selected. If you delete a group with a lower ID then an existing group you will trigger it.

Work around for now is to delete all your groups and then start again – and just not delete a group for the time being.

Here is the Node-RED flow. It’s super hacky and has not yet been tested very much at all, so use at your own risk. I’d wait for the official supported method to use groups:

[{"id":"95da7c30.420f4","type":"function","z":"e0703c90.1a341","name":"MQTT light","func":"name = msg.payload.group_id;\ndesc_name = msg.payload.name;\n\nvar light_config = {\n payload: {\n name: \"Zigbee Group - \" + desc_name,\n unique_id: name,\n command_topic: \"zigbee_group/\" + name + \"/command\",\n brightness_command_topic: \"zigbee_group/\" + name + \"/command/brightness\",\n brightness_state_topic: \"zigbee_group/\" + name + \"/state/brightness\",\n color_temp_command_topic: \"zigbee_group/\" + name + \"/command/color\",\n color_temp_state_topic: \"zigbee_group/\" + name + \"/state/color\", \n state_topic: \"zigbee_group/\" + name + \"/state\",\n json_attributes_topic: \"zigbee_group/\" + name + \"/attributes\"\n },\n\n topic: \"homeassistant/light/\" + name + \"/config\"\n};\nreturn light_config;","outputs":1,"noerr":0,"x":570,"y":1920,"wires":[["8989caff.e8b938"]]},{"id":"8989caff.e8b938","type":"mqtt out","z":"e0703c90.1a341","name":"MQTT","topic":"","qos":"2","retain":"true","broker":"4238db6e.227ed4","x":910,"y":1900,"wires":[]},{"id":"cf029a90.40e0f8","type":"comment","z":"e0703c90.1a341","name":"Zigbee Group Lights","info":"","x":130,"y":1880,"wires":[]},{"id":"8f19099d.92fd88","type":"mqtt in","z":"e0703c90.1a341","name":"","topic":"zigbee_group/#","qos":"2","datatype":"auto","broker":"4238db6e.227ed4","x":120,"y":1980,"wires":[["addc1cc6.7d374"]]},{"id":"9b2542a4.5efb","type":"change","z":"e0703c90.1a341","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"reply_topic","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":1960,"wires":[["8989caff.e8b938"]]},{"id":"92d411bb.c5f1f","type":"switch","z":"e0703c90.1a341","name":"topic","property":"topic","propertyType":"msg","rules":[{"t":"regex","v":"/command$","vt":"str","case":false},{"t":"regex","v":"/brightness$","vt":"str","case":false},{"t":"regex","v":"/color$","vt":"str","case":false}],"checkall":"true","repair":false,"outputs":3,"x":530,"y":1980,"wires":[["e452ee14.a985e"],["5db62b37.9ceef4","5582c837.9709a8"],["5a7034aa.c54e1c","c4917a31.a8e1c8"]]},{"id":"e452ee14.a985e","type":"switch","z":"e0703c90.1a341","name":"ON / OFF","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"ON","vt":"str"},{"t":"eq","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":700,"y":1980,"wires":[["9b2542a4.5efb","38a6c743.151ff8"],["9b2542a4.5efb","76526e2b.be83f"]]},{"id":"5db62b37.9ceef4","type":"debug","z":"e0703c90.1a341","name":"brightness","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":690,"y":2140,"wires":[]},{"id":"5a7034aa.c54e1c","type":"debug","z":"e0703c90.1a341","name":"color","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":670,"y":2180,"wires":[]},{"id":"38a6c743.151ff8","type":"api-call-service","z":"e0703c90.1a341","name":"group on","server":"e2a02faf.48099","service_domain":"zha","service":"issue_zigbee_group_command","data":"{\"group\":\"{{group}}\",\"cluster_id\":\"6\",\"command\":\"1\"}","mergecontext":"","output_location":"","output_location_type":"none","x":920,"y":2000,"wires":[[]]},{"id":"76526e2b.be83f","type":"api-call-service","z":"e0703c90.1a341","name":"group off","server":"e2a02faf.48099","service_domain":"zha","service":"issue_zigbee_group_command","data":"{\"group\":\"{{group}}\",\"cluster_id\":\"6\",\"command\":\"0\"}","mergecontext":"","output_location":"","output_location_type":"none","x":920,"y":2060,"wires":[[]]},{"id":"5582c837.9709a8","type":"api-call-service","z":"e0703c90.1a341","name":"group brightness","server":"e2a02faf.48099","service_domain":"zha","service":"issue_zigbee_group_command","data":"{\"group\":\"{{group}}\",\"cluster_id\":\"8\",\"command\":\"4\",\"args\": [\"{{payload}}\",\"0\"]}","mergecontext":"","output_location":"","output_location_type":"none","x":950,"y":2120,"wires":[[]]},{"id":"c4917a31.a8e1c8","type":"api-call-service","z":"e0703c90.1a341","name":"group color","server":"e2a02faf.48099","service_domain":"zha","service":"issue_zigbee_group_command","data":"{\"group\":\"{{group}}\",\"cluster_id\":\"768\",\"command\":\"10\",\"args\": [\"{{payload}}\",\"0\"]}","mergecontext":"","output_location":"","output_location_type":"none","x":930,"y":2180,"wires":[[]]},{"id":"45a64115.cd078","type":"debug","z":"e0703c90.1a341","name":"debug zigbee group","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":440,"y":2180,"wires":[]},{"id":"addc1cc6.7d374","type":"change","z":"e0703c90.1a341","name":"","rules":[{"t":"set","p":"group","pt":"msg","to":"topic","tot":"msg"},{"t":"change","p":"group","pt":"msg","from":".*zigbee_group.(\\d*).*","fromt":"re","to":"$1","tot":"str"},{"t":"set","p":"reply_topic","pt":"msg","to":"topic","tot":"msg"},{"t":"change","p":"reply_topic","pt":"msg","from":"command","fromt":"str","to":"state","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":1980,"wires":[["45a64115.cd078","92d411bb.c5f1f"]]},{"id":"40404cfd.af1504","type":"inject","z":"e0703c90.1a341","name":"","topic":"","payload":"","payloadType":"date","repeat":"600","crontab":"","once":true,"onceDelay":"600","x":130,"y":1920,"wires":[["3342015d.e41c9e"]]},{"id":"3342015d.e41c9e","type":"ha-api","z":"e0703c90.1a341","name":"API","server":"e2a02faf.48099","protocol":"websocket","method":"get","path":"","data":"{\"type\": \"zha/groups\"}","location":"payload","locationType":"msg","x":287,"y":1918,"wires":[["ea73afc.3bf665"]]},{"id":"ea73afc.3bf665","type":"split","z":"e0703c90.1a341","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":414,"y":1918,"wires":[["95da7c30.420f4"]]},{"id":"4238db6e.227ed4","type":"mqtt-broker","z":"","name":"","broker":"127.0.0.1","port":"1883","clientid":"homeassistant","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"e2a02faf.48099","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]

1 Like

Dimming is cluster 8, command 4 with args [ level, 0]

Color temp is cluster 768, command 10 with args [temp, 0]

Where level or temp is 0-255 for the level or color temp.

2 Likes

Heiman Smoke Sensor unavailable after 2-3 hours from adding to HA. I use deconz Conbee 2 through ZHA.

Does it become available again if you trigger it or press the button?

No, not available. Also Heiman CO Sensor unavailable too.
All other sensors worked fine in 2-3 days of test.

Heiman CO Sensor may return online after 2-3 hours after disappearing.

It looks like Heiman sensors go into deep sleep and don’t reply to “pings” from ZHA, when there’s no traffic from that device for 2 hours.

1 Like