stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 99 forks source link

Domoticz crash after installing the zigbee2mqtt plugin #782

Closed dolf182 closed 2 years ago

dolf182 commented 2 years ago

I downloaded the latest domoticz plugin version 2022.1 Installed the latest mqtt installed the latest mqtt2zigbee. Connection to my zigbee receiver works fine. Domoticz works fine. After installing the plugin and restarting domoticz every is just fine. When i add the zigbee device using this plugin domoticz won't start up again. After removing the zigbee2mqtt plugin folder domoticz works again. Tried the release of domoticz and the beta version nothing seems to help.

Has anybody else this issue?

Arjan

stas-demydiuk commented 2 years ago

Any issues in the log?

dolf182 commented 2 years ago

I will collect log this evening an attached it.

dolf182 commented 2 years ago

domoticz.txt

Berend95 commented 2 years ago

Same issue with crashing. Python 3.9 might cause it?

stas-demydiuk commented 2 years ago

Yes, most likely that's the issue as there were several messages that Domoticz doesn't work well with Python 3.9. See #689

dolf182 commented 2 years ago

Tried serveral things after putting the log here.

Changed the system default python to 3.8 but domoticz is still using 3.9. I have to look into this how to set the domoticz default python.

Apperenty the python version seems to cause issues when domoticz is loading plugins.

It seems to be not related to this plugin. Thank you for your fast response.

Arjan

fiktouf commented 2 years ago

Facing the same problem as dolf182. Any suggestions? Thks

dolf182 commented 2 years ago

Sorry fiktouf,

Not for now.. sorry. Will investigate more this weekend hopefully. Until then my zigbee network is not working anymore. Spoke to other people same issue.

Arjan

dolf182 commented 2 years ago

Got it working for now...

The issue is raspberry pi bullseye

if everything went ok you have working zigbee again on your pi.

Until the issues with bulleye aren't fixed this can be a solution for people struggling with the plugins

I think it is more an pyton 3.9 issue with domoticz. Let me know in the comments if not...

Kind Regards

Arjan

fiktouf commented 2 years ago

Hi Arjan, Thank you for your feedbak I'll try your solution this evening. Thks

dolf182 commented 2 years ago

Hello,

Just a short update

So i tried to install python 3.7 on bullseye. That works fine but domoticz is using the:

libpython and python dev for loading in the plugins.

the 3.7 versions are not availible anymore for bullseye.

removing the libpython3.9 and python3.9-dev and reinstall the version 3.8 of both versions will fix the crash issue.

The downside is you can add the plugin and the api_transport device. But the zigbee2mqtt page is not showing up

Arjan

fiktouf commented 2 years ago

Hi Arjan, thanks a lot for you feedback. I've tried python 3.8 as well yesterday . same conclusion as yours... So it Works fine on Buster thank you again

waltervl commented 2 years ago

Python support on Bullsye could be fixed in latest beta with commit https://github.com/domoticz/domoticz/commit/8f01ed77d5831090f34ad59d22ef1f7cd4d740f2 But try out in a beta environment first as it is early beta changes.

Please report issues in https://www.domoticz.com/forum/viewtopic.php?f=6&t=38086

dolf182 commented 2 years ago

Thank you.

This fixed the issue for me on bullseye