Python Plugin: Zigbee2Mqtt Topic is solved
Moderator: leecollings
-
- Posts: 70
- Joined: Tuesday 14 August 2018 8:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10303
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Thanks for the replies. A powertoggle did the trick. Let's wait and see if the errors are gone.
- waltervl
- Posts: 5902
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
I see it on devices with lower signal levels and it will return regularly. You could check your wifi network if it is conflicting with the zigbee channel. See https://www.domoticz.com/wiki/Zigbee
You could also add a (Ikea) zigbee repeater to enhance signal levels.
You could also add a (Ikea) zigbee repeater to enhance signal levels.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 6
- Joined: Sunday 04 October 2020 19:42
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hello
I have problem.I did a plugin update
2021-10-02 21:59:56.340 Error: z: (Zigbee2MQTT) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Zigbee2Mqtt/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-10-02 21:59:56.340 Error: z: (z) Module Import failed, exception: 'ModuleNotFoundError'
2021-10-02 21:59:56.340 Error: z: (z) Module Import failed: ' Name: DomoticzEx'
2021-10-02 21:59:56.340 Error: z: (z) Error Line details not available.
What may be the problem?
python 3.7.3
I have problem.I did a plugin update
2021-10-02 21:59:56.340 Error: z: (Zigbee2MQTT) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Zigbee2Mqtt/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-10-02 21:59:56.340 Error: z: (z) Module Import failed, exception: 'ModuleNotFoundError'
2021-10-02 21:59:56.340 Error: z: (z) Module Import failed: ' Name: DomoticzEx'
2021-10-02 21:59:56.340 Error: z: (z) Error Line details not available.
What may be the problem?
python 3.7.3
Re: Python Plugin: Zigbee2Mqtt
When you update to the latest beta of Domoticz, then it will work. Or go back to the previous version of the plugin.
-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
I am installing zigbee2mqtt, following the instructions from the Domoticz Wiki.
After performing all steps, I run "npm start" whic should start the bridge.
I get this error:
What have I done wrong?
After performing all steps, I run "npm start" whic should start the bridge.
I get this error:
Code: Select all
2021-10-05 15:37:22: Starting zigbee-herdsman (0.13.149)
Zigbee2MQTT:error 2021-10-05 15:37:43: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-10-05 15:37:43: Failed to start zigbee
Zigbee2MQTT:error 2021-10-05 15:37:43: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-10-05 15:37:43: Exiting...
Zigbee2MQTT:error 2021-10-05 15:37:43: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
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! /root/.npm/_logs/2021-10-05T13_37_43_715Z-debug.log
Hans
-
- Posts: 25
- Joined: Wednesday 26 February 2020 13:39
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: Zigbee2Mqtt
1. Necessarily:
cd /opt/zigbee2mqtt
2. May be
sudo npm start
cd /opt/zigbee2mqtt
2. May be
sudo npm start
-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
-
- Posts: 102
- Joined: Tuesday 04 March 2014 10:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Surrey, UK
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Check the config file configuration.yaml, the give away is
In my file I have:
serial:
port: /dev/ttyUSB0
Zigbee2MQTT:error 2021-10-05 15:37:43: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
In my file I have:
serial:
port: /dev/ttyUSB0
3 x Pi, 1 Master, 2 Slaves, 1x Aeotec Z-Stick S2, 4xSP103 PIR, 5xPowerNode 1, 1xSmart Energy Switch Gen5, 4xFGSS101 Smoke Sensor, 2xFGD212, 9xFGS212 , 7xFGS221/2, 1xAD142 , 1xTKB TZ68E , 2xAeotec Multi Sensor, 3 x NodOn CRC-3-1-00.
-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Thanks for trying to help, but I found an easier way to link Zigbee into Domoticz.
I installed deConz plugin, and that gives me the devices straight into Domoticz. Still have a lot of work to do, need to add devices and see how it works.
But if it does, I don't need Zigbee2MQTT, I think....
I installed deConz plugin, and that gives me the devices straight into Domoticz. Still have a lot of work to do, need to add devices and see how it works.
But if it does, I don't need Zigbee2MQTT, I think....

Hans
-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
The best 'command' is restore a backup that you made before updating to the last version.
Searching the Internet gives you something like: git reset --hard <SHAsum of your commit>

Searching the Internet gives you something like: git reset --hard <SHAsum of your commit>
-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
So then you only problem might be that the wrong port is in the configuration.yaml
Find the right port by pull the zigbee coordinator from the usb port and put it back in again. Now do a and at the end the info should be present. Keep in mind that there is no other program that is accessing the same usb port.
Find the right port by pull the zigbee coordinator from the usb port and put it back in again. Now do a
Code: Select all
dmesg
-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
If you search Google by you will get a lot of answer to go back to a previous commit as I already mentioned a few post earlier. 
Code: Select all
git go back to certain commit

-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Which is the latest version that will work without the extended plugin framework?
Hans
Re: Python Plugin: Zigbee2Mqtt
I am on commit 78c090a8a695002d3fbf4227a0624259e174d7dd and that works fine with Domoticz before the DomoticzEx
The commit including 14 Aug. are the 'old' versions, starting 23 Aug. Stas got working on the DomoticzEx.
The commit including 14 Aug. are the 'old' versions, starting 23 Aug. Stas got working on the DomoticzEx.
-
- Posts: 722
- Joined: Friday 02 October 2015 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Finland
- Contact:
Re: Python Plugin: Zigbee2Mqtt
I am currently on older version of the plugin but would like to update to the pre-domoticz ex version. If I've undersood correctly, I could do a git pull and then
to go to this version? Or is there a command to pull directly this commit (78c090a8a695002d3fbf4227a0624259e174d7dd) when on an older version?
I should maybe mention that zigbee2mqtt is installed via plugins manager which to my understandin is using git commands. And at some point I would like to resume to use the manager as it is quite convenient but I can live with it if I have to manually go and pull the latest version...
Code: Select all
git reset --hard 78c090a8a695002d3fbf4227a0624259e174d7dd
I should maybe mention that zigbee2mqtt is installed via plugins manager which to my understandin is using git commands. And at some point I would like to resume to use the manager as it is quite convenient but I can live with it if I have to manually go and pull the latest version...

- waltervl
- Posts: 5902
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
To revert to the latest zigbee2mqtt plugin version that works with stable Domoticz run in the zigbee2mqtt plugin folder:
Edit: have to use full commit number
Edit: have to use full commit number
Code: Select all
sudo git reset --hard 3725a295e12531e5c5f68d03d3e6f0c1f646b1ca
Last edited by waltervl on Monday 18 October 2021 16:52, edited 1 time in total.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 749
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Zigbee2Mqtt
OK, justto make sure: first install the "normal" way, then do this reset?waltervl wrote: ↑Saturday 16 October 2021 12:33 To revert to the latest zigbee2mqtt plugin version that works with stable Domoticz run in the zigbee2mqtt plugin folder:
Code: Select all
sudo git reset --hard 3725a29
Hans
Who is online
Users browsing this forum: No registered users and 1 guest