Page 1 of 1
zigbee2mqtt install issue
Posted: Monday 05 July 2021 11:59
by Dave21w
I have installed zigbe2mqtt on a few raspberry pi's with a CC2531 stick correctly flashed etc with no problems. I've just done one for a friend and cannot get it to work correctly, I've followed the instructions to the letter as I've done before, checked the port (ttyACM0) is correct etc and all command line instruction responses come back identical to a working system but when selecting Zigbee2MQTT under the custom tab the screen just says loading all the time and I cannot get the page to load so I can add a device.

- zigbee2mqtt.jpg (11.29 KiB) Viewed 1889 times
I think the domoticz log looks happy and seems to think all is in order.

- Domoticz Log.jpg (95.76 KiB) Viewed 1889 times
Anyone have any ideas?
TIA
Dave
Re: zigbee2mqtt install issue
Posted: Monday 05 July 2021 12:12
by HansOtten
Clean your web browser cache.
Check settings (mqtt, zigbee2mqtt)
Does zigbee2mqtt work, you see the log of zigbee2mqtt filled?
And better replace the ttyacm0 with the physical name of the serial device, Raspberry OS can make a mess of that if there are more serial devices.
Re: zigbee2mqtt install issue
Posted: Monday 05 July 2021 13:54
by Dave21w
Looks like the zigbee-herdsman service is not started, I don't get an error but it always says starting when you when you send command
systemctl status zigbee2mqtt.service

- herdsman.jpg (68.66 KiB) Viewed 1877 times
Re: zigbee2mqtt install issue
Posted: Sunday 11 July 2021 8:42
by Dave21w
I managed to resolve this issue by removing all the zigbee stuff and reinstalling again in exactly the same way, the only thing I can tink of is a missed a step out - ah well !
Anyway I have a question if someone can answer it, because of the above issues I also downloaded and flashed the CC2531 with the latest firmware, after a while the green led on the stick goes off, it still seems to receive data from the devices as domoticz gets updates, the led does come back on if you going into pairing mode again for a new device but then goes off again after. Is this normal for the new firmware, I've done some searching but can't seem to find an answer.
Thanks
Dave
Edit.
Just in case anyone is interested as of zigbee2mqtt v1.191 green led only illuminates when in pairing mode.
Re: zigbee2mqtt install issue
Posted: Wednesday 04 August 2021 0:49
by solarboy
I also have this issue although I am able to pair devices with zigbee2mqtt directly which get added as devices in Domoticz. It may be because I am still on 4.10xxx due to the Zwave issues with later versions.However I am just unable to manage Zigbee at all. I also tried with node-red admin but despite eventually managing to connect the mqtt broker (mosquitto) to my flows (various versions) the actual MQTT information would never populate the node-red flow UI. I also tried the zigbee2mqtt "front end" which I also couldn't connect to; if I added the required "front end" settings to the configuration.yaml, zigbee2mqtt wouldn't load properly.
It would be nice to get one of the config options working as otherwise I am flying blind.
Re: zigbee2mqtt install issue
Posted: Wednesday 04 August 2021 8:16
by heggink
solarboy wrote:I also have this issue although I am able to pair devices with zigbee2mqtt directly which get added as devices in Domoticz. It may be because I am still on 4.10xxx due to the Zwave issues with later versions.However I am just unable to manage Zigbee at all. I also tried with node-red admin but despite eventually managing to connect the mqtt broker (mosquitto) to my flows (various versions) the actual MQTT information would never populate the node-red flow UI. I also tried the zigbee2mqtt "front end" which I also couldn't connect to; if I added the required "front end" settings to the configuration.yaml, zigbee2mqtt wouldn't load properly.
It would be nice to get one of the config options working as otherwise I am flying blind.
If you replace domoticz OZW with zwavejs2mqtt and the python plugin then you can upgrade domoticz at will. Zwavejs2mqtt is muuuuch better anyway.
Sent from my SM-G980F using Tapatalk
Re: zigbee2mqtt install issue
Posted: Wednesday 04 August 2021 12:10
by solarboy
I didn't even know this was possible, looks like I have a lot of reading to do !
Re: zigbee2mqtt install issue
Posted: Wednesday 04 August 2021 12:36
by heggink
It wasn't until I was so upset with OZW and started talking to @moroen about the effort involved in creating a python plugin for it. Home assistant already has zwavejs2mqtt as their default so it's stable enough. Moroen did a lot of the heavy lifting and I contributed with the connection management, some strategizing and device additions.
I have been using it for months now. So much better. I can now do stuff that OZW never let me.
The only limitation is the 256 devices in the old python framework but that looks like it has been fixed by @Dnpwwo as well. Just haven't gotten to changing as that is a breaking change. That said, the plugin supports multiple instances with their own device config so you could have switches in one instance and sensors in another, as a workaround for the 256 limit.
Other than that, realise that the plugin implements what a couple of people have in terms of devices so there may be the odd missing device. These can now be added through a config file rather than having to edit python so even that is quite flexible.
Sent from my SM-G980F using Tapatalk
Re: zigbee2mqtt install issue
Posted: Wednesday 04 August 2021 19:14
by solarboy
Thanks for that, I have had a quick look, I presume I install and configure zwave2mqtt and then enable the MQTT client gateway in Domoticz "hardware" ? Documentation is a little sparse for how to use with Domoticz.
Re: zigbee2mqtt install issue
Posted: Wednesday 04 August 2021 22:03
by heggink
If you follow the instructions on the domoticz python plugin for zwavejs2mqtt then it should work. You don't need to enable mqtt in domoticz as the plugin sets up its own connection to the mqtt broker. Best to run zwavejs2mqtt in a docker container. You can disable ozw, spin up the container, and start the plugin. If then you want to go back to ozw, stop the plugin and container and enable ozw again. I did notice that ozw is not very happy with the switching (it's not happy to begin with and switching does not help).
Feel free to pm me if you need any help.
Sent from my SM-G980F using Tapatalk
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 12:04
by rron
heggink wrote: ↑Wednesday 04 August 2021 8:16
solarboy wrote:I also have this issue although I am able to pair devices with zigbee2mqtt directly which get added as devices in Domoticz. It may be because I am still on 4.10xxx due to the Zwave issues with later versions.However I am just unable to manage Zigbee at all. I also tried with node-red admin but despite eventually managing to connect the mqtt broker (mosquitto) to my flows (various versions) the actual MQTT information would never populate the node-red flow UI. I also tried the zigbee2mqtt "front end" which I also couldn't connect to; if I added the required "front end" settings to the configuration.yaml, zigbee2mqtt wouldn't load properly.
It would be nice to get one of the config options working as otherwise I am flying blind.
If you replace domoticz OZW with zwavejs2mqtt and the python plugin then you can upgrade domoticz at will. Zwavejs2mqtt is muuuuch better anyway.
Sent from my SM-G980F using Tapatalk
Is zwavejs2mqtt already operational or still in "beta"? I don read much about this while there are much problems with OZW (not with me

)
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 12:26
by heggink
It's been fully operational with me and moroen for months now but that doesn't mean there could be issues we've not seen.
What I like about zwavejs2mqtt is that it has a really good user interface and supports stuff that OZW doesn't (like easy dead node deletion).
Sent from my SM-G980F using Tapatalk
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 12:36
by rron
heggink wrote: ↑Friday 06 August 2021 12:26
It's been fully operational with me and moroen for months now but that doesn't mean there could be issues we've not seen.
What I like about zwavejs2mqtt is that it has a really good user interface and supports stuff that OZW doesn't (like easy dead node deletion).
Sent from my SM-G980F using Tapatalk
Is it in the wiki? Perhaps I also want to try it. Wyy is it so less used? Beacause I see a lot of problems with OZW
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 12:43
by heggink
Not in the wiki just yet because it's pretty new and no time just yet to do that. Good suggestion though.
If more people are interested then maybe others are also willing to help configuring new devices that need support. The base is there and new devices can be added through a config file rather than python programming so much easier and flexible.
Sent from my SM-G980F using Tapatalk
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 12:47
by rron
heggink wrote: ↑Friday 06 August 2021 12:43
Not in the wiki just yet because it's pretty new and no time just yet to do that. Good suggestion though.
If more people are interested then maybe others are also willing to help configuring new devices that need support. The base is there and new devices can be added through a config file rather than python programming so much easier and flexible.
Sent from my SM-G980F using Tapatalk
Well I'm interested and will look into it. Where can I find the plugin?
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 12:49
by heggink
I'll create a separate topic in a bit rather than hijacking zigbee.
Sent from my SM-G980F using Tapatalk
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 12:54
by rron
Ok, that's fine to me.
Re: zigbee2mqtt install issue
Posted: Friday 06 August 2021 13:18
by heggink