[V2023.2] communication avec la pizigate+ impossible

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
pabaillon
Messages : 24
Inscription : 07 août 2021, 16:27

[V2023.2] communication avec la pizigate+ impossible

Message par pabaillon »

Bonjour,
Suite au passage à la V2023.2 + plugin V7 après un upgrade vers debian 11 sur une raspberry 4 il n'y a plus de communication avec la zigate+. Avec ce message d'erreur au démarrage de domoticz.
Si quelqu'un à une idée pour me dépatouiller de tout ça. Merci par avance

Code : Tout sélectionner

2023-08-08 23:16:47.767  Error: zigbee for domoticz: Call to function 'onStart' failed, exception details:
2023-08-08 23:16:47.772  Error: zigbee for domoticz: Traceback (most recent call last):
2023-08-08 23:16:47.772  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1558, in onStart
2023-08-08 23:16:47.772  Error: zigbee for domoticz:     _plugin.onStart()
2023-08-08 23:16:47.772  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 544, in onStart
2023-08-08 23:16:47.772  Error: zigbee for domoticz:     switchPiZigate_mode(self, "run")
2023-08-08 23:16:47.772  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/Modules/piZigate.py", line 57, in switchPiZigate_mode
2023-08-08 23:16:47.772  Error: zigbee for domoticz:     runmode_with_gpiocommand()
2023-08-08 23:16:47.772  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/Modules/piZigate.py", line 121, in runmode_with_gpiocommand
2023-08-08 23:16:47.772  Error: zigbee for domoticz:     run(GPIO_CMD + " read 0", shell=True, check=True)  # nosec
2023-08-08 23:16:47.772  Error: zigbee for domoticz:   File "/usr/lib/python3.9/subprocess.py", line 528, in run
2023-08-08 23:16:47.772  Error: zigbee for domoticz:     raise CalledProcessError(retcode, process.args,
2023-08-08 23:16:47.772  Error: zigbee for domoticz: subprocess.CalledProcessError: Command '/usr/bin/gpio read 0' returned non-zero exit status 1.
Dernière modification par pabaillon le 09 août 2023, 09:39, modifié 1 fois.
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [V2023.2] communication avec la zigate+ impossible

Message par Keros »

Nous avons regroupé dans le sujet [A lire avant de poster] Guide pour bien formuler une demande une première liste d’informations qui nous sont utiles pour commencer à analyser les demandes. En complétant tes informations, nous pourrons t’apporter plus rapidement des réponses pertinentes. Merci.

PS : mets-nous les logs entiers du démarrage du plugin / 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
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [V2023.2] communication avec la zigate+ impossible

Message par pipiche »

Une zigate ou PiZigate ? Car d’après les logs ça semble plutôt une config de PiZigate qui ne passé pas
pabaillon
Messages : 24
Inscription : 07 août 2021, 16:27

Re: [V2023.2] communication avec la zigate+ impossible

Message par pabaillon »

Oui pardon c'est une pizigate
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [V2023.2] communication avec la pizigate+ impossible

Message par pipiche »

as-tu la commande

Code : Tout sélectionner

gpio
je crois que sur bullseye ce n'est pas supporté

pourrais-tu mettre l'ensemble des logs et pas juste l'extrait cela permet d'avoir le context, également peux-tu mettre le fichier de log du plugin Logs/PluginZigbee-xx.log
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [V2023.2] communication avec la zigate+ impossible

Message par Keros »

@pabaillon, ce n'est pas pour t'embêter que je t'ai mis le lien vers le sujet [A lire avant de poster] Guide pour bien formuler une demande, ce sont des infos dont on a besoin et si on ne les a pas, il faut qu'on les demande… ce qu'a été obligé de faire Pipiche.

Pipiche passe énormément de temps à s'occuper du plugin, il serait bien qu'on fasse tous un petit effort pour éviter de lui en demander davantage ;)
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
pabaillon
Messages : 24
Inscription : 07 août 2021, 16:27

Re: [V2023.2] communication avec la pizigate+ impossible

Message par pabaillon »

@Keros

Ça ne m'embête pas. et Je comprends. Et je m’excuse :roll:

@Pipiche

Les logs de démarrage

Code : Tout sélectionner

2023-08-09 13:21:24.452  Status: Domoticz V2023.2 (c)2012-2023 GizMoCuz
2023-08-09 13:21:24.453  Status: Build Hash: 19efd039c, Date: 2023-07-21 17:23:44
2023-08-09 13:21:24.453  Status: Startup Path: /opt/yunohost/domoticz/
2023-08-09 13:21:24.468  Sunrise: 06:29:00 SunSet: 20:55:00
2023-08-09 13:21:24.468  Day length: 14:26:00 Sun at south: 13:42:00
2023-08-09 13:21:24.468  Civil twilight start: 05:56:00 Civil twilight end: 21:28:00
2023-08-09 13:21:24.469  Nautical twilight start: 05:14:00 Nautical twilight end: 22:09:00
2023-08-09 13:21:24.469  Astronomical twilight start: 04:27:00 Astronomical twilight end: 22:56:00
2023-08-09 13:21:24.547  Status: PluginSystem: Started, Python version '3.9.2', 2 plugin definitions loaded.
2023-08-09 13:21:24.556  Active notification Subsystems: pushbullet (1/13)
2023-08-09 13:21:24.558  Status: WebServer(HTTP) started on address: :: with port 8080
2023-08-09 13:21:24.561  Starting shared server on: :::6144
2023-08-09 13:21:24.561  Status: TCPServer: shared server started...
2023-08-09 13:21:24.562  Status: RxQueue: queue worker started...
2023-08-09 13:21:26.563  Status: RFX: Worker started...
2023-08-09 13:21:26.569  Status: EventSystem: reset all events...
2023-08-09 13:21:26.572  Status: NotificationSystem: thread started...

2023-08-09 13:21:26.579  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/JsonDescription.lua
2023-08-09 13:21:26.580  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/global_data.lua
2023-08-09 13:21:26.581  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/Livebox.lua
2023-08-09 13:21:26.582  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/Script #3.lua
2023-08-09 13:21:26.582  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/bar.lua
2023-08-09 13:21:26.583  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/romeo.lua
2023-08-09 13:21:26.583  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/bar2.lua
2023-08-09 13:21:26.583  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/Script #5.lua
2023-08-09 13:21:26.584  Status: dzVents: Write file: /opt/yunohost/domoticz/scripts/dzVents/generated_scripts/salon.lua
2023-08-09 13:21:26.584  Status: EventSystem: reset all device statuses...
2023-08-09 13:21:26.970  Status: PluginSystem: 8 plugins started.
2023-08-09 13:21:27.571  Status: RFX: Using serial port: /dev/ttyUSB0
2023-08-09 13:21:27.605  Status: Python EventSystem: Initializing event module.
2023-08-09 13:21:27.606  Status: EventSystem: Started
2023-08-09 13:21:27.607  Status: EventSystem: Queue thread started...
2023-08-09 13:21:28.198  RFX: Temp + Humidity ()
2023-08-09 13:21:30.992  Error: zigbee for domoticz: Call to function 'onStart' failed, exception details:
2023-08-09 13:21:30.997  Error: zigbee for domoticz: Traceback (most recent call last):
2023-08-09 13:21:30.997  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1558, in onStart
2023-08-09 13:21:30.997  Error: zigbee for domoticz:     _plugin.onStart()
2023-08-09 13:21:30.997  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 544, in onStart
2023-08-09 13:21:30.998  Error: zigbee for domoticz:     switchPiZigate_mode(self, "run")
2023-08-09 13:21:30.998  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/Modules/piZigate.py", line 57, in switchPiZigate_mode
2023-08-09 13:21:30.998  Error: zigbee for domoticz:     runmode_with_gpiocommand()
2023-08-09 13:21:30.998  Error: zigbee for domoticz:   File "/opt/yunohost/domoticz/plugins/Domoticz-Zigbee/Modules/piZigate.py", line 121, in runmode_with_gpiocommand
2023-08-09 13:21:30.998  Error: zigbee for domoticz:     run(GPIO_CMD + " read 0", shell=True, check=True)  # nosec
2023-08-09 13:21:30.998  Error: zigbee for domoticz:   File "/usr/lib/python3.9/subprocess.py", line 528, in run
2023-08-09 13:21:30.998  Error: zigbee for domoticz:     raise CalledProcessError(retcode, process.args,
2023-08-09 13:21:30.998  Error: zigbee for domoticz: subprocess.CalledProcessError: Command '/usr/bin/gpio read 0' returned non-zero exit status 1.
2023-08-09 13:21:40.073  Error: zigbee for domoticz: Zigate Communication error.
2023-08-09 13:21:50.098  Error: zigbee for domoticz: Zigate Communication error.
2023-08-09 13:22:00.077  Error: zigbee for domoticz: Zigate Communication error.

Code : Tout sélectionner

2023-08-09 13:52:25,132 INFO    :b'Zigbee for Domoticz (z4d) plugin stable7-7.1.002 started'
2023-08-09 13:52:25,147 INFO    :b'Plugin Database: DeviceList-12.txt'
2023-08-09 13:52:25,147 INFO    :b'Pathname to z4d_certified_devices /usr/local/lib/python3.9/dist-packages/z4d_certified_devices/'
2023-08-09 13:52:25,148 INFO    :b'Loading ZCL Cluster definitions'
2023-08-09 13:52:25,150 INFO    :b' - ZCL Cluster 0000 - (V1) Basic loaded'
2023-08-09 13:52:25,151 INFO    :b' - ZCL Cluster 0001 - (V1) Power loaded'
2023-08-09 13:52:25,152 INFO    :b' - ZCL Cluster 0002 - (V1) Device Temperature Configuration loaded'
2023-08-09 13:52:25,153 INFO    :b' - ZCL Cluster 0003 - (V1) Identify loaded'
2023-08-09 13:52:25,154 INFO    :b' - ZCL Cluster 0004 - (V1) Groups loaded'
2023-08-09 13:52:25,155 INFO    :b' - ZCL Cluster 0005 - (V1) Scenes loaded'
2023-08-09 13:52:25,156 INFO    :b' - ZCL Cluster 0006 - (V1) On/Off loaded'
2023-08-09 13:52:25,156 INFO    :b' - ZCL Cluster 0008 - (V1) Level loaded'
2023-08-09 13:52:25,157 INFO    :b' - ZCL Cluster 0009 - (V1) Alarms loaded'
2023-08-09 13:52:25,158 INFO    :b' - ZCL Cluster 000a - (V1) Time loaded'
2023-08-09 13:52:25,159 INFO    :b' - ZCL Cluster 000d - (V1) Analog Output loaded'
2023-08-09 13:52:25,160 INFO    :b' - ZCL Cluster 000f - (V1) Binary Input loaded'
2023-08-09 13:52:25,161 INFO    :b' - ZCL Cluster 0013 - (V1) Multistate Output loaded'
2023-08-09 13:52:25,163 INFO    :b' - ZCL Cluster 0019 - (V1) OTA Upgrade loaded'
2023-08-09 13:52:25,163 INFO    :b' - ZCL Cluster 0020 - (V1) Poll Control loaded'
2023-08-09 13:52:25,165 INFO    :b' - ZCL Cluster 0102 - (V1) Window Covering loaded'
2023-08-09 13:52:25,166 INFO    :b' - ZCL Cluster 0202 - (V1) Fan Control loaded'
2023-08-09 13:52:25,167 INFO    :b' - ZCL Cluster 0204 - (V1) Thermostat User Interface Configuration loaded'
2023-08-09 13:52:25,168 INFO    :b' - ZCL Cluster 0300 - (V1) Color Control loaded'
2023-08-09 13:52:25,169 INFO    :b' - ZCL Cluster 0301 - (V1) Ballast Configuration loaded'
2023-08-09 13:52:25,170 INFO    :b' - ZCL Cluster 0400 - (V1) Illuminance Level Sensing loaded'
2023-08-09 13:52:25,171 INFO    :b' - ZCL Cluster 0402 - (V1) Temperature Measurement loaded'
2023-08-09 13:52:25,173 INFO    :b' - ZCL Cluster 0403 - (V1) Pressure Measurement loaded'
2023-08-09 13:52:25,174 INFO    :b' - ZCL Cluster 0405 - (V1) Relative Humidity Measurement loaded'
2023-08-09 13:52:25,175 INFO    :b' - ZCL Cluster 0406 - (V1) Occupancy Sensing loaded'
2023-08-09 13:52:25,178 INFO    :b' - ZCL Cluster 0700 - (V1) Price loaded'
2023-08-09 13:52:25,181 INFO    :b' - ZCL Cluster 0702 - (V1) Metering (Smart Energy) loaded'
2023-08-09 13:52:25,182 INFO    :b' - ZCL Cluster 0b01 - (V1) Meter Identification loaded'
2023-08-09 13:52:25,183 INFO    :b' - ZCL Cluster 0b04 - (V1) Electrical Measurement loaded'
2023-08-09 13:52:25,185 INFO    :b' - ZCL Cluster 0b05 - (V1) Diagnostics loaded'
2023-08-09 13:52:25,186 INFO    :b' - ZCL Cluster e000 - (V1) Tuya E000 Private Cluster loaded'
2023-08-09 13:52:25,187 INFO    :b' - ZCL Cluster e001 - (V1) Tuya E001 Private Cluster loaded'
2023-08-09 13:52:25,188 INFO    :b' - ZCL Cluster e002 - (V1) Tuya E002 Private Cluster loaded'
2023-08-09 13:52:25,189 INFO    :b' - ZCL Cluster fcc0 - (V1) LUMI Private Cluster loaded'
2023-08-09 13:52:25,190 INFO    :b' - ZCL Cluster ff66 - (V1) Lixee Zlinky private cluster loaded'
2023-08-09 13:52:25,196 INFO    :b'DeviceConf loaded - 16 confs loaded'
2023-08-09 13:52:25,200 INFO    :b'Local-Device conf loaded - 21 confs loaded'
2023-08-09 13:52:25,491 INFO    :b'Certified Devices loaded - 502 confs loaded'
2023-08-09 13:52:25,492 INFO    :b'load ListOfDevice'
2023-08-09 13:52:26,174 INFO    :b'57 Entries loaded from /opt/yunohost/domoticz/plugins/Domoticz-Zigbee/Data/DeviceList-12.txt'
2023-08-09 13:52:26,310 INFO    :b'Transport mode: V2-PI'
2023-08-09 13:52:29,204 ERROR   : [       MainThread] Zigate Communication error.
2023-08-09 13:52:35,068 ERROR   : [       MainThread] Zigate Communication error.
2023-08-09 13:52:45,093 ERROR   : [       MainThread] Zigate Communication error.
2023-08-09 13:52:55,071 ERROR   : [       MainThread] Zigate Communication error.
2023-08-09 13:53:05,094 ERROR   : [       MainThread] Zigate Communication error.
2023-08-09 13:53:10,167 ERROR   : [       MainThread] Zigate Communication error.
2023-08-09 13:53:15,078 ERROR   : [       MainThread] Zigate Communication error.

Dernière modification par Keros le 09 août 2023, 16:48, modifié 1 fois.
Raison : Regroupement des réponses
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [V2023.2] communication avec la pizigate+ impossible

Message par pipiche »

que donne la commande

Code : Tout sélectionner

sudo Tools/pi-zigate.sh run
pabaillon
Messages : 24
Inscription : 07 août 2021, 16:27

Re: [V2023.2] communication avec la pizigate+ impossible

Message par pabaillon »

Code : Tout sélectionner

Verif GPIO ...
+ GPIO 0 (RESET) 1 --> OK
+ GPIO 2 (FLASH) 1 --> OK
Switching PI-Zigate to Run mode
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [V2023.2] communication avec la pizigate+ impossible

Message par pipiche »

et après si tu le lances le plugin ca fonctionne ?
Répondre