1.4.2 • Published 5 years ago
wirenboard-module-zigbee v1.4.2
ZigBee manager
Preparation
- Connect your device to the internet
- Connect to device by any SSH client
Install NodeJS, if it is not yet
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs git make g++ gcc build-essentialPrepare mqtt proxy
Install wirenboard-mqtt-proxy to global space
npm i -g wirenboard-mqtt-proxyStart the proxy
wirenboard-mqtt-proxy startTo enable proxy autorun on boot use it
wirenboard-mqtt-proxy enablePrepare zigbee2mqtt
Install zigbee2mqtt
git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
chown -R root:root /opt/zigbee2mqtt
cd /opt/zigbee2mqtt
npm ciCreate daemon for autostart on boot OS
nano /etc/systemd/system/zigbee2mqtt.serviceAnd add following
[Unit]
Description=zigbee2mqtt
After=network.target
[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/zigbee2mqtt
StandardOutput=inherit
StandardError=inherit
Restart=always
User=root
[Install]
WantedBy=multi-user.targetEnable daemon
systemctl enable zigbee2mqttStart daemon
systemctl start zigbee2mqttConfigure zigbee2mqtt
nano /opt/zigbee2mqtt/data/configuration.yamlTo get data by value set parameters
experimental:
output: 'attribute_and_json'Install module
To install this packet use wirenboard-module command. Install it if necessary
npm i -g wirenboard-moduleAdd zigbee module and rule
wirenboard-module zigbeeTODO
- add lastseen from zigbee2mqtt
- add controls: relays, outlets, ..
Notice
- module tested on wirenboard firmware 0.46-20190613
Best regards
- FullHouse team
- https://fullhouse-online.ru
- support@fullhouse-online.ru