Home Automation¶
The home automation stack runs in the home-automation namespace and provides smart home control, Zigbee device management, Matter/Thread protocol support, and MQTT messaging. All components are pinned to worker-04, which has the required USB hardware attached.
Architecture¶
flowchart TD
subgraph Devices
ZD[Zigbee Devices]
MD[Matter Devices]
TD[Thread Devices]
end
subgraph Coordinators["Hardware Coordinators"]
SLZB[SLZB-06<br/>Zigbee Coordinator<br/>tcp://slzb-06:6638]
end
subgraph Cluster["home-automation namespace"]
Z2M[Zigbee2MQTT<br/>Port 8080]
MOS[Mosquitto<br/>MQTT Broker<br/>Port 1883]
HA[Home Assistant<br/>Port 8123]
MS[Matter Server<br/>Port 5580]
OTBR[OTBR<br/>Thread Border Router<br/>Port 80]
end
ZD <-->|Zigbee protocol| SLZB
SLZB <-->|TCP| Z2M
Z2M -->|Publish device state| MOS
MOS -->|Subscribe to updates| HA
HA <-->|WebSocket| MS
MD <-->|Matter protocol| MS
TD <-->|Thread protocol| OTBR
OTBR --> HA
classDef broker fill:#f59e0b,stroke:#d97706,color:#000
classDef hub fill:#7c3aed,stroke:#5b21b6,color:#fff
class MOS broker
class HA hub Application Summary¶
| App | Purpose | Gateway | URL | LoadBalancer IP |
|---|---|---|---|---|
| Home Assistant | Smart home hub | envoy-external | ha.example.com | 192.168.0.227 |
| Zigbee2MQTT | Zigbee device bridge | envoy-internal | zigbee.example.com | -- |
| Mosquitto | MQTT broker | LoadBalancer | mosquitto.example.com | 192.168.0.226 |
| Matter Server | Matter protocol server | envoy-internal | matter.example.com | 192.168.0.228 |
| OTBR | Thread border router | envoy-internal | otbr.example.com | 192.168.0.230 |
Node Pinning¶
All home automation components are pinned to worker-04 (an Acemagician AM06 node) using nodeSelector:
This is required because:
- The SLZB-06 Zigbee coordinator is accessible via TCP from this node's network segment
- Matter Server requires
hostNetwork: truefor mDNS discovery and must be co-located with Home Assistant - OTBR needs access to
/devfor Thread radio hardware
Protocol Stack¶
| Protocol | Coordinator | Bridge | Integration |
|---|---|---|---|
| Zigbee | SLZB-06 (network) | Zigbee2MQTT | MQTT discovery in Home Assistant |
| Matter | -- | Matter Server | WebSocket to Home Assistant |
| Thread | OTBR | OTBR REST API | Home Assistant Thread integration |
| MQTT | -- | Mosquitto | Native Home Assistant integration |
SLZB-06 Coordinator
The Zigbee coordinator is an SLZB-06 network-attached coordinator, accessed over TCP (tcp://slzb-06:6638) rather than USB serial. This removes the need for USB passthrough into the container.