Skip to content

Zigbee (Zigbee2MQTT)

Zigbee devices talk to a local radio, not to the internet — no hub app, no vendor account, no cloud. That makes Zigbee the default choice for new sensors and lights in GoozLab.

How It Fits Together

graph LR
    subgraph MESH["Zigbee mesh (2.4 GHz, not IP)"]
        DOOR["Door contact<br/>🔋"]
        PIR1["Motion — downstairs<br/>🔋"]
        PIR2["Motion — upstairs<br/>🔋"]
        HUE["Hue bulbs ×3<br/>🔌 mains = routers"]
    end

    COORD["Ethernet Zigbee<br/>coordinator"]
    Z2M["Zigbee2MQTT<br/>LXC"]
    MQTT["Mosquitto<br/>(Home Assistant)"]
    HA["Home Assistant<br/>automations"]

    DOOR -.-> COORD
    PIR1 -.-> HUE
    PIR2 -.-> HUE
    HUE -.-> COORD
    COORD -->|"TCP over the LAN"| Z2M
    Z2M -->|"MQTT"| MQTT --> HA

Mains-powered bulbs are routers. Every Hue bulb repeats Zigbee traffic for battery devices near it, so adding lights makes the mesh stronger. Battery devices (sensors) never route.

Setup

  1. Coordinator: an Ethernet-connected Zigbee coordinator on a switch port, so the radio can sit somewhere central instead of being tied to a server's USB port
  2. Zigbee2MQTT: deployed as an LXC with the community-scripts Proxmox script, pointed at the coordinator's TCP address
  3. MQTT: Zigbee2MQTT publishes to the Mosquitto broker that Home Assistant already runs for Frigate; devices appear in HA automatically
  4. Frontend: zigbee.goozlab.net behind Caddy, protected by a frontend auth token
  5. Pairing: "Permit join" for a few minutes only, then turn it off again

Philips Hue without the Hue Bridge: Hue bulbs pair straight to Zigbee2MQTT. No bridge, no Hue account. (Reset a used bulb first.)

Devices

Device Model Job
Front door contact Sonoff SNZB-04P Door open/close
Motion sensor ×2 Sonoff SNZB-03PR2 Downstairs + upstairs hallways
Bulbs ×3 Philips Hue Essential A60 Porch, downstairs hallway, upstairs hallway

Automations

Trigger Action
Front door opens Doorbell camera snapshot to every household phone + indoor doorbell chime rings
It's dark outside Porch light on (dimmed — full brightness was too much)
Hallway motion Hallway light on; after late evening, at a low night-time brightness so nobody is blinded on a night-time trip

Monitoring

  • Grafana alert "Zigbee bridge down" if Zigbee2MQTT stops reporting
  • Battery devices report their level over MQTT — a low-battery notification is next on the list

Lessons

  • Put the coordinator on the network, not on USB. A network coordinator survives the Zigbee2MQTT container moving between Proxmox nodes, and can be placed centrally for range.
  • Add mains-powered devices early. They're the mesh. Battery sensors far from the coordinator only work well once there's a router (bulb or plug) between them.