[Résolu]- Problème python Domoticz Docker synology

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

Re: Problème python Domoticz Docker synology

Message par pipiche »

a faire dans le container

Code : Tout sélectionner

sudo apt install python3-dev
Après il serait bien de fournir les logs domoticz et les logs du plugin qui se trouvent dans Logs/
lecanard38
Messages : 34
Inscription : 26 avr. 2019, 16:20

Re: Problème python Domoticz Docker synology

Message par lecanard38 »

Avec sudo ça passe pas et sans sudo voici ce qui ça me dit :

Code : Tout sélectionner

root@domoticz:/opt/domoticz# sudo apt install python3-dev                                                                              
bash: sudo: command not found                                                                                                          
root@domoticz:/opt/domoticz# apt install python3-dev                                                                                   
Reading package lists... Done                                                                                                          
Building dependency tree                                                                                                               
Reading state information... Done                                                                                                      
Package python3-dev is not available, but is referred to by another package.                                                           
This may mean that the package is missing, has been obsoleted, or                                                                      
is only available from another source                                                                                                  
                                                                                                                                       
E: Package 'python3-dev' has no installation candidate                                                                                 
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème python Domoticz Docker synology

Message par pipiche »

Je ne connais pas docker , donc je t’aiderais pas plus.


Envoyé de mon iPhone en utilisant Tapatalk
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: Problème python Domoticz Docker synology

Message par Keros »

Si tu es connecté en root, il n'y a pas besoin de sudo.
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
Deufo
Messages : 280
Inscription : 26 févr. 2019, 16:25

Re: Problème python Domoticz Docker synology

Message par Deufo »

Tout est là : https://zigbeefordomoticz.github.io/wik ... vec-docker
L'interface a évolué avec dsm7 mais pour la partie python, c'est pareil.

Edit: je me rends compte que non en fait, je vais regarder ce qui manque...
Dernière modification par Keros le 01 nov. 2022, 21:12, modifié 1 fois.
Raison : Modification du lien vers le WikiUI
Deufo
Messages : 280
Inscription : 26 févr. 2019, 16:25

Re: Problème python Domoticz Docker synology

Message par Deufo »

Voilà, procédure à jour avec DSM7 et l'installation pour la version 6 du plugin :

Code : Tout sélectionner

cd userdata
cd plugins
git clone https://github.com/zigbeefordomoticz/Domoticz-Zigbee.git
cd Domoticz-Zigbee
apt update
apt install python3-dev
python3 -m pip install --upgrade pip
pip3 install wheel
pip3 install -r requirements.txt
lecanard38
Messages : 34
Inscription : 26 avr. 2019, 16:20

Re: Problème python Domoticz Docker synology

Message par lecanard38 »

Merci Deufo,
Je vais desinstaller et réinstaller avec cette nouvelle procédure.
Je te ferais un retour d'ici demain.
Bonne journée.
lecanard38
Messages : 34
Inscription : 26 avr. 2019, 16:20

Re: Problème python Domoticz Docker synology

Message par lecanard38 »

Bonjour,
La nouvelle procédure est bonne.
Pas d'erreur. J'ai bien les 2 dispositifs qui se créés dans domoticz. Je ne peux pas trop invistiguer davantage (à l'étranger jusqu'à samedi). Je verrais en rentrant.
Encore merci.
lecanard38
Messages : 34
Inscription : 26 avr. 2019, 16:20

Re: Problème python Domoticz Docker synology

Message par lecanard38 »

Bonjour,
Je viens de renter.
Au lancement du plugin voilà ce que j'ai dans les log domoticz.
J'ai l'impression qu'il ne vois pas mon coordinateur (conbeeII) sur port ACM0.
Voici le log :

Code : Tout sélectionner

2022-11-06 11:29:05.484 zigbee: Worker thread started.
2022-11-06 11:29:05.484 Status: zigbee: Entering work loop.
2022-11-06 11:29:05.484 Status: zigbee: Started.
2022-11-06 11:29:06.039 zigbee: Zigbee for Domoticz plugin started!
2022-11-06 11:29:06.568 zigbee: load PluginConf
2022-11-06 11:29:06.569 zigbee: Loading PluginConf - into Domoticz sqlite Db
2022-11-06 11:29:06.569 zigbee: /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Conf/PluginConf-08.json timestamp is 1667407502.2783728
2022-11-06 11:29:06.569 zigbee: Dz PluginConf is older than Json Dz: 0 Json: 1667407502.2783728
2022-11-06 11:29:06.569 zigbee: Installing plugin custom page /opt/domoticz/www/templates/zigbee.html
2022-11-06 11:29:06.570 zigbee: Starting LoggingManagement thread
2022-11-06 11:29:06.570 zigbee: start_logging_thread
2022-11-06 11:29:06.570 zigbee: logging_thread - listening
2022-11-06 11:29:06.038 Status: zigbee: Initialized version 6.3, author 'pipiche38'
2022-11-06 11:29:06.039 Status: zigbee: Checking Python modules /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt
2022-11-06 11:29:06.530 Status: zigbee: Checking Python modules /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt
2022-11-06 11:29:06.569 Status: zigbee: filename set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Conf/PluginConf-08.json
2022-11-06 11:29:06.569 Status: zigbee: pluginHome set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/
2022-11-06 11:29:06.569 Status: zigbee: homedirectory set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/
2022-11-06 11:29:06.569 Status: zigbee: pluginData set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Data/
2022-11-06 11:29:06.569 Status: zigbee: pluginConfig set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Conf/
2022-11-06 11:29:06.569 Status: zigbee: pluginOTAFirmware set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/OTAFirmware/
2022-11-06 11:29:06.569 Status: zigbee: pluginReports set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Reports/
2022-11-06 11:29:06.569 Status: zigbee: pluginWWW set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/www/
2022-11-06 11:29:06.569 Status: zigbee: pluginLogs set to /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Logs/
2022-11-06 11:29:06.571 Status: zigbee: Please watch plugin log into /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Logs//PluginZigbee_08.log
2022-11-06 11:29:06.575 Status: zigbee: Zigbee for Domoticz (z4d) plugin stable6-6.3.005 started
2022-11-06 11:29:06.578 Status: Incoming connection from: 172.17.0.1
2022-11-06 11:29:06.586 Status: zigbee: DeviceConf loaded - 22 confs loaded
2022-11-06 11:29:06.657 Status: zigbee: DeviceConf loaded - 365 confs loaded
2022-11-06 11:29:06.658 Status: zigbee: load ListOfDevice
2022-11-06 11:29:06.658 Status: zigbee: 0 Entries loaded from /opt/domoticz/userdata/plugins/Domoticz-Zigbee/Data/DeviceList-8.txt
2022-11-06 11:29:06.660 Status: zigbee: Transport mode: ZigpydeCONZ
2022-11-06 11:29:06.660 Error: zigbee: Call to function 'onStart' failed, exception details:
2022-11-06 11:29:06.661 Error: zigbee: Traceback (most recent call last):
2022-11-06 11:29:06.661 Error: zigbee: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/plugin.py", line 1562, in onStart
2022-11-06 11:29:06.661 Error: zigbee: _plugin.onStart()
2022-11-06 11:29:06.661 Error: zigbee: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/plugin.py", line 566, in onStart
2022-11-06 11:29:06.661 Error: zigbee: import zigpy
2022-11-06 11:29:06.661 Error: zigbee: ModuleNotFoundError: No module named 'zigpy'
2022-11-06 11:29:30.855 Envoy: General/kWh (Enphase kWh Production)
2022-11-06 11:29:30.857 Envoy: P1 Smart Meter (Enphase Production kWh Total)
2022-11-06 11:30:01.440 Envoy: General/kWh (Enphase kWh Production)
2022-11-06 11:30:01.443 Envoy: P1 Smart Meter (Enphase Production kWh Total)
2022-11-06 11:30:15.079 Error: zigbee: [ 70] I have hard time to get Coordinator Version. Mostlikly there is a communication issue
2022-11-06 11:30:25.067 Error: zigbee: [ 80] I have hard time to get Coordinator Version. Mostlikly there is a communication issue
2022-11-06 11:30:31.604 Envoy: General/kWh (Enphase kWh Production)
2022-11-06 11:30:31.606 Envoy: P1 Smart Meter (Enphase Production kWh Total)
2022-11-06 11:30:35.058 Error: zigbee: [ 90] I have hard time to get Coordinator Version. Mostlikly there is a communication issue
2022-11-06 11:30:45.093 Error: zigbee: [100] I have hard time to get Coordinator Version. Mostlikly there is a communication issue
2022-11-06 11:30:55.082 Error: zigbee: [110] I have hard time to get Coordinator Version. Mostlikly there is a communication issue
2022-11-06 11:31:01.764 Envoy: General/kWh (Enphase kWh Production)
2022-11-06 11:31:01.766 Envoy: P1 Smart Meter (Enphase Production kWh Total)
2022-11-06 11:31:05.071 Error: zigbee: [120] I have hard time to get Coordinator Version. Mostlikly there is a communication issue
2022-11-06 11:31:06.075 zigbee: URL INFOS {'type': 'command', 'param': 'updatehardware', 'htype': '94', 'idx': 8, 'name': 'zigbee', 'address': '0.0.0.0', 'port': '9999', 'serialport': '/dev/ttyACM0', 'Mode1': 'ZigpydeCONZ', 'Mode2': 'USB', 'Mode3': 'False', 'Mode4': '9440', 'Mode5': 'http://Lecanard:fa1ral@192.168.0.11:9191', 'Mode6': '2', 'extra': 'Zigate', 'enabled': 'false', 'datatimeout': '0', 'loglevel': 7}
2022-11-06 11:31:06.089 zigbee: onStop()
2022-11-06 11:31:06.092 zigbee: logging_thread - ended
2022-11-06 11:31:06.207 zigbee: Logging Thread shutdown
2022-11-06 11:31:06.207 zigbee: onStop called (6) Close Logging Management
2022-11-06 11:31:06.076 Status: zigbee: Plugin Restart command : http://****:****@192.168.0.11:9191/json.htm?type=command&param=updatehardware&htype=94&idx=8&name=zigbee&address=0.0.0.0&port=9999&serialport=%2Fdev%2FttyACM0&Mode1=ZigpydeCONZ&Mode2=USB&Mode3=False&Mode4=9440&Mode5=http%3A%2F%2FLecanard%3Afa1ral%40192.168.0.11%3A9191&Mode6=2&extra=Zigate&enabled=false&datatimeout=0&loglevel=7
2022-11-06 11:31:06.089 Status: zigbee: Stop directive received.
2022-11-06 11:31:06.301 Status: zigbee: Exiting work loop.
2022-11-06 11:31:06.389 Status: zigbee: Stopping threads.
2022-11-06 11:31:06.389 Status: zigbee: Stopped.
2022-11-06 11:31:06.084 Error: zigbee: [ ] Stopping the plugin and lease do check the Coordinator connectivity.
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Problème python Domoticz Docker synology

Message par Keros »

Non, ce n'est pas un souci de coordinateur. Il y a une erreur avec le module qui ne semble pas présent : l'installation n'est pas complète.

Tu es bien allé jusqu'au bout avec le pip3 install -r requirements.txt ?
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
Répondre