How to troubleshoot recurring offline devices on battery (Z2M)

Hello,

I have a raspi4 8Go with a raspbee2 and Z2M and 69 devices. (21 routeurs, 48 on battery) :

Version de Zigbee2MQTT
1.33.2 commit: unknown
Type de coordinateur
ConBee2/RaspBee2
Révision du coordinateur
0x26650700
Version de l’interface
0.6.142
Zigbee-herdsman-converters version
15.106.0
Zigbee-herdsman version
0.21.0
Statistiques
Total 69
Par type d’appareil
Appareils terminaux: 48
Routeurs: 21
Par source d’alimentation
Batterie: 48
Secteur (monophasé): 21
Par vendeur
LUMI: 47
Legrand: 10
IKEA of Sweden: 4
SONOFF: 3
HEIMAN: 2
_TZ3000_cfnprab5: 1
LiXee: 1
Xiaomi: 1
Par modèle
lumi.sensor_magnet.aq2: 11
Cable outlet: 10
lumi.sensor_ht: 10
lumi.sensor_motion: 7
lumi.sensor_magnet: 7
lumi.weather: 6
TRADFRI control outlet: 4
lumi.sensor_smoke: 3
S26R2ZB: 2
WarningDevice-EF-3.0: 2
lumi.sensor_switch: 2
TS011F: 1
lumi.sensor_natgas: 1
ZLinky_TIC: 1
BASICZBR3: 1
LYWSD03MMC: 1

The wifi signal and the ZigBee one are on the opposite side of the bandwidth according to this article : ZigBee and Wi-Fi Coexistence | MetaGeek

ZigBee on channel 11, wifi on channel 11, same number but not the same frequencies. There is only one other wifi signal I can see from my neighbor but very weak.

The problem : every couple of day I have to re-pair some battery devices that lost the network. Their LQI is ok, battery too, for some of them (ex temp and humidity sensor from aquara) I just have to click on the button without repairing and it’s ok, for others I have to put the whole network on pairing mode and pair them again.

It’s really annoying, I don’t know what to do too fix this. All devices are close to at least 2 or 3 routers (less than 5 meters).

Thank you for your help !

I already tried to pair each device explicitly to the closest router, but it’s not better.

  1. What are your Zigbee router devices
  2. With Aqara always pair through a single - nearby - router
  3. Have you replaced the batteries?
1 Like

Not enough routers? You have a lot of end devices. Are all the mains devices actually routers?

I have 21 routers.

Almost 1 for 3 devices. I have 3 Ikea tradfri, 2 heiman siren, 10+ Legrand cable outlet.

I already tried to pair to the closest router, without more luck.

Yes all batteries are regular replaced, I have a recurring notification until replacement:)

21 routers, it should be more than enough

The question was what are they?

Some devices are really terrible routers and can cause you problems.

Depends entirely on the layout of your home, thickness of walls etc. etc.



This is the list.

About the house, it’s 200m2.
100m2 on the ground, 1 floor.

Wall are with this kind of material : https://images.app.goo.gl/p788KHyPRmTEiZRF6

Raspi4 is in the middle of the house, I have at least one router per room (Legrand cable outlet are for heaters, and I have one or 2 per room)

When as the network last working as expected? Remove everything added since then, then pair them again one at a time, waiting about a day between each to see how the network shakes down.

If you can identify where the problem started you’ll be nearer to knowing what it is.

What does your device map look like at couple points in time? If you can capture a snapshot of your device routes when one or more of these problematic devices are connected, are they in fact connecting via your router devices or falling back to connecting directly to your coordinator.

Not being able to capture a device’s ‘route back to the coordinator’ over time and seeing any changes is a real shortcoming in both ZHA and Zigbee2MQTT.

Good hunting!

Unfortunately I can’t remember when I had no issue at all ! I’m not sure it was the case one day :slight_smile:

Sonoff’s (router) devices have been reported as a source of stability problems before.

OK. So you’re asking for help troubleshooring a network that has never… er… worked. :thinking:

LQI ratings don’t mean much - different manufacurers generate them differently and in any case they change all the time - but as an overview I’d say that those in the snapshot you have provided are a bit low.

Here’s mine for comparison (not trouble-free by any means, but nearly all would count as at least “yellow” connections - 129-192 - on the ZHA map):

The co-ordinator is in the study, and LQI ratings there are high, as are those in the rooms directly above (bedroom) and below (living room). The weakest ratings are in the kitchen, hallway and landing areas, all of which are in a newer part of the building separated from the rest by a thick wall.

If you can generate an overview of your own home, associating LQI ratings with areas, I still think there will be places where additional routers will help.

1 Like

Thanks for your help, I’ll do this kind of dashboard, it may help. About my network it was probably ok 6-7 years ago with a couple of devices but to be honest I have this kind of problems for at least a year or two now and I recently started to make it more stable (adding routers, changing wifi channel, force connect to closest routers )

Could you share the code of your card please ? Is it a specific custom card with LQI filter ?

Thank you !

Multiple entity row card from HACS.

Example code:

type: entities
entities:
  - entity: sensor.tyzb01_hlla45kx_ts011f_lqi_5
    type: custom:multiple-entity-row
    name: Bedroom socket 1-2
    secondary_info: last-changed
    entities:
      - entity: sensor.tyzb01_hlla45kx_ts011f_rssi_5
        name: false
  - entity: sensor.signify_netherlands_b_v_lom003_lqi
    type: custom:multiple-entity-row
    name: Bedroom socket 3
    secondary_info: last-changed
    entities:
      - entity: sensor.signify_netherlands_b_v_lom003_rssi
        name: false
  - entity: sensor.tz3000_nkkl7uzv_ts0207_lqi_4
    type: custom:multiple-entity-row
    name: Bedroom router
    secondary_info: last-changed
    entities:
      - entity: sensor.tz3000_nkkl7uzv_ts0207_rssi_4
        name: false
title: Top floor routers

It is not clear to me that you and @wouf are using the same Zigbee systems. You seem to refer to ZHA and he is using Zigbee2MQTT.

That’s right. Would it make a difference to the number of routers needed?