zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Testing: group support

Open Koenkk opened this issue 7 years ago • 277 comments

This issue is used to gather feedback on the group support feature (#15).

Todo:

  • [ ] Refresh state of bulbs when changed via group.

Notes:

Koenkk avatar Dec 27 '18 18:12 Koenkk

Thanks for this! I'm having one issue, when I call zigbee2mqtt/bedroom_lights/set, I get the following error:

Failed to find device with ieeAddr: 'bedroom_lights'

dcshoes23 avatar Dec 27 '18 20:12 dcshoes23

I used zigbee2mqtt/group/bedroom_lights/set instead and it works! Awesome job!

dcshoes23 avatar Dec 27 '18 20:12 dcshoes23

@dcshoes23 please update to the latest dev branch, zigbee2mqtt/group/bedroom_lights/set is the "old" api (I've changed it a few hours ago).

Koenkk avatar Dec 27 '18 20:12 Koenkk

@Koenkk Just pulled the latest-dev now and it works with zigbee2mqtt/bedroom_lights/set, thanks!

dcshoes23 avatar Dec 27 '18 20:12 dcshoes23

This new fw, does it reduce the number of devices the coordinator can hold ?

subzero79 avatar Dec 27 '18 21:12 subzero79

@subzero79 the CC2531 firmware released together with zigbee2mqtt 1.0.0 had a limit of 20, the new firmware has a limit of 15 (because the stack has to be increased for stability reasons).

In case you only have battery powered devices (aka don't have any routers) you can use the max devices firmware which has a limit of 44 devices.

Koenkk avatar Dec 27 '18 21:12 Koenkk

@Koenkk zigbee2mqtt/bridge/groups/[GROUP_FRIENDLY_NAME]/add worked with the old version and now it doesn't do anything. There is nothing shown in the logs

dcshoes23 avatar Dec 27 '18 21:12 dcshoes23

@dcshoes23 it's zigbee2mqtt/bridge/group/[GROUP_FRIENDLY_NAME]/add (group without s) now.

EDIT: fixed the docs.

Koenkk avatar Dec 27 '18 21:12 Koenkk

@Koenkk that worked, thanks!

dcshoes23 avatar Dec 27 '18 21:12 dcshoes23

looks awesome! setting about 15 GU10 spots so groups are welcome!

trekker25 avatar Dec 28 '18 21:12 trekker25

How likely is the fw to be changed again in the future?
For example to be able to poll an attribute from a device on demand (like xiaomi plugs power, waiting for that feature) when is implemented do you think it will need fw rebuild? Having to repair all devices is not something I look forward to.

subzero79 avatar Dec 30 '18 04:12 subzero79

How likely is the fw to be changed again in the future? For example to be able to poll an attribute from a device on demand (like xiaomi plugs power, waiting for that feature) when is implemented do you think it will need fw rebuild? Having to repair all devices is not something I look forward to.

agree on that. currently only have 4 devices, but think on upgrading soon, but upgrading the firmware without some kind of export / import seems unworkable with 30+ device.s

trekker25 avatar Dec 30 '18 13:12 trekker25

@subzero79 polling attributes doesn't require a firmware update.

Koenkk avatar Dec 30 '18 17:12 Koenkk

How does this integrate in best way with Hass?

trekker25 avatar Jan 01 '19 19:01 trekker25

@trekker25 the OP contains a link on how to do this

Koenkk avatar Jan 01 '19 19:01 Koenkk

Sorry how could I miss that. In 6 weeks my new kitchen is ready and then can work with it. Group of 4, another group of 4 and a group of 9 gu10 spots. Curious how this will work out as I only work with wireless switches and sensors and not adding physical switches.

trekker25 avatar Jan 01 '19 19:01 trekker25

Hello, Can i flash the .hex file (extracted from the zip in https://github.com/Koenkk/Z-Stack-firmware/tree/dev/coordinator/CC2531/bin/) with the alternative flashing method? (Via Arduino, described here: https://koenkk.github.io/zigbee2mqtt/information/alternative_flashing_methods.html) Thanks in advance!

EquinoxTheGryph avatar Jan 01 '19 21:01 EquinoxTheGryph

@stcraft If I remember correctly, no

Koenkk avatar Jan 01 '19 22:01 Koenkk

@Koenkk I've done a bit of research and testing. It seems removing this line near the bottom of the .hex file: :0400000500002DD0FA will do the trick to get the file to flash. (otherwise, the script will spit an error out mentioning something about 05)

I found this out after diff-ing the two hex files (one modded and the other not, Located here: https://github.com/kirovilya/files) This was the only change being made.

EquinoxTheGryph avatar Jan 04 '19 08:01 EquinoxTheGryph

I still haven't flashed the group fw, i have 4 plugs in the attic, overall 24 devices. How does the group works if you want to change brightness or color temp? or it can just control on/off?

Also is it possible to add a group to another group? or can one device be in more than one group?

subzero79 avatar Jan 07 '19 06:01 subzero79