DEV Community

Ohad Farkash
Ohad Farkash

Posted on

A cheap Zigbee setup for Home Assistant: the hub, the mesh and one listing trap

Battery sensors are where a home automation budget goes, and the cheapest ones are Tuya-made Zigbee devices that cost a few dollars each. They work well with Home Assistant, but only once three things are sorted out.

1. The coordinator comes first

Zigbee devices don't join your Wi-Fi. Home Assistant talks to them through a USB coordinator, for example the SONOFF ZBDongle-E (EFR32MG21), using either:

  • ZHA, built into Home Assistant: the least setup.
  • Zigbee2MQTT: a separate add-on plus an MQTT broker, with a larger device database and finer control.

Put the dongle on a short USB extension cable, away from the host's USB 3 ports and from the Wi-Fi router. USB 3 noise at 2.4 GHz is the classic cause of "devices keep dropping".

If you don't run Home Assistant, a Tuya Zigbee gateway does the same job for the Smart Life app, Alexa and Google Home.

2. Mains devices are your mesh

Zigbee is a mesh, but only mains-powered devices route traffic. Battery sensors are end devices that sleep. A couple of smart plugs or in-wall switch modules between the coordinator and the far rooms do more for reliability than any antenna.

Pair the routers first, then the battery sensors near where they will live, so each one picks a sensible parent.

3. The listing trap

Many marketplace listings sell the Wi-Fi and Zigbee versions under one product link, with the protocol picked as a variant. The Wi-Fi version will never show up in ZHA. Check the variant, and search the model number on the Zigbee2MQTT supported-devices list before buying.

What a starter set looks like

Device Why
mmWave presence sensor detects someone sitting still; PIR can't
PIR motion sensor hallways and stairs, coin-cell battery
Door / window contact security + "window open, heating off" automations
Temperature / humidity per-room climate, bathroom fan automations
Water leak sensor under the sink and the washing machine
Smart TRV per-room heating; most fit the M30x1.5 valve thread
Smart plug / switch module routers for the mesh + energy monitoring

I keep a list of these, ranked by real order counts and ratings, with the hub options first: Best Zigbee Sensors on AliExpress. The list has affiliate links, which cost you nothing.

What coordinator are you running, and has ZHA or Zigbee2MQTT held up better for you?

Top comments (0)