[Fermé] Problème connexion à la zigate

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
Tc2112
Messages : 44
Inscription : 12 août 2023, 15:48

[Fermé] Problème connexion à la zigate

Message par Tc2112 »

bonjour,

suite à un plantage de zigate et après plusieurs redémarrages, j'ai un message d'erreur à l'ouverture du plugin de la zigate dans domoticz (voir photo), et Jai les erreurs suivantes dans le log domoticz :

Code : Tout sélectionner

2023-12-20 10:29:29.168 Status: zigate: ==> Transport Mode switch to full mode
2023-12-20 10:29:29.169 Status: zigate: ZiGate Classic PDM (legacy)
2023-12-20 10:29:29.169 Status: zigate: Installer Version Number: 0321
2023-12-20 10:29:29.170 Status: zigate: Branch Version: ==> Production <==
2023-12-20 10:29:39.275 Status: zigate: Zigbee Coordinator ieee: 00158d0003af5c63 , short addr: 0000
2023-12-20 10:29:39.275 Status: zigate: Network state UP, PANID: d02c extPANID: 0xef85caa1640d6225 Channel: 11
2023-12-20 10:29:44.092 Status: zigate: Request Disabling Accepting new Hardware
2023-12-20 10:29:44.691 Status: zigate: Accepting new Hardware: Disable (Off)
2023-12-20 10:29:49.056 Status: zigate: coordinator set to Certification : 1/CE -> CE
2023-12-20 10:29:49.314 Status: zigate: TxPower Attenuation: 0 dBm
2023-12-20 10:29:49.055 Error: zigate: Call to function 'onHeartbeat' failed, exception details:
2023-12-20 10:29:49.055 Error: zigate: Traceback (most recent call last):
2023-12-20 10:29:49.055 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1508, in onHeartbeat
2023-12-20 10:29:49.055 Error: zigate: _plugin.onHeartbeat()
2023-12-20 10:29:49.055 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1010, in onHeartbeat
2023-12-20 10:29:49.055 Error: zigate: zigateInit_Phase3(self)
2023-12-20 10:29:49.055 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1206, in zigateInit_Phase3
2023-12-20 10:29:49.055 Error: zigate: self.webserver.update_configureReporting(self.configureReporting )
2023-12-20 10:29:49.055 Error: zigate: AttributeError: 'NoneType' object has no attribute 'update_configureReporting'
Si quelqu'un peu m'aider merci

Ma config :
Version de DomoticZ: 2023.2
Build Hash: 19efd039c
Compile Date: 2023-07-21 17:23:44
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Debian GNU / linux 11
ZiGate WiFi Config v1.30
Branche du plugin : stable 7
Pièces jointes
Sans titre-1.jpg
Sans titre-1.jpg (30.68 Kio) Consulté 544 fois
Dernière modification par Tc2112 le 18 janv. 2024, 14:09, modifié 1 fois.
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Problème connexion à la zigate

Message par Keros »

Tu peux nous mettre les logs complets de démarrage du plugin ?

Quelle est la version de ton plugin ? Il est à jour ?
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
Tc2112
Messages : 44
Inscription : 12 août 2023, 15:48

Re: Problème connexion à la zigate

Message par Tc2112 »

Voici les logs domoticz au démarrage du plugin, la version : Branche du plugin : stable 7

Code : Tout sélectionner

2023-12-20 11:41:08.837 zigate: Worker thread started.
2023-12-20 11:41:08.837 Status: zigate: Started.
2023-12-20 11:41:08.837 Status: zigate: Entering work loop.
2023-12-20 11:41:09.820 zigate: load PluginConf
2023-12-20 11:41:09.821 zigate: Loading PluginConf - from Domoticz sqlite Db
2023-12-20 11:41:09.821 zigate: /home/freebox/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-26.json timestamp is 1693567766.2949464
2023-12-20 11:41:09.822 zigate: Dz PluginConf is older than Json Dz: 0 Json: 1693567766.2949464
2023-12-20 11:41:09.823 zigate: Installing plugin custom page /home/freebox/domoticz/www/templates/zigate.html
2023-12-20 11:41:09.824 zigate: Starting LoggingManagement thread
2023-12-20 11:41:09.825 zigate: start_logging_thread
2023-12-20 11:41:09.825 zigate: logging_thread - listening
2023-12-20 11:41:09.472 Status: zigate: Initialized version 7.1, author 'pipiche38'
2023-12-20 11:41:09.483 Status: zigate: Zigbee for Domoticz plugin starting
2023-12-20 11:41:09.483 Status: zigate: Z4D plugin requires python3 3.8 or above and you are running 3.9
2023-12-20 11:41:09.483 Status: zigate: Checking Python modules /home/freebox/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2023-12-20 11:41:09.823 Status: zigate: PluginAnalytics set to 1
2023-12-20 11:41:09.823 Status: zigate: zigpySourceRouting set to 1
2023-12-20 11:41:09.823 Status: zigate: channel set to 11
2023-12-20 11:41:09.823 Status: zigate: filename set to /home/freebox/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-26.json
2023-12-20 11:41:09.823 Status: zigate: pluginHome set to /home/freebox/domoticz/plugins/Domoticz-Zigbee
2023-12-20 11:41:09.823 Status: zigate: homedirectory set to /home/freebox/domoticz/plugins/Domoticz-Zigbee
2023-12-20 11:41:09.823 Status: zigate: pluginData set to /home/freebox/domoticz/plugins/Domoticz-Zigbee/Data
2023-12-20 11:41:09.823 Status: zigate: pluginConfig set to /home/freebox/domoticz/plugins/Domoticz-Zigbee/Conf
2023-12-20 11:41:09.823 Status: zigate: pluginOTAFirmware set to /home/freebox/domoticz/plugins/Domoticz-Zigbee/OTAFirmware
2023-12-20 11:41:09.823 Status: zigate: pluginReports set to /home/freebox/domoticz/plugins/Domoticz-Zigbee/Reports
2023-12-20 11:41:09.823 Status: zigate: pluginWWW set to /home/freebox/domoticz/plugins/Domoticz-Zigbee/www
2023-12-20 11:41:09.823 Status: zigate: pluginLogs set to /home/freebox/domoticz/plugins/Domoticz-Zigbee/Logs
2023-12-20 11:41:09.823 Status: zigate: Pairing set to 1
2023-12-20 11:41:09.823 Status: zigate: Tuya set to 1
2023-12-20 11:41:09.823 Status: zigate: Tuya0601 set to 1
2023-12-20 11:41:09.823 Status: zigate: expJsonDatabase set to 0
2023-12-20 11:41:09.825 Status: zigate: Please watch plugin log into /home/freebox/domoticz/plugins/Domoticz-Zigbee/Logs/PluginZigbee_26.log
2023-12-20 11:41:09.833 Status: zigate: Zigbee for Domoticz (z4d) plugin stable7-7.1.007 started
2023-12-20 11:41:09.856 Status: zigate: Loading ZCL Cluster definitions
2023-12-20 11:41:09.858 Status: zigate: - ZCL Cluster 0000 - (V1) Basic loaded
2023-12-20 11:41:09.859 Status: zigate: - ZCL Cluster 0001 - (V1) Power loaded
2023-12-20 11:41:09.860 Status: zigate: - ZCL Cluster 0002 - (V1) Device Temperature Configuration loaded
2023-12-20 11:41:09.861 Status: zigate: - ZCL Cluster 0003 - (V1) Identify loaded
2023-12-20 11:41:09.861 Status: zigate: - ZCL Cluster 0004 - (V1) Groups loaded
2023-12-20 11:41:09.862 Status: zigate: - ZCL Cluster 0005 - (V1) Scenes loaded
2023-12-20 11:41:09.863 Status: zigate: - ZCL Cluster 0006 - (V1) On/Off loaded
2023-12-20 11:41:09.864 Status: zigate: - ZCL Cluster 0007 - (V1) On/Off Switch Configuration loaded
2023-12-20 11:41:09.865 Status: zigate: - ZCL Cluster 0008 - (V1) Level loaded
2023-12-20 11:41:09.866 Status: zigate: - ZCL Cluster 0009 - (V1) Alarms loaded
2023-12-20 11:41:09.867 Status: zigate: - ZCL Cluster 000a - (V1) Time loaded
2023-12-20 11:41:09.868 Status: zigate: - ZCL Cluster 000d - (V1) Analog Output loaded
2023-12-20 11:41:09.868 Status: zigate: - ZCL Cluster 000f - (V1) Binary Input loaded
2023-12-20 11:41:09.869 Status: zigate: - ZCL Cluster 0013 - (V1) Multistate Output loaded
2023-12-20 11:41:09.870 Status: zigate: - ZCL Cluster 0019 - (V1) OTA Upgrade loaded
2023-12-20 11:41:09.871 Status: zigate: - ZCL Cluster 0020 - (V1) Poll Control loaded
2023-12-20 11:41:09.872 Status: zigate: - ZCL Cluster 0102 - (V1) Window Covering loaded
2023-12-20 11:41:09.872 Status: zigate: - ZCL Cluster 0202 - (V1) Fan Control loaded
2023-12-20 11:41:09.873 Status: zigate: - ZCL Cluster 0204 - (V1) Thermostat User Interface Configuration loaded
2023-12-20 11:41:09.874 Status: zigate: - ZCL Cluster 0300 - (V1) Color Control loaded
2023-12-20 11:41:09.876 Status: zigate: - ZCL Cluster 0301 - (V1) Ballast Configuration loaded
2023-12-20 11:41:09.877 Status: zigate: - ZCL Cluster 0400 - (V1) Illuminance Level Sensing loaded
2023-12-20 11:41:09.877 Status: zigate: - ZCL Cluster 0402 - (V1) Temperature Measurement loaded
2023-12-20 11:41:09.878 Status: zigate: - ZCL Cluster 0403 - (V1) Pressure Measurement loaded
2023-12-20 11:41:09.879 Status: zigate: - ZCL Cluster 0405 - (V1) Relative Humidity Measurement loaded
2023-12-20 11:41:09.880 Status: zigate: - ZCL Cluster 0406 - (V1) Occupancy Sensing loaded
2023-12-20 11:41:09.881 Status: zigate: - ZCL Cluster 0700 - (V1) Price loaded
2023-12-20 11:41:09.883 Status: zigate: - ZCL Cluster 0702 - (V1) Metering (Smart Energy) loaded
2023-12-20 11:41:09.884 Status: zigate: - ZCL Cluster 0b01 - (V1) Meter Identification loaded
2023-12-20 11:41:09.885 Status: zigate: - ZCL Cluster 0b04 - (V1) Electrical Measurement loaded
2023-12-20 11:41:09.886 Status: zigate: - ZCL Cluster 0b05 - (V1) Diagnostics loaded
2023-12-20 11:41:09.887 Status: zigate: - ZCL Cluster e000 - (V1) Tuya E000 Private Cluster loaded
2023-12-20 11:41:09.887 Status: zigate: - ZCL Cluster e001 - (V1) Tuya E001 Private Cluster loaded
2023-12-20 11:41:09.888 Status: zigate: - ZCL Cluster e002 - (V1) Tuya E002 Private Cluster loaded
2023-12-20 11:41:09.889 Status: zigate: - ZCL Cluster fcc0 - (V1) LUMI Private Cluster loaded
2023-12-20 11:41:09.890 Status: zigate: - ZCL Cluster ff66 - (V1) Lixee Zlinky private cluster loaded
2023-12-20 11:41:09.893 Status: zigate: DeviceConf loaded - 16 confs loaded
2023-12-20 11:41:09.896 Status: zigate: Local-Device conf loaded - 19 confs loaded
2023-12-20 11:41:10.175 Status: zigate: Certified Devices loaded - 537 confs loaded
2023-12-20 11:41:10.178 Status: zigate: load ListOfDevice
2023-12-20 11:41:10.481 Status: zigate: 32 Entries loaded from /home/freebox/domoticz/plugins/Domoticz-Zigbee/Data/DeviceList-26.txt
2023-12-20 11:41:10.539 Status: zigate: Transport mode: Wifi
2023-12-20 11:41:10.613 Status: zigate: ZigateTransport: TCPIP Connection open: <socket.socket fd=29, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.49', 44644), raddr=('192.168.1.45', 9999)>
2023-12-20 11:41:11.616 Status: zigate: ZigateTransport: writer_thread Thread start.
2023-12-20 11:41:11.619 Status: zigate: ZigateTransport: thread_processing_and_sending Thread start.
2023-12-20 11:41:11.620 Status: zigate: Start Web Server connection
2023-12-20 11:41:11.631 Status: zigate: Web backend for Web User Interface started on port: 9441
2023-12-20 11:41:11.630 Error: zigate: Call to function 'onStart' failed, exception details:
2023-12-20 11:41:11.633 Error: zigate: Traceback (most recent call last):
2023-12-20 11:41:11.633 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1473, in onStart
2023-12-20 11:41:11.633 Error: zigate: _plugin.onStart()
2023-12-20 11:41:11.633 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 687, in onStart
2023-12-20 11:41:11.633 Error: zigate: start_web_server(self, Parameters["Mode4"], Parameters["HomeFolder"])
2023-12-20 11:41:11.633 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1332, in start_web_server
2023-12-20 11:41:11.633 Error: zigate: self.webserver = WebServer(
2023-12-20 11:41:11.633 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 188, in __init__
2023-12-20 11:41:11.634 Error: zigate: self.certified_devices_update()
2023-12-20 11:41:11.634 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/Classes/WebServer/rest_PluginUpgrade.py", line 74, in certified_devices_update
2023-12-20 11:41:11.634 Error: zigate: if distro.id() in ("debian", "raspbian") and distro.version() >= '12':
2023-12-20 11:41:11.634 Error: zigate: AttributeError: module 'distro' has no attribute 'id'
2023-12-20 11:41:20.248 Status: zigate: ==> Transport Mode switch to full mode
2023-12-20 11:41:20.249 Status: zigate: ZiGate Classic PDM (legacy)
2023-12-20 11:41:20.249 Status: zigate: Installer Version Number: 0321
2023-12-20 11:41:20.250 Status: zigate: Branch Version: ==> Production <==
2023-12-20 11:41:30.147 Status: zigate: Zigbee Coordinator ieee: 00158d0003af5c63 , short addr: 0000
2023-12-20 11:41:30.148 Status: zigate: Network state UP, PANID: d02c extPANID: 0xef85caa1640d6225 Channel: 11
2023-12-20 11:41:35.085 Status: zigate: Request Disabling Accepting new Hardware
2023-12-20 11:41:35.670 Status: zigate: Accepting new Hardware: Disable (Off)
2023-12-20 11:41:40.095 Status: zigate: coordinator set to Certification : 1/CE -> CE
2023-12-20 11:41:40.394 Status: zigate: TxPower Attenuation: 0 dBm
2023-12-20 11:41:40.094 Error: zigate: Call to function 'onHeartbeat' failed, exception details:
2023-12-20 11:41:40.096 Error: zigate: Traceback (most recent call last):
2023-12-20 11:41:40.096 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1508, in onHeartbeat
2023-12-20 11:41:40.096 Error: zigate: _plugin.onHeartbeat()
2023-12-20 11:41:40.096 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1010, in onHeartbeat
2023-12-20 11:41:40.096 Error: zigate: zigateInit_Phase3(self)
2023-12-20 11:41:40.096 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1206, in zigateInit_Phase3
2023-12-20 11:41:40.096 Error: zigate: self.webserver.update_configureReporting(self.configureReporting )
2023-12-20 11:41:40.096 Error: zigate: AttributeError: 'NoneType' object has no attribute 'update_configureReporting'
2023-12-20 11:42:00.374 EventSystem: Event triggered: texte_1
2023-12-20 11:42:00.382 EventSystem: Event triggered: chauffage_sdb_5
2023-12-20 11:42:00.405 Dummy: Light/Switch (chauffage_sdb)
2023-12-20 11:42:00.609 Activating Scene/Group: [Chauf_Eco]
2023-12-20 11:42:00.610 Activating Scene/Group Device: chauf_sdb_1 (On)
2023-12-20 11:42:00.661 Activating Scene/Group Device: chauf_sdb_2 (On)
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème connexion à la zigate

Message par pipiche »

c'est du debian standard, ?

car a priori il y a un soucis ici

Code : Tout sélectionner

2023-12-20 11:41:11.634 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/Classes/WebServer/rest_PluginUpgrade.py", line 74, in certified_devices_update
2023-12-20 11:41:11.634 Error: zigate: if distro.id() in ("debian", "raspbian") and distro.version() >= '12':
2023-12-20 11:41:11.634 Error: zigate: AttributeError: module 'distro' has no attribute 'id'
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
Tc2112
Messages : 44
Inscription : 12 août 2023, 15:48

Re: Problème connexion à la zigate

Message par Tc2112 »

Oui c'est du standard, la version c'est :
debian GNU/Linux 11 Bullseye

C'est étonnant car tout fonctionnait bien avant, je n'ai pas modifié la version debian.

tu as une idée de la façon de réparer ?
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème connexion à la zigate

Message par pipiche »

peux-tu faire les 2 choses suivantes:

(1)

Code : Tout sélectionner

sudo python3 -m pip install distro --upgrade
(2)

Code : Tout sélectionner

python3
quand tu as le prompt >>> alors tu tapes

Code : Tout sélectionner

import distro
distro.id()
Peux-tu partager le resultat ?
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
Tc2112
Messages : 44
Inscription : 12 août 2023, 15:48

Re: Problème connexion à la zigate

Message par Tc2112 »

Bonjour pipiche,
voici les résultats demandés :

Code : Tout sélectionner

freebox@Domo:~$ sudo python3 -m pip install distro --upgrade
Requirement already satisfied: distro in /usr/local/lib/python3.9/dist-packages (1.8.0)
Collecting distro
  Using cached distro-1.8.0-py3-none-any.whl (20 kB)
  Using cached distro-1.7.0-py3-none-any.whl (20 kB)

freebox@Domo:~$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import distro
>>> distro.id()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'distro' has no attribute 'id'
>>>
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème connexion à la zigate

Message par pipiche »

il ne s'agit pas d'un problème plugin, mais plutot un problème OS.

Il y a du avoir des changements (mise-à-jour debian, installation de nouveau package) qui impact cela.
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
Tc2112
Messages : 44
Inscription : 12 août 2023, 15:48

Re: Problème connexion à la zigate

Message par Tc2112 »

Ok, merci pour ton retour, aurais tu une solution pour réparer ca ?
merci
Répondre