Page 1 sur 1

Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 09:46
par fjum
Depuis plusieurs jours, mon plugin Zigate fait ces erreurs au démarrage.

Je suis sur la branche beta du plugin et sur la branche beta de domoticz. Sur les plus récentes mises à jour.

A priori, ces erreurs ne sont pas bloquantes.

Mais bon, ça ne me plait pas.

Y a-t-il qqchose à faire ?



2020-04-07 07:29:13.558 Error: Plugin: Connection Exception: 'resolve: Host not found (non-authoritative), try again later' connecting to 'api.openaq.org:443'
2020-04-07 07:29:13.729 Error: (PiZigate) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'setZigateIEEE''.
2020-04-07 07:29:13.729 Error: (PiZigate) ----> Line 914 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-04-07 07:29:13.729 Error: (PiZigate) ----> Line 479 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-04-07 07:29:13.729 Error: (PiZigate) ----> Line 309 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/Transport.py', function onMessage
2020-04-07 07:29:13.729 Error: (PiZigate) ----> Line 511 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/Transport.py', function processFrame
2020-04-07 07:29:13.729 Error: (PiZigate) ----> Line 483 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function processFrame
2020-04-07 07:29:13.729 Error: (PiZigate) ----> Line 101 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/input.py', function ZigateRead
2020-04-07 07:29:13.729 Error: (PiZigate) ----> Line 672 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/input.py', function Decode8024

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 09:53
par pipiche
Merci de donner un peu plus d'information, ma boule de cristal est confinée .

Notamment:

- Version et branche du plugin ?
- Les logs depuis le lancement du plugin

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 10:12
par fjum
plugin : branche beta version 4.8.010, dernier git pull hier.
Domoticz branche beta version 11875 (la dernière).

2020-04-07 10:06:47.477 (PiZigate) Plugin Restart command : http://127.0.0.1:8080/json.htm?type=com ... atimeout=0
2020-04-07 10:06:47.650 (PiZigate) onDisconnect - Closing Name: 'Zigate Server Connection', Transport: 'TCP/IP', Protocol: 'HTTP', Address: '', Port: '9440', Baud: -1, Connected: False, Parent: 'None'
2020-04-07 10:06:51.435 (PiZigate) DomoticzVersion: 2020.1 (build 11875)
2020-04-07 10:06:51.481 Status: (PiZigate) --> Config for CLEODE/ZMOVE
...
2020-04-07 10:06:51.521 Status: (PiZigate) --> Config for Heiman/SmokeSensor-N
2020-04-07 10:06:51.521 Status: (PiZigate) load ListOfDevice
2020-04-07 10:07:04.433 Status: (PiZigate) Request Disabling Accepting new Hardware
2020-04-07 10:07:04.534 Status: (PiZigate) Major Version Num: 0003
2020-04-07 10:07:04.534 Status: (PiZigate) Installer Version Number: 031c
2020-04-07 10:07:05.037 Status: (PiZigate) Accepting new Hardware: Disable
2020-04-07 10:07:05.139 Status: (PiZigate) Zigate addresses ieee: 00158d0003af5f2f , short addr: 0000
2020-04-07 10:07:05.139 Status: (PiZigate) Network state UP, PANID: 2c97 extPANID: 0x206fd6ed7e651701 Channel: 11
2020-04-07 10:07:05.261 Status: (PiZigate) Number of devices recently active in Zigate = 11
2020-04-07 10:07:09.421 (PiZigate) Switch Blue Led On
2020-04-07 10:07:09.422 Status: (PiZigate) Zigate set to Certification : FCC
2020-04-07 10:07:09.422 Status: (PiZigate) Start Web Server connection
2020-04-07 10:07:09.443 Status: (PiZigate) Web backend for Web User Interface started on port: 9440
2020-04-07 10:07:09.443 Status: (PiZigate) Plugin with Zigate firmware 031c correctly initialized
2020-04-07 10:07:09.646 Status: (PiZigate) TxPower Attenuation : 0 dBm
2020-04-07 10:08:26.160 Status: (PiZigate) Trigger a Topology Scan
2020-04-07 10:09:47.442 Status: (PiZigate) Trigger a Energy Level Scan

Et là je n'ai pas d'erreur.

Par contre, quand je reboote le pi, j'en ai une

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 10:15
par fjum
Quand je fais un reboot

2020-04-07 10:13:51.410 Status: (PiZigate) load ListOfDevice
2020-04-07 10:13:51.575 Status: (PiZigate) Entries loaded from /home/pi/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-60.txt : 21
2020-04-07 10:13:51.594 Status: (PiZigate) Transport mode: PI
2020-04-07 10:13:51.627 Status: (PiZigate) Python version: ['3.7.3 (default, Apr 3 2019, 05:39:12) ', '[GCC 8.2.0]'] dist: ('debian', '10.2', '') linux_distribution: ('debian', '10.2', '') system: Linux machine: armv7l platform: Linux-4.19.75-v7l+-armv7l-with-debian-10.2 uname: uname_result(system='Linux', node='Domoticz', release='4.19.75-v7l+', version='#1270 SMP Tue Sep 24 18:51:41 BST 2019', machine='armv7l', processor='') version: #1270 SMP Tue Sep 24 18:51:41 BST 2019 mac_ver: ('', ('', '', ''), '')
2020-04-07 10:13:51.752 Status: (PiZigate) Connection Name: Zigate, Transport: Serial, Address: /dev/serial0
2020-04-07 10:13:51.752 Status: (PiZigate) Connection open: Name: 'ZiGate', Transport: 'Serial', Protocol: 'None', Address: '/dev/serial0', Port: '', Baud: 115200, Connected: False, Parent: 'None'
2020-04-07 10:13:51.922 Status: (PiZigate) Start Network - Formed new network
2020-04-07 10:13:51.922 Status: (PiZigate) Non 'Factory new' Restart status: RUNNING
2020-04-07 10:13:51.922 Error: (PiZigate) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'setZigateIEEE''.
2020-04-07 10:13:51.922 Error: (PiZigate) ----> Line 914 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-04-07 10:13:51.922 Error: (PiZigate) ----> Line 479 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-04-07 10:13:51.922 Error: (PiZigate) ----> Line 309 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/Transport.py', function onMessage
2020-04-07 10:13:51.922 Error: (PiZigate) ----> Line 511 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/Transport.py', function processFrame
2020-04-07 10:13:51.922 Error: (PiZigate) ----> Line 483 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function processFrame
2020-04-07 10:13:51.922 Error: (PiZigate) ----> Line 101 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/input.py', function ZigateRead
2020-04-07 10:13:51.922 Error: (PiZigate) ----> Line 672 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/input.py', function Decode8024
2020-04-07 10:14:37.278 Status: (PiZigate) Request Disabling Accepting new Hardware
2020-04-07 10:14:37.475 Status: (PiZigate) Major Version Num: 0003
2020-04-07 10:14:37.475 Status: (PiZigate) Installer Version Number: 031c
2020-04-07 10:14:38.073 Status: (PiZigate) Accepting new Hardware: Disable
2020-04-07 10:14:38.174 Status: (PiZigate) Zigate addresses ieee: 00158d0003af5f2f , short addr: 0000
2020-04-07 10:14:38.175 Status: (PiZigate) Network state UP, PANID: 2c97 extPANID: 0x206fd6ed7e651701 Channel: 11
2020-04-07 10:14:38.297 Status: (PiZigate) Number of devices recently active in Zigate = 12
2020-04-07 10:14:41.838 (PiZigate) Switch Blue Led On
2020-04-07 10:14:41.839 Status: (PiZigate) Zigate set to Certification : FCC
2020-04-07 10:14:41.839 Status: (PiZigate) Start Web Server connection
2020-04-07 10:14:41.866 Status: (PiZigate) Web backend for Web User Interface started on port: 9440
2020-04-07 10:14:41.866 Status: (PiZigate) Plugin with Zigate firmware 031c correctly initialized
2020-04-07 10:14:42.090 Status: (PiZigate) TxPower Attenuation : 0 dBm

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 10:17
par fjum
Et là, je viens de redémarrer le plugin après le reboot


2020-04-07 10:16:14.210 (PiZigate) + Checkint GPIO PINs
2020-04-07 10:16:14.077 Status: (PiZigate) Entries loaded from /home/pi/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-60.txt : 21
2020-04-07 10:16:14.093 Status: (PiZigate) Transport mode: PI
2020-04-07 10:16:14.110 Status: (PiZigate) Python version: ['3.7.3 (default, Apr 3 2019, 05:39:12) ', '[GCC 8.2.0]'] dist: ('debian', '10.2', '') linux_distribution: ('debian', '10.2', '') system: Linux machine: armv7l platform: Linux-4.19.75-v7l+-armv7l-with-debian-10.2 uname: uname_result(system='Linux', node='Domoticz', release='4.19.75-v7l+', version='#1270 SMP Tue Sep 24 18:51:41 BST 2019', machine='armv7l', processor='') version: #1270 SMP Tue Sep 24 18:51:41 BST 2019 mac_ver: ('', ('', '', ''), '')
2020-04-07 10:16:14.240 Status: (PiZigate) Connection Name: Zigate, Transport: Serial, Address: /dev/serial0
2020-04-07 10:16:14.240 Status: (PiZigate) Connection open: Name: 'ZiGate', Transport: 'Serial', Protocol: 'None', Address: '/dev/serial0', Port: '', Baud: 115200, Connected: False, Parent: 'None'
2020-04-07 10:16:14.406 Status: (PiZigate) Start Network - Formed new network
2020-04-07 10:16:14.406 Status: (PiZigate) Non 'Factory new' Restart status: RUNNING
2020-04-07 10:16:14.406 Error: (PiZigate) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'setZigateIEEE''.
2020-04-07 10:16:14.406 Error: (PiZigate) ----> Line 914 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-04-07 10:16:14.406 Error: (PiZigate) ----> Line 479 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onMessage
2020-04-07 10:16:14.406 Error: (PiZigate) ----> Line 309 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/Transport.py', function onMessage
2020-04-07 10:16:14.406 Error: (PiZigate) ----> Line 511 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/Transport.py', function processFrame
2020-04-07 10:16:14.406 Error: (PiZigate) ----> Line 483 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function processFrame
2020-04-07 10:16:14.406 Error: (PiZigate) ----> Line 101 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/input.py', function ZigateRead
2020-04-07 10:16:14.406 Error: (PiZigate) ----> Line 672 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/input.py', function Decode8024
2020-04-07 10:16:23.934 Status: (PiZigate) Request Disabling Accepting new Hardware
2020-04-07 10:16:24.036 Status: (PiZigate) Major Version Num: 0003
2020-04-07 10:16:24.036 Status: (PiZigate) Installer Version Number: 031c
2020-04-07 10:16:24.541 Status: (PiZigate) Accepting new Hardware: Disable
2020-04-07 10:16:24.643 Status: (PiZigate) Zigate addresses ieee: 00158d0003af5f2f , short addr: 0000
2020-04-07 10:16:24.643 Status: (PiZigate) Network state UP, PANID: 2c97 extPANID: 0x206fd6ed7e651701 Channel: 11
2020-04-07 10:16:24.767 Status: (PiZigate) Number of devices recently active in Zigate = 11
2020-04-07 10:16:28.928 (PiZigate) Switch Blue Led On
2020-04-07 10:16:28.929 Status: (PiZigate) Zigate set to Certification : FCC
2020-04-07 10:16:28.929 Status: (PiZigate) Start Web Server connection
2020-04-07 10:16:28.951 Status: (PiZigate) Web backend for Web User Interface started on port: 9440
2020-04-07 10:16:28.952 Status: (PiZigate) Plugin with Zigate firmware 031c correctly initialized
2020-04-07 10:16:29.155 Status: (PiZigate) TxPower Attenuation : 0 dBm

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 10:19
par fjum
Bref, souvent j'ai l'erreur, et parfois, je ne l'ai pas

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 10:22
par pipiche
je pense que l'erreur arrive uniquement suite à un reboot du Pi , car il y a une manip des GPIOs ...
cela sera corrigé prochainement

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 10:26
par fjum
Je viens de relancer 6 fois de suite le plugin sans faire de reboot depuis tout à l'heure et j'ai toujours l'erreur.

Re: Erreurs au démarrage du plugin

Publié : 07 avr. 2020, 12:26
par fjum
C'est bon. Avec la mise à jour, plus d'erreur.

Merci beaucoup