Page 1 of 2
No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 12:56
by 063405
Hi everybody,
I have Domoticz installed on a RPi 3B+ and for some reason, there is no "Zigbee2mqtt" option on the Setup –––> Hardware list
So, some help would be much appreciated
Thanks!
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 13:01
by waltervl
Zigbee2mqtt needs a Domoticz plugin to be installed. And also mqtt and Zigbee2mqtt itself of course.
https://github.com/stas-demydiuk/domoti ... qtt-plugin
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 13:02
by felix63
zigbee2mqtt is a plugin that needs to be added. It is not build in (unfortunately). Best place to start is by checking the Wiki:
https://www.domoticz.com/wiki/Zigbee2MQTT
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 13:11
by 063405
Thanks for your quick reply!
I've done all the steps, mqtt, zigbee2mqtt. But... after installing also Hoobs, I am getting error message when I am trying to start zigbee2mqtt
Code: Select all
Zigbee2MQTT:info 2021-03-13 11:42:37: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:error 2021-03-13 11:42:37: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-03-13 11:42:37: Failed to start zigbee
Zigbee2MQTT:error 2021-03-13 11:42:37: Exiting...
Zigbee2MQTT:error 2021-03-13 11:42:37: Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'
Do you think this might be the reason I don't see it in the Hardware?
Thanks
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 13:28
by waltervl
Is your Zigbee USB still on the same USB port (from the OS point of view)? See
https://www.domoticz.com/wiki/PersistentUSBDevices
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 13:39
by waltervl
And for the zigbee2mqtt to become visible the python plugin just needs to be seen.
For this Python must be correctly activated on your system:
https://www.domoticz.com/wiki/Using_Python_plugins
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 13:47
by 063405
Yes, seems it is still on the same port
Code: Select all
pi@raspberrypi:~ $ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Mar 13 12:45 /dev/ttyACM0
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 13:55
by 063405
Also I think it's okay:
Code: Select all
pi@raspberrypi:~ $ python3 -V
Python 3.7.3
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 14:06
by waltervl
If you restart Domoticz (or your pi) it should all be visible then. Check the log file of Domoticz for errors or Python messages.
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 14:44
by 063405
waltervl wrote: ↑Saturday 13 March 2021 14:06
If you restart Domoticz (or your pi) it should all be visible then. Check the log file of Domoticz for errors or Python messages.
Thanks I'll try it.
meanwhile, I'm posting the whole code I get when I start zignee2mqtt as there are some more error messages and it might make more sense.
Really appreciate your and anyone's time. I know it's hard as I don't have knowledge in programming, but if I manage to make the whole thing running I will feel very proud.
Code: Select all
pi@raspberrypi:/opt/zigbee2mqtt $ npm start
> [email protected] start /opt/zigbee2mqtt
> node index.js
Zigbee2MQTT:info 2021-03-13 12:54:14: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2021-03-13.12-54-13' filename: log.txt
Zigbee2MQTT:info 2021-03-13 12:54:15: Starting Zigbee2MQTT version 1.18.1 (commit #a43d1f3)
Zigbee2MQTT:info 2021-03-13 12:54:15: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:error 2021-03-13 12:54:15: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-03-13 12:54:15: Failed to start zigbee
Zigbee2MQTT:error 2021-03-13 12:54:15: Exiting...
Zigbee2MQTT:error 2021-03-13 12:54:15: Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'
at Znp.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:136:32)
at Generator.next (<anonymous>)
at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:27:71
at new Promise (<anonymous>)
at __awaiter (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:23:12)
at SerialPort.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:134:49)
at SerialPort._error (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-03-13T12_54_15_773Z-debug.log
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 14:50
by 063405
waltervl wrote: ↑Saturday 13 March 2021 14:06
If you restart Domoticz (or your pi) it should all be visible then. Check the log file of Domoticz for errors or Python messages.
and this is the Domoticz log after the reboot
2021-03-13 13:46:53.343 Status: Domoticz V2020.2 (c)2012-2020 GizMoCuz
2021-03-13 13:46:53.344 Status: Build Hash: b63341bc0, Date: 2020-04-26 12:47:55
2021-03-13 13:46:53.344 Status: Startup Path: /home/pi/domoticz/
2021-03-13 13:46:54.582 Status: PluginSystem: Started, Python version '3.7.3'.
2021-03-13 13:46:54.635 Status: WebServer(HTTP) started on address: :: with port 8080
2021-03-13 13:46:54.660 Status: WebServer(SSL) started on address: :: with port 443
2021-03-13 13:46:54.664 Status: RxQueue: queue worker started...
2021-03-13 13:46:54.663 Status: TCPServer: shared server started...
2021-03-13 13:46:56.664 Status: NotificationSystem: thread started...
2021-03-13 13:46:56.665 Status: EventSystem: reset all events...
2021-03-13 13:46:56.677 Status: EventSystem: reset all device statuses...
2021-03-13 13:46:56.815 Status: Python EventSystem: Initalizing event module.
2021-03-13 13:46:56.815 Status: EventSystem: Started
2021-03-13 13:46:56.815 Status: EventSystem: Queue thread started...
2021-03-13 13:46:57.159 Status: PluginSystem: Entering work loop.
2021-03-13 13:47:44.254 Status: Incoming connection from: 192.168.0.132
Re: No Zigbee2mqtt on the Hardware list
Posted: Saturday 13 March 2021 17:03
by waltervl
If I google your zigbee2mqtt error I am linked to this :
https://www.zigbee2mqtt.io/information/ ... o-the-port
Re: No Zigbee2mqtt on the Hardware list
Posted: Sunday 14 March 2021 21:23
by 063405
Hmm, this is what I am getting:
Code: Select all
pi@raspberrypi:~ $ ls -l /proc/[0-9]/fd/ |grep /dev/ttyACM0
ls: cannot open directory '/proc/1/fd/': Permission denied
ls: cannot open directory '/proc/2/fd/': Permission denied
ls: cannot open directory '/proc/3/fd/': Permission denied
ls: cannot open directory '/proc/4/fd/': Permission denied
ls: cannot open directory '/proc/7/fd/': Permission denied
ls: cannot open directory '/proc/8/fd/': Permission denied
ls: cannot open directory '/proc/9/fd/': Permission denied
The serial port on the conf file looks okay though.
Code: Select all
homeassistant: false
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://localhost:1883'
serial:
port: /dev/ttyACM0
devices:
'0x54ef4410000182bf':
friendly_name: '0x54ef4410000182bf'
Additionally, I am getting this error, might be connected? (Error: Address already in use)
Code: Select all
pi@raspberrypi:~ $ mosquitto -v
1615752466: mosquitto version 1.5.7 starting
1615752466: Using default config.
1615752466: Opening ipv4 listen socket on port 1883.
1615752466: Error: Address already in use
Sorry, I know I'm a pain in the butt...
Re: No Zigbee2mqtt on the Hardware list
Posted: Sunday 14 March 2021 21:56
by EddyG
What was the output of:
Code: Select all
test -w /dev/ttyACM0 && echo success || echo failure
Re: No Zigbee2mqtt on the Hardware list
Posted: Sunday 14 March 2021 21:59
by jake
The mosquitto error is normal, you try to start a 2nd instance of it.
I have a similar output when I run the mosquitto -v command
You better check with: sudo service mosquito status
I saw that you van replace the zigbee stick portnumber by null for auto detect. What kind of usb device so you use and had it worked before?
Re: No Zigbee2mqtt on the Hardware list
Posted: Monday 15 March 2021 21:26
by 063405
EddyG wrote: ↑Sunday 14 March 2021 21:56
What was the output of:
Code: Select all
test -w /dev/ttyACM0 && echo success || echo failure
Hi, thanks for your message.
Unfortunately, I get: "success"

Re: No Zigbee2mqtt on the Hardware list
Posted: Monday 15 March 2021 21:29
by 063405
jake wrote: ↑Sunday 14 March 2021 21:59
The mosquitto error is normal, you try to start a 2nd instance of it.
I have a similar output when I run the mosquitto -v command
You better check with: sudo service mosquito status
I saw that you van replace the zigbee stick portnumber by null for auto detect. What kind of usb device so you use and had it worked before?
Hello and thanks for writing.
I get:
Code: Select all
pi@raspberrypi:~ $ sudo systemctl status mosquitto.service
● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset
Active: active (running) since Sun 2021-03-14 20:06:28 GMT; 24h ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Main PID: 438 (mosquitto)
Tasks: 1 (limit: 2062)
CGroup: /system.slice/mosquitto.service
└─438 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Mar 14 20:06:27 raspberrypi systemd[1]: Starting Mosquitto MQTT v3.1/v3.1.1 Brok
Mar 14 20:06:28 raspberrypi systemd[1]: Started Mosquitto MQTT v3.1/v3.1.1 Broke
lines 1-12/12 (END)
Re: No Zigbee2mqtt on the Hardware list
Posted: Monday 15 March 2021 21:41
by 063405
waltervl wrote: ↑Saturday 13 March 2021 14:06
If you restart Domoticz (or your pi) it should all be visible then. Check the log file of Domoticz for errors or Python messages.
Hi, thanks for writing!
after restarting Domoticz, this is the log:
2021-03-15 20:38:34.412 Active notification Subsystems: fcm, http (2/13)
2021-03-15 20:38:34.421 Starting shared server on: :::6144
2021-03-15 20:38:34.281 Status: Domoticz V2020.2 (c)2012-2020 GizMoCuz
2021-03-15 20:38:34.283 Status: Build Hash: b63341bc0, Date: 2020-04-26 12:47:55
2021-03-15 20:38:34.284 Status: Startup Path: /home/pi/domoticz/
2021-03-15 20:38:34.406 Status: PluginSystem: Started, Python version '3.7.3'.
2021-03-15 20:38:34.413 Status: WebServer(HTTP) started on address: :: with port 8080
2021-03-15 20:38:34.418 Status: WebServer(SSL) started on address: :: with port 443
2021-03-15 20:38:34.421 Status: RxQueue: queue worker started...
2021-03-15 20:38:34.421 Status: TCPServer: shared server started...
2021-03-15 20:38:36.422 Status: NotificationSystem: thread started...
2021-03-15 20:38:36.423 Status: EventSystem: reset all events...
2021-03-15 20:38:36.423 Status: EventSystem: reset all device statuses...
2021-03-15 20:38:36.546 Status: Python EventSystem: Initalizing event module.
2021-03-15 20:38:36.547 Status: EventSystem: Started
2021-03-15 20:38:36.547 Status: EventSystem: Queue thread started...
2021-03-15 20:38:36.810 Status: PluginSystem: Entering work loop.
Re: No Zigbee2mqtt on the Hardware list
Posted: Monday 15 March 2021 21:49
by jvdz
I see you are checking domoticz stuff now, but is zigbee2mqtt working at all now? Your earlier post suggested it is not.
Zigbee2mqtt is something totally standalone, so will have to work first before looking at the integration with domoticz.
Jos
Re: No Zigbee2mqtt on the Hardware list
Posted: Monday 15 March 2021 22:05
by EddyG