paxswill / iocage-zigbee2mqtt

iocage plugin for Zigbee2MQTT
4 stars 3 forks source link
iocage-plugins truenas-core-plugin zigbee2mqtt

iocage-zigbee2mqtt

This is an iocage plugin for running zigbee2mqtt on TrueNAS Core.

Requirements

Installation

At some point in the future, this plugin should be available as a Community Plugin.

As an alternative, the following command will install from this repository directly:

iocage fetch -P zigbee2mqtt -g https://github.com/paxswill/iocage-zigbee2mqtt --branch 12.1-RELEASE --name zigbee2mqtt

The name can be modified as needed, and other properties (like setting VNET interfaces with interfaces="vnet0:bridge0") can be added at the end.

Configuration

The data directory is located at /usr/local/etc/zigbee2mqtt within the jail. After installation, it is recommended that you edit /usr/local/etc/zigbee2mqtt/configuration.yaml with the name of the serial port your Zigbee adapter is available at (the default configuration assumes /dev/cuaU0). Home Assistant integration is also disabled by default, so be sure to enable that if you plan to use that. Device and group specific configuration is split into devices.yaml and groups.yaml by default. For full configuration details see the zigbee2mqtt documentation.

A default secure configuration is installed, with a new random network encryption key generated and saved the first time zigbee2mqtt starts up. Device pairing is also disabled by default, but can easily be temporarily enabled from the web UI.

Usage

A web interface is available on port 8080 (and can also be accessed by clicking the "Manage" button in the TrueNAS plugin UI).

Upgrading

From within the jail, run service zigbee2mqtt upgrade. It should stop the jail, pull down and build the latest version of the zigbee2mqtt repository, and restart itself if everything succeeded.

Troubleshooting