Python Plugin: Zigbee2Mqtt Topic is solved

Python and python framework

Moderator: leecollings

fvdp80
Posts: 70
Joined: Tuesday 14 August 2018 8:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10303
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by fvdp80 »

Thanks for the replies. A powertoggle did the trick. Let's wait and see if the errors are gone.
User avatar
waltervl
Posts: 5902
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by waltervl »

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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
matekogon
Posts: 6
Joined: Sunday 04 October 2020 19:42
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by matekogon »

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
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Zigbee2Mqtt

Post by EddyG »

When you update to the latest beta of Domoticz, then it will work. Or go back to the previous version of the plugin.
manjh
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

Post by manjh »

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:

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
What have I done wrong?
Hans
Creo2005
Posts: 25
Joined: Wednesday 26 February 2020 13:39
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Creo2005 »

1. Necessarily:
cd /opt/zigbee2mqtt
2. May be
sudo npm start
manjh
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

Post by manjh »

Creo2005 wrote: Tuesday 05 October 2021 15:59 1. Necessarily:
cd /opt/zigbee2mqtt
2. May be
sudo npm start
Already checked that.
Hans
mark.sellwood
Posts: 102
Joined: Tuesday 04 March 2014 10:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Surrey, UK
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by mark.sellwood »

Check the config file configuration.yaml, the give away is
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.
manjh
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

Post by manjh »

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.... :)
Hans
manjh
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

Post by manjh »

EddyG wrote: Sunday 03 October 2021 22:50 When you update to the latest beta of Domoticz, then it will work. Or go back to the previous version of the plugin.
What is the command to get the previous version?
Hans
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Zigbee2Mqtt

Post by EddyG »

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>
manjh
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

Post by manjh »

EddyG wrote: Wednesday 06 October 2021 22:34 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>
Yeah, if only. I just installed for the first time this week... :)
Hans
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Zigbee2Mqtt

Post by EddyG »

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

Code: Select all

dmesg
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.
manjh
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

Post by manjh »

manjh wrote: Wednesday 06 October 2021 22:27
EddyG wrote: Sunday 03 October 2021 22:50 When you update to the latest beta of Domoticz, then it will work. Or go back to the previous version of the plugin.
What is the command to get the previous version?
Anyone?
Hans
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Zigbee2Mqtt

Post by EddyG »

If you search Google by

Code: Select all

git go back to certain commit
you will get a lot of answer to go back to a previous commit as I already mentioned a few post earlier. ;)
manjh
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

Post by manjh »

EddyG wrote: Sunday 03 October 2021 22:50 When you update to the latest beta of Domoticz, then it will work. Or go back to the previous version of the plugin.
Which is the latest version that will work without the extended plugin framework?
Hans
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Zigbee2Mqtt

Post by EddyG »

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.
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Nautilus »

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

Code: Select all

git reset --hard 78c090a8a695002d3fbf4227a0624259e174d7dd
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... :)
User avatar
waltervl
Posts: 5902
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by waltervl »

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

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
manjh
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

Post by manjh »

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
OK, justto make sure: first install the "normal" way, then do this reset?
Hans
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest