I started looking at the
instructions for running zigbee2mqtt
and the instructions for installing npm/nodejs gave me a lot of error
messages on the raspberrypi running in the utility closet and checking the
smart meter.
It turns out it needs an upgrade from Raspbian jessie. This Raspberry Pi
is dedicated to
reading the smart meter
since August 2016 and it has been running fine gathering the smart meter data.
The raspbian forums state that it is better to upgrade by reinstallation on
a different SD card. So I guess it's time to rebuild the smartmeter Pi if
I want it to run the zigbee sensor network.
Update:
I installed all the software on a linux laptop and now I have a running
zigbee2mqtt.
koos@kernighan:~/src/zigbee2mqtt$ npm start
> zigbee2mqtt@1.19.1 start /home/koos/src/zigbee2mqtt
> node index.js
Zigbee2MQTT:info 2021-06-11 21:39:06: Logging to console and directory: '/home/koos/src/zigbee2mqtt/data/log/2021-06-11.21-39-05' filename: log.txt
Zigbee2MQTT:info 2021-06-11 21:39:06: Starting Zigbee2MQTT version 1.19.1 (commit #9bd46932)
Zigbee2MQTT:info 2021-06-11 21:39:06: Starting zigbee-herdsman (0.13.111)
Zigbee2MQTT:info 2021-06-11 21:39:08: zigbee-herdsman started
Zigbee2MQTT:info 2021-06-11 21:39:08: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}'
Zigbee2MQTT:info 2021-06-11 21:39:08: Currently 0 devices are joined:
Zigbee2MQTT:warn 2021-06-11 21:39:08: `permit_join` set to `true` in configuration.yaml.
Zigbee2MQTT:warn 2021-06-11 21:39:08: Allowing new devices to join.
Zigbee2MQTT:warn 2021-06-11 21:39:08: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:info 2021-06-11 21:39:08: Zigbee: allowing new devices to join.
Zigbee2MQTT:info 2021-06-11 21:39:08: Connecting to MQTT server at mqtt://testrouter.idefix.net
Zigbee2MQTT:info 2021-06-11 21:39:08: Connected to MQTT server
Zigbee2MQTT:info 2021-06-11 21:39:08: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Zigbee2MQTT:info 2021-06-11 21:39:09: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"9bd46932","coordinator":{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"},"log_level":"info","network":{"channel":11,"extendedPanID":"0x00124b0022a51f10","panID":6754},"permit_join":true,"version":"1.19.1"}'
And the data is available on the mqtt server:
koos@testrouter:~$ mosquitto_sub -t zigbee2mqtt/bridge/config
{"commit":"9bd46932","coordinator":{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"},"log_level":"info","network":{"channel":11,"extendedPanID":"0x00124b0022a51f10","panID":6754},"permit_join":true,"version":"1.19.1"}
After that it's boring, because there are no zigbee sensors in the network.
Those will come tomorrow according to the predictions from the postal service.
And for production I will configure mqtt with better security.