Snap (Snapcraft.yaml) recipe for Zigbee2MQTT that allows you to use your Zigbee devices without the vendors bridge or gateway.
This page will only include specific information about this unofficial snap-version of Zigbee2MQTT. For general Zigbee2MQTT information, see zigbee2mqtt.io
This snap recipe is in early stages of development, your feedback would be appreciated. Just open an issue on GitHub.
The snap version consists of the zigbee2mqtt release tag and an additional ascending number (e.g. 0.15.0-1).
Make sure you have snapd installed on your system. See Installing snapd for a list of distributions with and without snap pre-installed, including installation instructions for those that have not.
$ snap install janlochi-zigbee2mqtt
It's required to manually connect the serial port to the snap and enable the experimental hotplug support in snapd (at least 2.39). For additional information see Hotplug support | Snapcraft documentation.
$ snap set system experimental.hotplug=true
$ systemctl restart snapd.service
$ # one of the following commands
$ snap connect janlochi-zigbee2mqtt:serial-port core:usb20-serial
$ snap connect janlochi-zigbee2mqtt:serial-port snapd:usb20-serial
$ snap connect janlochi-zigbee2mqtt:serial-port snapd:usbserial
The configuration.yaml
is located in /var/snap/janlochi-zigbee2mqtt/current
and initially populated with a default configuration suitable for the snap.
Consider using /dev/serial/by-id/....
instead of /dev/ttyUSB0
.
Use snap restart janlochi-zigbee2mqtt
after editing the yaml file.