wirenboard-module-zigbee

1.4.2 • Public • Published

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-essential

Prepare mqtt proxy

Install wirenboard-mqtt-proxy to global space

npm i -g wirenboard-mqtt-proxy

Start the proxy

wirenboard-mqtt-proxy start

To enable proxy autorun on boot use it

wirenboard-mqtt-proxy enable

Prepare zigbee2mqtt

Install zigbee2mqtt

git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
chown -R root:root /opt/zigbee2mqtt
cd /opt/zigbee2mqtt
npm ci

Create daemon for autostart on boot OS

nano /etc/systemd/system/zigbee2mqtt.service

And 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.target

Enable daemon

systemctl enable zigbee2mqtt

Start daemon

systemctl start zigbee2mqtt

Configure zigbee2mqtt

nano /opt/zigbee2mqtt/data/configuration.yaml

To 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-module

Add zigbee module and rule

wirenboard-module zigbee

TODO

  • add lastseen from zigbee2mqtt
  • add controls: relays, outlets, ..

Notice


Best regards

Package Sidebar

Install

npm i wirenboard-module-zigbee

Weekly Downloads

2

Version

1.4.2

License

ISC

Unpacked Size

10.5 kB

Total Files

4

Last publish

Collaborators

  • fullhouse-lab