domoticz-zigbee2mqtt-plugin icon indicating copy to clipboard operation
domoticz-zigbee2mqtt-plugin copied to clipboard

3.0.0 Plugin won't load Custom/Zigbee2MQTT "Allow new Zigbee Devices to join" option is not present

Open McGyver64 opened this issue 3 years ago • 6 comments

After a week of trying en re-installing I have Raspberry Pi running with Buster, Mosquitto 1.5.7, Zigbee2MQTT 1.22.2, Python 3.7, Domoticz (Stable) and Zigbee2MQTT-Plugin 3..0.0 (downgrade like suggested) . I also tried with Mosquitto 2.0.0 but the result is the same.

What happened?

ZigBee2MQTT is recognized by Domoticz and added to devices Custom Button is present, Zigbee2mqtt Button is Present "Allow new Zigbee Devices to join" is not present and devices is waiting........

Did a full clean install according " https://contactkring.nl/phpbb/viewtopic.php?t=941&start=40 " changed npm ci --production for npm ci (according koenkk) [Koenkk/zigbee2mqtt/issues/10877]

PI OS = Buster (incl update&upgrade) Mosquitto 1.5.7 (also tried 2.0.0) zigbee2mqtt=1.22.2 firmware=20211217 node=v12.22.9 npm=6.14.15 python 3.7.3 Domoticz=2021.1 python zigbee plugin= 3.0.0 (downgrade https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin )

ls -l /dev/serial/by-id total 0 lrwxrwxrwx 1 root root 13 Jan 18 16:45 usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CC_37_E9-if00-port0 -> ../../ttyUSB0

I tried Safari, Edge, Crome, refreshed caches etc. But it wil not show the "allow new zigbee devices to join" option for adding new devices.

Schermafbeelding 2022-01-14 om 12 22 08

McGyver64 avatar Jan 14 '22 11:01 McGyver64

I installed all again for the xx time. did a upgrade to Domoticz beta and used de beta 3.1.0 plugin. This is the only way to get the Custom button "Allow new zigbee devices to join" available

Schermafbeelding 2022-01-20 om 13 43 13

But when I select "allow new zigbee devices..." I get a new pop-up showing "pairing. waiting for new device" but there is nog info shown of new device. When I close it after some time (1-5 min) it shows a new device.

Schermafbeelding 2022-01-20 om 13 52 02

When I close the window, the new device is added

Schermafbeelding 2022-01-20 om 13 53 15

Also if I want to remove a device (does not matter if do/don't select force remove) the device is not removed and stil shows in device list

Schermafbeelding 2022-01-20 om 13 54 53

What am I missing? in the past week I did 20-30 new fresh installs, every time following the same instruction wich I used before early 2021, but every time I only get the Custom button and " Allow new zigbee devices" to appear when I install the Domoticz Beta version with plugin 3.1.0 Beta . The default Domoticz with downgrade 3.0.0 plugin does not show " Allow new zigbee devices" att all and keeps on displaying " Loading........"

I use Safari, Chrome, Firefox, Edge, cleared caches, rebooted browsers, used windows and Mac systems but the same everywhere. Pi is running Buster with latest updates

McGyver64 avatar Jan 20 '22 12:01 McGyver64

I bumped into the same problem as originally described but even checking out a commit from last year will not fix the problem. The buttons dont appear.

I really prefer not to upgrade my Domoticz itself, but a git checkout 3725a295e12531e5c5f68d03d3e6f0c1f646b1ca Aug 2021 submit, which was mentioned to be ok, does stop the python3.7 error to appear, but it still does not load the Custom/Zigbee2MQTT page.

Tried older ones as well, but all give the same issue.

Anyone an idea how to get the plugin to work with 2021.1?

TB404 avatar Jan 20 '22 19:01 TB404

I think I got it working, the plugin works and is showing "Allow new Zigbee Devices to join" Also the remove from database is working and all with the non beta Domoticz and 3.0.0 version plugin. Yesterday I finished to 20 + install. Here is what I did:

I downgraded to the older firmware of the Sleash stick ( https://slae.sh/projects/cc2652 ) to CC2625RB_coordinator_20210120.hex (I wil try 20211217 after I made a backup/image of the current install/SD) ( Installed 20212317 without problems) ( Update mosquitto 1.5.7 to 2.2.0 https://raspberrypi.stackexchange.com/questions/80051/how-to-upgrade-mosquitto-mqtt-to-the-latest-version. Replace mosquitto-stretch.list with mosquitto-buster.list)

I Installed an older Raspbian version 2020-02-13

Schermafbeelding 2022-01-21 om 12 32 10

http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2020-02-14/ I ran update&upgrade&dist-upgrade Raspberry firmware: sudo apt rpi-update Domoticz install curl: -L https://install.domoticz.com | bash Install Zigbee2mqtt: https://www.zigbee2mqtt.io/guide/installation/01_linux.html After [sudo apt-get install -y nodejs npm git make g++ gcc] I get node Version 10.x and npm Version 5.x I updated node and npm to v14 and v6 with: sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt-get install -y nodejs I use log2ram to reduce writing to SD card. I got some errors which were gone after: wget -qO - https://azlux.fr/repo.gpg.key | sudo apt-key add again did an update&upgrade and reboot Continue with: git clone https://github.com/Koenkk/zigbee2mqtt.git After configuring nano /opt/zigbee2mqtt/data/configuration.yaml I did a reboot and installed mosquitto (NPM would not start, maybe mosquitto needed installed earlier) This gave me mosquitto version 1.5.7 Finished zigbee2mqtt installation

Installed Domoticz plugin: git clone https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin.git zigbee2mqtt Installed Python https://www.domoticz.com/wiki/Using_Python_plugins Restart Domoticz Downgrade Zigbee plugin from 3.1.0 beta to 3.0.0 https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin cd domoticz/plugins/zigbee2mqtt git reset --hard f8c22fc330229b39f06ff11bbfcea38e3a492306cd Reboot Pi

After all update and reboot the final version is:

Schermafbeelding 2022-01-21 om 12 36 56

Add the Zigbee2MQTT hardware to Domoticz

Reboot again, and now the function should be available

Schermafbeelding 2022-01-21 om 12 22 32 Schermafbeelding 2022-01-21 om 12 24 39 Schermafbeelding 2022-01-21 om 12 25 52 Schermafbeelding 2022-01-21 om 12 26 58 Schermafbeelding 2022-01-21 om 12 27 51 Schermafbeelding 2022-01-21 om 12 28 44

McGyver64 avatar Jan 21 '22 11:01 McGyver64

@McGyver64 Great detailed steps, but I get stuck. If I try to change the plugin to previous version ( git reset --hard f8c22fc330229b39f06ff11bbfcea38e3a492306cd )

I get: fatal: ambiguous argument 'f8c22fc330229b39f06ff11bbfcea38e3a492306cd': unknown revision or path not in the working tree. I did complete remove and checkout the plugin again (to master)

Could the Zstack firmware be too new on my coordinator? brand new CC 2652R. Latest ZZH! firmware

TB404 avatar Jan 22 '22 20:01 TB404

I am sorry, but I can't help you with this. My solution is based on trial and error (not deep linux knowledge) and after 2 weeks of trying, the solution as described worked for me.

Did you do a "gift pull" like described in (https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin) Maybee a reboot and update&&upgrade&&dist-upgrade?

Also clean the Browser Cache before trying new option. The cache can hold "old" data and can keep you fooled

McGyver64 avatar Jan 23 '22 13:01 McGyver64

The webpage still doesnt work,but controlling devices does work with manually joining to Zigbee2MQTT (using the configuration.yaml options.)

What I see now is that groups are no longer added as device in Domoticz. This is quite a big challenge for me.

Running on git checkout f8c22fc

I do see some errors appearing, but that is more related to colors of devices: 022-01-23 16:36:07.304 Error: Zigbee: (Zigbee) IKEA.bulb.color.1: can not process numeric item "color_temp_startup" 2022-01-23 16:36:07.306 Error: Zigbee: (Zigbee) IKEA.bulb.white.spectrum.1: can not process numeric item "color_temp_startup" 2022-01-23 16:36:07.308 Error: Zigbee: (Zigbee) IKEA.bulb.white.spectrum.2: can not process numeric item "color_temp_startup" 2022-01-23 16:36:07.309 Error: Zigbee: (Zigbee) IKEA.bulb.white.spectrum.3: can not process numeric item "color_temp_startup" 2022-01-23 16:36:07.310 Error: Zigbee: (Zigbee) IKEA.bulb.white.spectrum.4: can not process numeric item "color_temp_startup"

I am not too concerned about that specific part. Those 4 lights are in 1 and the same lamb, and controlling as one device would be highly prefered. The groupname_ct is not joined to Domoticz, but there is also no error.

The group is working with a zigbee dimmer bound to that group ID, so the group itself works in Zigbee2MQTT

TB404 avatar Jan 23 '22 15:01 TB404