ZHA - Zigbeegroup wrong light status in HA

Hi,

Before i start explaining my small issue, I searched the forum and I did found similar issues but the topics were old or the setup was slightly different ( using deconz ). So i decided maybe it is better to start a new topic.

I have 6 Ikea tradfri lights combined in a zigbee group using ZHA. The issue is, when i turn on or off the zigbee group not all lights in home assistant are updated correctly. For example when i want to turn off all the lights then I press the button and all lights are off however in home assistant 1 or 2 lights most of the times are still on which results that the zigbee light group according to home assistant is still on but the physical lights are off. When i press the button again then it will send the off signal again and then the full group in home assistant is off.

So that means that i often have to press the button twice to turn on or off the lights which is not a big issue but just annoying.

It happens from within home assistant and also when using the Ikea 5 button remote ( currently using frencks blueprint ) calling the ZHA group.

I tried to recreate the group but that did not really help.

All the lights are in the same room so i need to group them to have them switch on / off at the same time.

I’m using a conbee2 stick with the latest firmware and home assistant is running on a Raspberry PI 3

As the lights are responding really fast on button press. timeout seems to be unlikely but i don’t have debug logs to proof it.

Assuming this is not a bug, any ideas what else i can try to fix it?

Could this be linked to:

and

Seems there may be some ZigBee issues floatong around. Have you tried logging the ZigBee integration in Home Assistant to see if there are any error messages? You can enable it by adding the following to your configuration.yaml file:

logger:
  default: error
  logs:
    homeassistant.components.zha: debug
1 Like

Thanks Steven,

Below is the log when i had to press the button 3 times to have the ZHA group fully off

2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.entity] light.hal_beneden_zha_group_0x0002: turned off: [0, <Status.SUCCESS: 0>]
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_d6bc79fe_level_light_color_on_off: polling current state
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_710e61fe_level_light_color_on_off: polling current state
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_e20661fe_level_light_color_on_off: polling current state
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_c3fd59fe_level_light_color_on_off: polling current state
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_1bc978fe_level_light_color_on_off: polling current state
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_8f0861fe_level_light_color_on_off: polling current state
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xF7C1:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0514:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x5267:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3CE6:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 12:57:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xA1C8:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 12:57:22 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEFF8:1:0x0008]: received attribute: 0 update with value: 254
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2308  100  2308    0     0   125k      0 --:--:-- --:--:-- --:--:--  132k
2020-12-19 12:58:14 DEBUG (MainThread) [homeassistant.components.zha.entity] light.buiten_lamp_1_level_on_off: polling current state
2020-12-19 12:58:14 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3097:11:0x0008]: received attribute: 0 update with value: 254
2020-12-19 12:58:43 DEBUG (MainThread) [homeassistant.components.zha.entity] light.woonkamer_lamp_3_level_light_color_on_off: polling current state
2020-12-19 12:58:43 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3D22:11:0x0008]: received attribute: 0 update with value: 207
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2308  100  2308    0     0   125k      0 --:--:-- --:--:-- --:--:--  125k
2020-12-19 13:00:10 DEBUG (MainThread) [homeassistant.components.zha.entity] light.woonkamer_lamp_2_2c913c10_level_light_color_on_off: polling current state
2020-12-19 13:00:10 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1CA7:11:0x0008]: received attribute: 0 update with value: 207
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2308  100  2308    0     0  88769      0 --:--:-- --:--:-- --:--:-- 88769
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.hal_beneden_zha_group_0x0002: turned off: [0, <Status.SUCCESS: 0>]
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_d6bc79fe_level_light_color_on_off: polling current state
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_710e61fe_level_light_color_on_off: polling current state
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_e20661fe_level_light_color_on_off: polling current state
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_c3fd59fe_level_light_color_on_off: polling current state
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_1bc978fe_level_light_color_on_off: polling current state
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_8f0861fe_level_light_color_on_off: polling current state
2020-12-19 13:00:34 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3CE6:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:00:35 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xF7C1:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:00:35 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEFF8:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:00:35 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xA1C8:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:00:35 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0514:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:00:35 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x5267:1:0x0008]: received attribute: 0 update with value: 254
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2308  100  2308    0     0   125k      0 --:--:-- --:--:-- --:--:--  132k
2020-12-19 13:01:34 DEBUG (MainThread) [homeassistant.components.zha.entity] light.buiten_lamp_1_level_on_off: polling current state
2020-12-19 13:01:34 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3097:11:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.entity] light.hal_beneden_zha_group_0x0002: turned off: [0, <Status.SUCCESS: 0>]
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_d6bc79fe_level_light_color_on_off: polling current state
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_710e61fe_level_light_color_on_off: polling current state
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_e20661fe_level_light_color_on_off: polling current state
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_c3fd59fe_level_light_color_on_off: polling current state
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_1bc978fe_level_light_color_on_off: polling current state
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.entity] light.ikea_of_sweden_tradfri_bulb_gu10_ws_400lm_8f0861fe_level_light_color_on_off: polling current state
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xA1C8:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3CE6:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEFF8:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x5267:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:02:08 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xF7C1:1:0x0008]: received attribute: 0 update with value: 254
2020-12-19 13:02:10 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0514:1:0x0008]: received attribute: 0 update with value: 254
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2308  100  2308    0     0   112k      0 --:--:-- --:--:-- --:--:--  118k