Zigbee2mqtt groups - populate the status of each entity of the group

Thanks for the great zigbee2mqtt; installed it on a nuc / hassio / docker environment. So far running smoothly.

Have a couple of hue lights.

Played with the new “group” functionality in zigbee2mqtt. Also running fine but there is one issue I am struggling to solve (just starting with mqtt).

I have a light group “kitchen” defined.

This group obviously has a couple of entities.

When I change the state of this group to for instance “on” the light bulbs are getting on.

But,

the several entities of the group

light.led1, light.led2, light.led3

are not getting this new status “on” within the UI.

How can I get the status of the entities of an group refreshed / synced in home assistant?

On a z-wave network the entities are updated without any further actions (by design of the network), in zigbee/mqtt it seems to be that the entities needs to be refreshed by code?

Does anybody have an idea?

Thanks
fregatte

Will try to make it more clear.

My light group is “lights_kitch_window” (group defined via “zigbee2mqtt/bridge/group/lights_kitch_window/add”).

One entity of this group is:
“hue_kitch_ssw_1”

switching on the light group (all leds of the group are shining; status of the light group within the UI changing accordingly:

zigbee2mqtt:debug 5/12/2019, 8:30:21 PM Received MQTT message on ‘zigbee2mqtt/lights_kitch_window/set’ with data ‘{“state”: “ON”}’
zigbee2mqtt:info 5/12/2019, 8:30:22 PM Zigbee publish to group ‘4’, genOnOff - on - {} - {“manufSpec”:0,“disDefaultRsp”:0} - null
zigbee2mqtt:info 5/12/2019, 8:30:22 PM MQTT publish: topic ‘zigbee2mqtt/lights_kitch_window’, payload '{“state”:“ON”,“brightness”:255,“color_temp”:500}’:

But status of the entity “hue_kitch_ssw_1” remains unchanged.

Even if I publish for the individual entity:
zigbee2mqtt/hue_kitch_ssw_1/get

zigbee2mqtt:debug 5/12/2019, 8:32:43 PM Saving state to file /share/zigbee2mqtt/state.json
zigbee2mqtt:debug 5/12/2019, 8:33:24 PM Received MQTT message on ‘zigbee2mqtt/hue_kitch_ssw_1/get’ with data ‘’
zigbee2mqtt:info 5/12/2019, 8:33:24 PM Zigbee publish to device ‘0x0017880104320f23’, genLevelCtrl - read - [{“attrId”:0}] - {“manufSpec”:0,“disDefaultRsp”:0} - null
zigbee2mqtt:debug 5/12/2019, 8:33:24 PM Received zigbee message of type ‘readRsp’ with data ‘{“cid”:“genLevelCtrl”,“data”:{“currentLevel”:254}}’ of device ‘LTW013’ (0x0017880104320f23) of endpoint 11
zigbee2mqtt:info 5/12/2019, 8:33:24 PM MQTT publish: topic ‘zigbee2mqtt/hue_kitch_ssw_1’, payload '{“state”:“OFF”,“linkquality”:28,“brightness”:254,“color_temp”:235,“color_mode”:2,“color”:{“x”:0.37,“y”:0.373}}'

Is there just no way to update the status of each individual entity if the group where this entity is a member gets a state change payload?

Thanks in advance.

For this you need to use the reporting functionality: http://www.zigbee2mqtt.io/information/report.html. However, some Hue bulbs don’t seem to support this: https://github.com/Koenkk/zigbee2mqtt/issues/1064#issue-408565656

@Koenkk,

thanks for coming back to this issue; interesting conversation


you pointed me to; didn’t spot that while searching on the web concerning this functionality.

But for me it does not work (I am actually on the edge version).

Getting lots of errors (below just an extract); groups are partly updating their entities (but just partly and inconsistently); zigbee2mqtt-edge is deleting more and more entities out of the group definition of my configuration.yaml.

zigbee2mqtt:error 5/16/2019, 2:29:51 PM Failed to setup reporting for ‘hue_kitch_sss_2’ - genLevelCtrl - 1 - (Error: Timed out after 30000 ms)
zigbee2mqtt:error 5/16/2019, 2:29:58 PM Failed to setup reporting for ‘hue_kitch_sse_3’ - lightingColorCtrl - 3 - (Error: Timed out after 30000 ms)
zigbee2mqtt:error 5/16/2019, 2:30:07 PM Failed to setup reporting for ‘hue_entr_eat_www_8’ - lightingColorCtrl - 3 - (Error: Timed out after 30000 ms)
zigbee2mqtt:error 5/16/2019, 2:30:11 PM Failed to bind for reporting for ‘hue_kitch_nnw_7’ - genLevelCtrl - 1 - (Error: Timed out after 10000 ms)
zigbee2mqtt:error 5/16/2019, 2:34:29 PM Zigbee publish to device ‘hue_kitch_ssw_1’, genOnOff - off - {} - {“manufSpec”:0,“disDefaultRsp”:0} - null failed with error Error: AF data request fails, status code: 183. APS no ack.
zigbee2mqtt:error 5/16/2019, 2:35:00 PM Zigbee publish to device ‘hue_kitch_ssw_1’, genOnOff - off - {} - {“manufSpec”:0,“disDefaultRsp”:0} - null failed with error Error: Timed out after 30000 ms

zigbee2mqtt:info 5/16/2019, 2:38:56 PM MQTT publish: topic ‘zigbee2mqtt/bridge/log’, payload ‘{“type”:{“device”:“hue_kitch_nne_5”,“group”:“3”,“action”:“remove”}}’
zigbee2mqtt:info 5/16/2019, 2:38:56 PM Zigbee publish to device ‘hue_kitch_nnw_7’, genGroups - add - {“groupid”:“3”,“groupname”:""} - null - null
zigbee2mqtt:info 5/16/2019, 2:38:57 PM Zigbee publish to device ‘hue_kitch_sss_2’, genGroups - remove - {“groupid”:“3”} - null - null
zigbee2mqtt:error 5/16/2019, 2:38:57 PM Zigbee publish to device ‘hue_kitch_sss_2’, genGroups - remove - {“groupid”:“3”} - null - null failed with error Error: rsp error: 17
zigbee2mqtt:error 5/16/2019, 2:38:57 PM Failed to remove 0x0017880104322095 from 3
zigbee2mqtt:info 5/16/2019, 2:38:57 PM Successfully add 0x0017880104307857 to 3
zigbee2mqtt:info 5/16/2019, 2:38:57 PM MQTT publish: topic ‘zigbee2mqtt/bridge/log’, payload ‘{“type”:{“device”:“hue_kitch_nnw_7”,“group”:“3”,“action”:“add”}}’

Will go back to zigbee2mqtt (non edge) to keep at least my groups.

Anyhow many thanks for your support and your work!!!