broersma-forslund / homelab

A repository containing our home system's configuration files; includes server management, home automation, and other associated system setups. includes Kubernetes setups for effective service orchestration within our home environment.
6 stars 2 forks source link

Setup zigbee2mqtt using network adapter #86

Open rouke-broersma opened 10 months ago

rouke-broersma commented 10 months ago

When we onboard a raspberry pi with the zigbee controller to talos we need a container that can mount the controller from usb and map it to tcp. Zigbee2mqtt can then connect to the controller over tcp.

https://www.zigbee2mqtt.io/advanced/remote-adapter/connect_to_a_remote_adapter.html#_2-a-configure-ser2net-4-0

unmaintained example of serial2network container: https://github.com/jbouwh/ser2net/tree/main

The advantage is that zigbee2mqtt can then run anywhere and is not bound to the node that has a zigbee controller.

rouke-broersma commented 10 months ago

Zigbee2mqtt can use mdns auto discovery. If we make the serial2network service discoverable through mdns, z2mqtt can auto connect: https://www.zigbee2mqtt.io/guide/configuration/adapter-settings.html#mdns-zeroconf-discovery