Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par pipiche »

je te recommande d'utiliser cette approche https://zigbeefordomoticz.github.io/wik ... alEnv.html
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par Keros »

Salut Pipiche,

C'est le lien que je lui ai donné précédemment ...
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par pipiche »

Merci @Keros, mais quand je regarde les derniers logs et que je vois ceci

Code : Tout sélectionner

2025-06-07 12:39:52.258 Status: Zigbee: Initialized version 7.1, author 'pipiche38'
2025-06-07 12:39:52.259 Status: Zigbee: Welcome to Zigbee for Domoticz (Z4D) plugin. (c)pipiche38 - 2018 - 2025
2025-06-07 12:39:52.259 Zigbee: PYTHONPATH is not set
2025-06-07 12:39:52.259 Status: Zigbee: Z4D requires python3.9 or above and you are running 3.11
cela indique qu'il n'(utilise pas une env python car PYTHONPATH is not set !
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Thierry_06
Messages : 167
Inscription : 02 janv. 2017, 11:02
Localisation : Alpes maritimes

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par Thierry_06 »

Bonjour
Effectivement le 7 juin j'avais tout reinstallé raspi OS domoticz et le plugin avec l’environnement Virtuel de Python et j'avais oublié d'aller modifier le fichier domoticz.sh

Ce n'est pas le probleme principal car apres modification du fichier domoticz,sh j'ai toujours les 3 lignes d'erreur comme le message du 6 juin
2025-06-11 09:22:39.946 Status: Zigbee: Started.
2025-06-11 09:22:39.946 Status: Zigbee: Entering work loop.
2025-06-11 09:22:39.946 Status: NotificationSystem: thread started...
2025-06-11 09:22:39.947 Status: EventSystem: reset all events...
2025-06-11 09:22:39.948 Status: EventSystem: reset all device statuses...
2025-06-11 09:22:40.017 Status: Python EventSystem: Initializing event module.
2025-06-11 09:22:40.017 Status: EventSystem: Started
2025-06-11 09:22:40.017 Status: EventSystem: Queue thread started...
2025-06-11 09:22:40.312 Status: PluginSystem: 1 plugins started.
2025-06-11 09:22:41.177 Status: Zigbee: Initialized version 7.1, author 'pipiche38'
2025-06-11 09:22:41.178 Status: Zigbee: Welcome to Zigbee for Domoticz (Z4D) plugin. (c)pipiche38 - 2018 - 2025
2025-06-11 09:22:41.178 Zigbee: PYTHONPATH is set to: /home/pi/domoticz/Domoticz_Python_Env:
2025-06-11 09:22:41.178 Status: Zigbee: Z4D requires python3.9 or above and you are running 3.11
2025-06-11 09:22:41.179 Status: Zigbee: Z4D is loading configuration settings
2025-06-11 09:22:41.181 Zigbee: Loading PluginConf - from Domoticz sqlite Db
2025-06-11 09:22:41.181 Zigbee: /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-05.json timestamp is 1749292792.257172
2025-06-11 09:22:41.181 Zigbee: Dz PluginConf is older than Json Dz: 0 Json: 1749292792.257172
2025-06-11 09:22:41.183 Status: Zigbee: filename set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-05.json
2025-06-11 09:22:41.183 Status: Zigbee: pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigbee
2025-06-11 09:22:41.183 Status: Zigbee: homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigbee
2025-06-11 09:22:41.183 Status: Zigbee: pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Data
2025-06-11 09:22:41.183 Status: Zigbee: pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf
2025-06-11 09:22:41.183 Status: Zigbee: pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigbee/OTAFirmware
2025-06-11 09:22:41.183 Status: Zigbee: pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Reports
2025-06-11 09:22:41.183 Status: Zigbee: pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigbee/www
2025-06-11 09:22:41.183 Status: Zigbee: pluginLogs set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Logs
2025-06-11 09:22:41.183 Status: Zigbee: SSLCertificate set to /home/pi/domoticz/plugins/Domoticz-Zigbee/certs/server.crt
2025-06-11 09:22:41.183 Status: Zigbee: SSLPrivateKey set to /home/pi/domoticz/plugins/Domoticz-Zigbee/certs/server.key
2025-06-11 09:22:41.183 Status: Zigbee: expJsonDatabase set to 0
2025-06-11 09:22:41.403 Status: Zigbee: Z4D is checking the python modules requirements
2025-06-11 09:22:41.403 Status: Zigbee: Checking Python modules /home/pi/domoticz/plugins/Domoticz-Zigbee/constraints.txt
2025-06-11 09:22:41.406 Status: Zigbee: - zigpy==0.80.0 version required 0.80.0 installed 0.80.0
2025-06-11 09:22:41.408 Status: Zigbee: - zigpy_znp==0.14.0 version required 0.14.0 installed 0.14.0
2025-06-11 09:22:41.410 Status: Zigbee: - zigpy_deconz==0.25.0 version required 0.25.0 installed 0.25.0
2025-06-11 09:22:41.413 Status: Zigbee: - bellows==0.45.0 version required 0.45.0 installed 0.45.0
2025-06-11 09:22:41.415 Status: Zigbee: - dnspython==2.7.0 version required 2.7.0 installed 2.7.0
2025-06-11 09:22:41.418 Status: Zigbee: - pyserial>=3.5 version required 3.5 installed 3.5
2025-06-11 09:22:41.421 Error: Zigbee: Looks like charset-normalizer==2.0.11 Python module is not installed or does not meet the required version. Requires 2.0.11, Installed 3.0.1.Make sure to install the required Python3 module with the correct version.
2025-06-11 09:22:41.421 Error: Zigbee: Use the command:
2025-06-11 09:22:41.421 Error: Zigbee: sudo python3 -m pip install -r requirements.txt --upgrade

2025-06-11 09:22:41.422 Zigbee: onStop()
2025-06-11 09:22:41.951 Raspi: Temp (Internal Temperature)
2025-06-11 09:22:45.046 Status: [web:8080] Incoming connection from: 192.168.0.40
2025-06-11 09:23:00.092 Status: [web:8080] Incoming connection from: 192.168.0.28 /
Mon installation Pi4+ OS Raspbian
Rfxcom(pour VR Somfy)+ 2 Zigbee 3.0 USB dongle Plus(Sonoff) + Esp12(avec sonde ds1820/GY30 + Tasmota)
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par pipiche »

Peux-tu essayer la commande suivante:

Code : Tout sélectionner

export PYTHONPATH= /home/pi/domoticz/Domoticz_Python_Env:$PYTHONPATH
sudo Tools/plugin-auto-upgrade.sh
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Thierry_06
Messages : 167
Inscription : 02 janv. 2017, 11:02
Localisation : Alpes maritimes

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par Thierry_06 »

Bonsoir

voila les responses à tes commandes
pi@pi4:~/domoticz $
pi@pi4:~/domoticz $
pi@pi4:~/domoticz $ pwd
/home/pi/domoticz
pi@pi4:~/domoticz $ ls
domocookie.txt domoticz.db domoticz.db-wal domoticz.sh History.txt plugins server_cert.pem updaterelease
domoticz domoticz.db-shm Domoticz_Python_Environment dzVents License.txt scripts updatebeta www
pi@pi4:~/domoticz $
pi@pi4:~/domoticz $ export PYTHONPATH= /home/pi/domoticz/Domoticz_Python_Env:$PYTHONPATH
-bash: export: `/home/pi/domoticz/Domoticz_Python_Env:': not a valid identifier
pi@pi4:~/domoticz $
pi@pi4:~/domoticz $ export PYTHONPATH= /home/pi/domoticz/Domoticz_Python_Environment:$PYTHONPATH
-bash: export: `/home/pi/domoticz/Domoticz_Python_Environment:': not a valid identifier
pi@pi4:~/domoticz $
pi@pi4:~/domoticz $
pi@pi4:~/domoticz $ sudo Tools/plugin-auto-upgrade.sh
sudo: Tools/plugin-auto-upgrade.sh: command not found
pi@pi4:~/domoticz $
la 1ere commande , j'ai pensé que le nom de la directorie n'etait pas le bon , la 2eme j'ai mis le nom en entier mais ca n'a rien changé

Au siecle dernier , on avait une limitation sur la longueur du chemin , ca ne pourrait pas etre un truc comme cela

Dans les log de domoticz effectivement il est mis
2025-06-11 20:51:02.020 Zigbee: PYTHONPATH is set to: /home/pi/domoticz/Domoticz_Python_Env:
mais Domoticz_Python_Env n'existe pas

A suivre :oops:
Mon installation Pi4+ OS Raspbian
Rfxcom(pour VR Somfy)+ 2 Zigbee 3.0 USB dongle Plus(Sonoff) + Esp12(avec sonde ds1820/GY30 + Tasmota)
Thierry_06
Messages : 167
Inscription : 02 janv. 2017, 11:02
Localisation : Alpes maritimes

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par Thierry_06 »

Je me reponds

Bêtement j'ai renommé la directorie "Domoticz_Python_Environment" en "Domoticz_Python_Env" et j'ai tout redémarré et ca marche , plus de message d'erreur . Je ne sais pas si c'est la cause.
Dans le Wiki , il y a des problèmes de chemin. des fois c'est /home/pi/domoticz et qq lignes plus loin c'est /home/domoticz

Tant mieux que ça marche , ça m'aurait embêté d'aller voir la concurrence (HA) après 13 ans de Dz
:D
Mon installation Pi4+ OS Raspbian
Rfxcom(pour VR Somfy)+ 2 Zigbee 3.0 USB dongle Plus(Sonoff) + Esp12(avec sonde ds1820/GY30 + Tasmota)
Thierry_06
Messages : 167
Inscription : 02 janv. 2017, 11:02
Localisation : Alpes maritimes

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par Thierry_06 »

Suite

j'ai quand même un petit problème .
2025-06-12 00:32:34.526 Error: Zigbee : Urlopen to http://127.0.0.1:8080/json.htm?type=com ... ethardware rejected. Error: HTTP Error 401: Unauthorized
Je peux acceder à 192.168.0.63:9440 et j'ai un message d’erreur
7: Object {"0":{"Time":"12/06/2025 00:32:34","PermitToJoin":{"Duration":0,"Starttime":1749682204},"PluginHealth":"Startup","Thread":"MainThread 2706","nwkid":"None","Module":"DZDB","message":"Urlopen to http://127.0.0.1:8080
J'arrive a inclure des objets et a interagir avec eux mais j'ai ce message .
Que dois je faire ?

Merci
Mon installation Pi4+ OS Raspbian
Rfxcom(pour VR Somfy)+ 2 Zigbee 3.0 USB dongle Plus(Sonoff) + Esp12(avec sonde ds1820/GY30 + Tasmota)
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par Keros »

Ton port DomoticZ est sur 8080 ?

L'IP 127.0.0.1 est autorisée dans les réseaux de confiance (Paramètres de DomoticZ) ?
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Thierry_06
Messages : 167
Inscription : 02 janv. 2017, 11:02
Localisation : Alpes maritimes

Re: Probleme installation plugin sur Pi4 64bit domoticZ 2025.1

Message par Thierry_06 »

Bonjour


Oui les ports domoticz sont ceux de l'installation classique le 8080 et 433
Oui le 127.0.0.* est mis dans les reseaux de confiance onglet securité
Mon installation Pi4+ OS Raspbian
Rfxcom(pour VR Somfy)+ 2 Zigbee 3.0 USB dongle Plus(Sonoff) + Esp12(avec sonde ds1820/GY30 + Tasmota)
Répondre