Skip to content

Home Assistant and Zigbee

Two integrations deserve a chapter of their own: the hub most Tasmota devices end up talking to, and the radio network one Tasmota variant can run for you.

Home Assistant discovery

Home Assistant can adopt Tasmota devices manually — every STATE and SENSOR message in the MQTT chapter is fair game — but the intended path is MQTT discovery. With discovery on, a device publishes retained configuration messages under the homeassistant/ prefix describing itself: its switches, lights, sensors and energy readings, each wired to the right command and state topics. Home Assistant listens on that prefix, builds the entities by itself, and keeps them updated. The lab verified the machinery in the source: the discovery driver (xdrv_12_home_assistant.ino) defines the prefix homeassistant and a last-will topic homeassistant/status so the hub can tell a live fleet from a dead one.

One setting controls it, and it has a history worth knowing. SetOption19 governs discovery, and the current source states v16's semantics in a comment, plainly: 0 means discovery is enabled (and 0 is the default); 1 disables discovery and removes the retained configuration message. Older blog posts describe the flag the other way round, from an era when it worked differently; if a guide tells you to set SetOption19 1 to turn discovery on, it is out of date — on current firmware that command switches discovery off and deletes the device's config from the broker. When in doubt, the source and the current documentation agree, and this is one of the places this guide checked them against each other.

Practical notes: discovery needs an MQTT broker both sides share (Home Assistant's own add-on broker is the usual choice), and renaming a device's topics after discovery means the hub holds stale entities until the old retained messages are cleared — rename early, before you fall in love with the dashboard.

The Zigbee bridge variant, briefly

Zigbee is a separate low-power radio network — bulbs, buttons and sensors that don't speak Wi-Fi — and it needs a coordinator. Two Tasmota variants are coordinators: tasmota-zbbridge for the Sonoff Zigbee Bridge, and tasmota32-zbbrdgpro for its Pro successor. Flashed with these, the bridge device stops being a Wi-Fi gadget and becomes the radio front end, managed by software such as Home Assistant's ZHA or by Zigbee2MQTT (which has its own guide in this series) over a serial-over-IP link.

Know the limit before you build on it: the Tasmota Zigbee implementation speaks to a specific family of coordinator chips and covers the common device classes well, but Zigbee2MQTT on a dedicated modern coordinator supports more devices and odder ones. The bridge variant's appeal is real — one cheap box, no extra dongle — and so is its ceiling. For a handful of bulbs and sensors it is plenty; for a house full of exotic Zigbee, plan a coordinator with headroom.