this post was submitted on 01 Jun 2025
26 points (100.0% liked)

homeassistant

14421 readers
6 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I recently setup my ZigBee network in Home Assistant, using a Conbee III with deConz on my Synology NAS.

I purchased a few Aqara Temperature sensors and a couple of Mini Switches.

I was able to get them to pair just fine, but they won't remain online for more than a couple days. They then drop off and I can't even reconnect them easily. I need to try to pair them again like 10 times before they come back online.

At this point I don't know if the problem is my network, the Conbee III, deConz, or the Aqara devices.

I don't know much about ZigBee, but a couple things that I tried so far were:

  1. Use a USB extender instead of connecting the Conbee III directly to my NAS.
  2. Bring the devices as close a possible to the gateway. I don't have a big home, so I don't think distance is a factor here, but still, I put of the sensors right next to the gateway, and it would still drop after a while.

Do you have any hints on things to try to get this fixed, or at least identify the problem?

top 30 comments
sorted by: hot top controversial new old

I use Z2mqtt and still get random powered devices showing as unavailable. Too bad there isn’t a “ping” feature like ZWave.

Nothing moves, and yet I get random unavailable devices that come and go randomly.

I guess I need to check my WiFi channels. One of my biggest complaints around Zigbee vs ZWave. I don’t have these issues with my ZWave devices.

[–] phrogpilot73@lemmy.world 2 points 1 day ago (1 children)

Do you have any zigbee routers (mains powered devices) scattered around your house? I had the same problem, then I strategically placed a bunch of smart plugs throughout my house. Haven't had any problems since.

[–] MrKurtz@lemm.ee 1 points 1 day ago (1 children)

No, I don't have any ZigBee routers, just the Aqara sensors. My home is pretty small, so I didn't think I would need them, but I am leaning towards that being the issue. Last night I paired one of the sensors again, right next to the controller and left it there - literally 5 cm from it. It has stayed online so far, which is more than it usually does.

Weird thing is that I have another sensor in that same room just like a couple meters away and that one keeps dropping. Is ZigBee's range really that short?

What criteria should I follow to place the routers? One per room should be enough?

[–] phrogpilot73@lemmy.world 1 points 2 hours ago

My experience is that Zigbee's range is fine, but it is highly susceptible to interference/electrical wires/water pipes that might be in walls. I put my Conoff dongle on a 12 ft USB extension (my HA Raspberry Pi is right next to my router, modem, and home server). Then, as I was having issues with devices staying connected, I added routers. I tried to place them so they had clear line of sight with each other (or the dongle), or only through one wall. After that, I've had no problems. It ended up being about one per room. Ikea's smart plugs are cheap and I use them only as routers.

[–] paf@jlai.lu 2 points 1 day ago

The most popular way (and might also be the best) is to use z2m instead of deconz

[–] roofuskit@lemmy.world 8 points 2 days ago (3 children)

Once everything is online have you checked the network map to see how it's all connected? That might give you an idea. If everything is connected directly to your gateway your problem is probably there. If it's all bridged through one relay device that device is likely the issue.

I've got a fairly extensive Zigbee network (32 devices) - using a CC2652 USB stick hooked up to an rpi with socat connecting that to my HA VM. I have probably a dozen wired devices (in-wall switches, plug-in outlets, etc.) scattered between the two floors and even the wired devices occasionally fall off the mesh, while most of them (and about 50% of the wireless devices) are pretty robustly connected. I've found no real link between LQI/RSSI and a device's stablity, nor have I found any real link between manufacturer and stability. Sonoff, Aqara, ewelink, lumi. It's frustrating, because some of the devices that fail to stay connected are within 3 meters of either the hub or a wired device and report great signal strength. I just don't feel that Zigbee is all that awesome for a robust low power network.

When I'm at the house next I might try moving the entire network to a different channel, as tedious as that is going to be.

[–] mhzawadi@lemmy.horwood.cloud 6 points 2 days ago (1 children)

Yes would agree, more mains powered devices can help with network range

[–] Dragomus@lemmy.world 4 points 2 days ago

^This ...

I have seen a few places now where devices drop randomly if they're two "hops" over from a gateway. It always appears to be that the missing device thinks it is meshed in but the device it meshes with is saying nah, too far I can't understand you. Adding a mains powered zigbee gateway or device solves it promptly.

[–] MrKurtz@lemm.ee 2 points 2 days ago (1 children)

How can I see how everything is connected or check the signal strength at the devices?

[–] roofuskit@lemmy.world 3 points 1 day ago

Devices and services, click on your Zigbee integration, configure, then network. Not sure if it works the same way for all the integrations, but that's how ZHA works. I know z2mqtt has a network map as well.

[–] mhzawadi@lemmy.horwood.cloud 8 points 2 days ago (3 children)

Having moved my home assistant from the middle of my house to a garden shed/office, check your WiFi network is not on channel 1. As that will most likely be the same part of the spectrum as your ZigBee network, if you have your ZigBee on channel 11.

[–] JelleWho@lemmy.world 8 points 2 days ago (3 children)

On another note. A zigbee network is a mesh network set up at pairing. Moving your host around will not re-generate the routes in the network and make your devices drop.

Pair your devices (and hub) in there position they will be in when installed.

[–] EarMaster@lemmy.world 3 points 1 day ago

Also: mains powered devices (lightbulbs, smart plugs, zigbee repeaters) will all act as a repeater in your mesh. Depending on your home it might help to add in a few of them. But keep in mind that this will not magically make your existing devices use them. When setting up your network always pair your permanent powered devices first so they can act as endpoints for your battery powered ones.

[–] nekusoul@lemmy.nekusoul.de 2 points 1 day ago

Well, this explains a whole lot. I've recently paired a few devices in front of the receiver and then moved them into position and wondered why some of them kept dropping off.

I don't know if that's the (entire) story -- the mesh is supposed to occasionally reroute based on the link quality of the individual nodes and the repeaters they can see.

[–] mhzawadi@lemmy.horwood.cloud 5 points 2 days ago (1 children)
[–] SteveTech@programming.dev 3 points 1 day ago

Thanks TIL! Although I prefer this diagram that has all the wifi channels on it, instead of just the 3 common ones.

Diagram of ZigBee, Bluetooth, and WiFi Channels

Source

[–] MrKurtz@lemm.ee 0 points 2 days ago (1 children)

My wifi is on channel 11, while ZigBee is on 15. That shouldn't overlap, right?

[–] mhzawadi@lemmy.horwood.cloud 1 points 2 days ago* (last edited 2 days ago) (1 children)

15 is right in the middle of both WiFi 1 and 6, maybe not the best channel for ZigBee.

Check out this page https://www.metageek.com/training/resources/zigbee-wifi-coexistence/

[–] MrKurtz@lemm.ee 1 points 2 days ago (1 children)

So... It should be good if I am using WiFi 11, shouldn't it? Not sure if I am missing something.

[–] mhzawadi@lemmy.horwood.cloud 1 points 1 day ago

Yeah, should be

[–] avidamoeba@lemmy.ca 5 points 2 days ago* (last edited 2 days ago)

I had a similar problem with Aqara leak sensors. I solved it by installing a smart switch very close to it, about 30cm in my case. For shitty sensors, it's important to have strong signal close to them and set them up at the location of usage so they connect through that strong node.

Don't try fiddling with the receiver much, instead treat your network as a mesh, which it is. Ensure there's a good path of nodes between the receiver and the edges of the network. I did this initially by sprinkling IKEA smart switches around. I have at least one in every room. The same is valid for Z-Wave.

This is in addition to fixing your channels as suggested by others.

[–] blargbluuk@sh.itjust.works 2 points 2 days ago

I had a couple of Aqara sensors awhile ago (vibration sensor and door sensors) and they always fell off the network randomly and required re pairing. Aqara don't seem to properly follow the zigbee standard, so unless you're using their gateway there's a good chance it will just stop working - or at least that's been my experience. I replaced them with different brands and haven't had a problem since.

I wasn't clear from your post if most of the devices are Aqara or not but if they're all that brand then I would guess this is your problem.

[–] CondorWonder@lemmy.ca 1 points 2 days ago (1 children)

How is the link strength for the devices? Do they still drop off if you leave them right by the controller? If you’re just getting started I’m guessing you don’t have a strong mesh yet with plugged in devices to provide routers to the network.

My experience is that some manufacturers are better at following the spec and devices work better or worse based on that.

[–] MrKurtz@lemm.ee 2 points 2 days ago (1 children)

How can I check the signal strength for the devices? Indeed these are my only devices on the network. No routers.

One of the sensors is a couple meters from the controller, direct line of sight... And still drops. Does it need to he closer?

[–] CondorWonder@lemmy.ca 1 points 2 days ago* (last edited 2 days ago) (1 children)

I don’t know deConz but ZHA shows RSSI on the device in home assistant, and you can see RSSI in the Zigbee2MQTT UI list of devices. I’d assume it’s something like that in deConz.

I’d say if the device is closer to the controller then I’d suspect the devices. Do you have any other devices yet or just the Aquara sensors? It’s possible they work better through a Zigbee router too so you can try connecting them via one.

[–] MrKurtz@lemm.ee 1 points 2 days ago (1 children)

I'll check, but I haven't seen anything like that in deConz.

Yeah, ALL my devices are Aqara at this point.

[–] CondorWonder@lemmy.ca 1 points 1 day ago (1 children)
[–] MrKurtz@lemm.ee 1 points 1 day ago

Thanks! There definitely seems to be a network map view on the desktop deConz app, but I am using the Docker version of deconz and the only way I have to manage it is through Phoscon, which is the web UI. I really don't see how to use the desktop app to manage my Conbee controller, since it is installed on my NAS, not a PC.

I'll keep investigating.