Zigbee topology visualization - how to use children

Hi. I have multiple zigbee devices in my house. Mostly powered Hue lamps + some battery aqara sensors and some switches.

I added all devices via my ZHA integration.
My topology looks like a trash. Everything is connected to everything.

Now I am experiencing problem, that sometimes everything working perfect and sometime there is lag 3-4-5 seconds in whole zigbee mesh network.
I tried remove 2 devices and add them as child to another device. But still in topology they are also connected to everything. I thought, that I need to build my mesh network by system as router → child device → another child device etc…

Have you any advice how to do that? Or what can cause lagging?
Thanks.

Ive not done this myself, but from what I understand if you kill the power to the controller for about 30 minutes the network will rebuild itself in a more efficient manner when it reboots. Could take awhile though.

Maybe I’m confused but I actually think you are…

The zigbee mesh is supposed to work like that. Everything should be connected to everything else. That’s literally what makes the mesh stronger.

Why would you want to weaken the mesh by connecting things in a line instead of a mesh?

1 Like

We are having a good faith and taking granted all devices are following zigbee standards but they don’t. Some won’t pair with some other coordinators, some won’t act as a router foe different brands.

So, going back to mesh discussion, if you line up your devices via initial pairing sequence, according to the standards, they could change their route anytime without asking our permission, if there are other routes available.

And sometimes, whatever we think best is not the one they choose :slight_smile:

I dont want to make it weaker. I just thought that this causing my problems. But if it is suposed to worl like that, so problem is somewhere else.
But I have no idea where.

As I said, sometimes everythings works well, and sometimes there is huge lag when I turn on light.
Sometimes when I press switch button (and I turn on light with automation) everything is done in miliseconds. If I press entity switch in Home Assistant dashboard everything is done in miliseconds.

But sometimes my whole zigbee network lagging. So when I pres switch, light will react after 3-4-5 seconds. WHen I press entity switch in Home Assistant dashboard this time, when mesh is lagging, there are also slow reactions 3-4-5 seconds.

There are MANY places lag can occur. it depends on many factors.

  • What kind of button, how is it connected?
  • What kind of light, how is it connected?
  • How was the automation setup?
  • Did the automation have to process through HA before it did anything?
  • Was HA busy when the automation triggered?

Additionally, yes it could be the ZigBee network, but even there it’s likely external sources of interference… Do you have any microwaves near the endpoints, USB3 devices (especially HDDs/SSDs) 2.4Ghz Wi-Fi or even other Zigbee networks?

Sorry I just expanded all the variables you need to check for troubleshooting this - but no your Zigbee topology doesn’t appear to be the issue.

What is your coordinator ?

  • What kind of button, how is it connected?
    It does not matter. Its not lagging all the time. And when its lagging, it does not matter if I press Philips Hue Dimmer Switch button or toggle buttton on home assistant dashboard.

  • What kind of light, how is it connected?
    All my lights are Philips Hue. I have some bulbs, some led panels and some lamps from Philips Hue. Its around 50 devices (switches + lights). When lights and switches are connected to Hue Hub, all works ok. When I connect all to my ConBee zigbee coordinator, its start laggind (Hue Hub was turned off and I had one zigbee network in one time).
    I bought some awara door sensors and that is reason why I want to have all in Home Assistant zigbee network.

  • How was the automation setup?
    I am not sure, if I understand to this question. But this is my automation to turn on one of light (i have second automation to turn off and another one to dim up and another one to dim down. So for 1 light there are 5 automations (fitfh is color cycling).

alias: P_KCH_switch ON pressed when OFF
description: ''
trigger:
  - device_id: 15c6a9adc59b0ac755ba76a20fca5c26
    domain: zha
    platform: device
    type: remote_button_short_press
    subtype: turn_on
condition:
  - condition: state
    entity_id: light.p_kch_light_main
    state: 'off'
action:
  - service: light.turn_on
    data: {}
    target:
      entity_id:
        - light.p_kch_light_main
        - light.p_kch_light_table
mode: single

But as I said. There are long time, when everythings works perfect. All time when I restart my Home Assistant everythings works in super speed.

  • Did the automation have to process through HA before it did anything?
    I dont know. I dont think so. But there is lag even when I have entity toggle button for light and I tap with finger on that button. There is no automation in that time and lags was yesterday almost one minute. It looks like if HASS is long time without restart, lag is larger, but it sometimes fixed even without restarting of HASS. But all other devices (zwave and wifi) works instantly. So issue is only in zigbee network.

  • Was HA busy when the automation triggered?
    Its like I said previous.

  • What is your coordinator ?
    Conbee 2. But I had also POPP previous, but it was not stable. So I bought Conbee and all reconnect.

Another info:
I have raspberry 4 with 1GB ram and 128GB (I am planning to upgrade to raspberry 4 with 4GB RAM and SSD.
My raspberry is 1 meter away from WiFi Router (Deco M9, I have 4 Deco router in house).
Conbee2 is connected to raspberry with 1,5 meters long USB extension cable.
Zwave stich is directly connected to raspberry (Aeotec).
Conbee2 is 1 meter away from mirror.
Conbee2 is 0,5 meter away from metal Coat hanger.

Maybe interference? But its weird behaviour.

Or should I use Node Red? Or Node Red is too slow for lighting control?

Reading this I do not believe it is the zigbee mesh. The mesh can not hold a command for 1 minute, it will just be a lost command, as I understand zigbee.
Your logs, anything on conbee? I think there might be some problems between ZHA and the conbee? Maybe something else using the USB port, hence making ZHA wait? Are port are ZHA pointing to?
How about the deconz supervisor sw, remember this should not be installed.