Page 13 of 18

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 22 July 2021 21:15
by fvdp80
Thanks for the replies. A powertoggle did the trick. Let's wait and see if the errors are gone.

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 22 July 2021 23:00
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 03 October 2021 22:19
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 03 October 2021 22:50
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Tuesday 05 October 2021 15:40
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Tuesday 05 October 2021 15:59
by Creo2005
1. Necessarily:
cd /opt/zigbee2mqtt
2. May be
sudo npm start

Re: Python Plugin: Zigbee2Mqtt

Posted: Tuesday 05 October 2021 16:42
by manjh
Creo2005 wrote: Tuesday 05 October 2021 15:59 1. Necessarily:
cd /opt/zigbee2mqtt
2. May be
sudo npm start
Already checked that.

Re: Python Plugin: Zigbee2Mqtt

Posted: Tuesday 05 October 2021 17:34
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 06 October 2021 0:05
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.... :)

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 06 October 2021 22:27
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 06 October 2021 22:34
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>

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 06 October 2021 22:51
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... :)

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 07 October 2021 6:48
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 07 October 2021 8:31
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 07 October 2021 19:23
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. ;)

Re: Python Plugin: Zigbee2Mqtt

Posted: Saturday 09 October 2021 14:03
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Saturday 09 October 2021 16:43
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Saturday 09 October 2021 23:01
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... :)

Re: Python Plugin: Zigbee2Mqtt

Posted: Saturday 16 October 2021 12:33
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Monday 18 October 2021 16:42
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?