Page 1 sur 1
[Résolu] Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 27 févr. 2022, 22:09
par Zang2
Bonsoir à tous,
Je me suis attaqué ce weekend à la mise en route de ma PiZiGate sur un Raspberry Pi Zero W. Je ne m'étais pas attendu à temps galérer !

Mon but était de l'intégrer à une fraiche installation de Domoticz.
Après avoir lu et appliqué tout ce que j'ai pu trouvé, j'en suis rendu au stade suivant:
- Le PiZiGate_test passe. Tout semble ok. Packet envoyé. Et un packet de 11 octets est reçu. (un peu étonnamment toujours le même :
ff ff ff ff ff ff ff ff ff ff 00). Sur le port serial /dev/ttyAMA0
- Dans Domoticz c'est moins glorieux. J'ai réussi à configurer le plugin et à ajouter la Zigate. Dans la page web du plugin, je vois que des octets sont envoyé (Tx), par contre le compteur de réception reste toujours à 0 (Rx). Et dans les logs ça me dit:
2022-02-27 20:58:19.052 Error: ZiGate: [102] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
2022-02-27 20:58:19.182 Error: ZiGate: [ ] Stop the plugin and check ZiGate.
- Enfin j'ai essayé de mettre à jour la PiZiGate. Lorsque je la passe en mode flash la LED blue s'éteind (pas moins fort, mais totalement OFF). Par contre la mise à jour avec JennicModuleProgrammer me retour :
Error setting baudrate
Parmi tout ce que j'ai pu lire il n'y a qu'une chose sur laquelle j'ai un doute :
Mettre l'accessibilité de l'adaptateur série (serial adapter) à 'No' en utilisant raspi-config option P6 (Interfacing options / serial): sudo raspi-config
Dans les paramètres séries dans raspi-config il y a 2 écrans, j'ai mis le 1er à No et le 2e à Yes.
Je ne sais plus trop quoi tester ! D'avance merci pour votre aide !
Re: Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 28 févr. 2022, 08:09
par pipiche
Je te suggère de voir avec le vendeur de la zigate. Car il ne s’agit pas d’un problème plug-in
Envoyé de mon iPhone en utilisant Tapatalk
Re: Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 02 mars 2022, 21:16
par Zang2
Re: Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 08 mars 2022, 21:33
par Zang2
Bonsoir,
N'ayant pas trop de nouvelle coté Zigate, j'ai essayé de tout reprendre a zéro, notamment car j'avais envie de tester les différentes options pour désactiver le BT des Raspberry, que j'ai pu trouver ici :
https://www.framboise314.fr/le-port-ser ... as-simple/
Cependant, cette fois je fais face à un nouveau souci. Une fois tout installé et configuré, dés que j'ajoute un hardware "zigate plugin", alors l'interface web crash. Le seul moyen que j'ai de retrouver un domoticz fonctionnel est d'effacer la domoticz.db
Extrait des logs :
Code : Tout sélectionner
2022-03-07 22:01:35.886 Status: EventSystem: Started
2022-03-07 22:01:38.077 Status: myZigate: Initialized version 5.1, author 'zaraki673 pipiche38'
2022-03-07 22:01:38.086 myZigate: ZiGate plugin started!
2022-03-07 22:01:38.093 myZigate: load PluginConf
2022-03-07 22:01:38.097 myZigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
2022-03-07 22:01:38.097 myZigate: is_domoticz_db_available: True
2022-03-07 22:01:38.099 myZigate: /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-02.json timestamp is 1646685554.9938745
2022-03-07 22:01:38.099 myZigate: Dz PluginConf is older than Json Dz: 0 Json: 1646685554.9938745
2022-03-07 22:01:38.101 myZigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
2022-03-07 22:01:38.101 myZigate: is_domoticz_db_available: True
2022-03-07 22:01:38.105 Status: myZigate: filename set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-02.json
2022-03-07 22:01:38.105 Status: myZigate: pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2022-03-07 22:01:38.105 Status: myZigate: homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2022-03-07 22:01:38.106 Status: myZigate: pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigate/Data/
2022-03-07 22:01:38.106 Status: myZigate: pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/
2022-03-07 22:01:38.106 Status: myZigate: pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigate/OTAFirmware/
2022-03-07 22:01:38.106 Status: myZigate: pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigate/Reports/
2022-03-07 22:01:38.107 Status: myZigate: pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigate/www/
2022-03-07 22:01:38.107 Status: myZigate: pluginLogs set to /home/pi/domoticz/plugins/Domoticz-Zigate/Logs/
2022-03-07 22:01:38.108 myZigate: Starting LoggingManagement thread
2022-03-07 22:01:38.109 myZigate: start_logging_thread
2022-03-07 22:01:38.111 myZigate: logging_thread - listening
2022-03-07 22:01:38.113 Status: myZigate: Log history not found, no error logged
2022-03-07 22:01:38.131 Status: myZigate: Zigate plugin stable5-5.1.018 started
2022-03-07 22:01:38.223 Error: Domoticz(pid:1862, tid:1880('myZigate')) received fatal signal 11 (Segmentation fault)
2022-03-07 22:01:38.224 Error: siginfo address=0x746, address=0xb6a30b20
2022-03-07 22:01:49.175 Error: Did not find stack frame for thread (LWP 1880)), printing full gdb output:
2022-03-07 22:01:49.175 Error: > gdb: warning: Couldn't determine a path for the index cache directory.
2022-03-07 22:01:49.176 Error: > [New LWP 1863]
2022-03-07 22:01:49.176 Error: > [New LWP 1869]
2022-03-07 22:01:49.176 Error: > [New LWP 1870]
S'en suis une long list d'erreur (groupe de message par Thread).
Dont :
Code : Tout sélectionner
2022-03-07 22:01:49.190 Error: >
2022-03-07 22:01:49.190 Error: > Thread 14 (Thread 0xaeefb200 (LWP 1880) "myZigate"):
2022-03-07 22:01:49.190 Error: > #0 0xb68ab4d4 in __GI___wait4 (pid=1886, stat_loc=0xb0f29d08, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
2022-03-07 22:01:49.190 Error: > #1 0x0029121c in dumpstack_gdb(bool) ()
2022-03-07 22:01:49.191 Error: > #2 0x002917e8 in signal_handler(int, siginfo_t*, void*) ()
2022-03-07 22:01:49.191 Error: > #3 <signal handler called>
2022-03-07 22:01:49.191 Error: > #4 raise (sig=11) at ../sysdeps/unix/sysv/linux/raise.c:50
2022-03-07 22:01:49.191 Error: > #5 <signal handler called>
2022-03-07 22:01:49.191 Error: > #6 0x00000014 in ?? ()
2022-03-07 22:01:49.191 Error: > #7 0xb591d47c in _PyEval_EvalFrameDefault () from /lib/arm-linux-gnueabihf/libpython3.9.so
2022-03-07 22:01:49.191 Error: > #8 0xac2a89b0 in ?? ()
2022-03-07 22:01:49.192 Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-03-07 22:01:49.192 Error: >
2022-03-07 22:01:49.192 Error: > Thread 13 (Thread 0xaf6fc200 (LWP 1879) "MainWorkerRxMsg"):
Je n'ai pourtant pas l'impression d'avoir fait différemment de la 1ere fois, 1ere fois ou je n'avais pas rencontré ces soucis.
(Seul différence, j'ai résinstallé Rasbian, et c'est donc une version plus récente de l'OS).
D'avance merci pour votre aide !
Re: Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 08 mars 2022, 21:59
par Keros
Réinstaller Raspbian

Avec une version plus récente

Tu as vu ce sujet :
viewtopic.php?f=8&t=11863
Par contre, évite de mélanger les choses différentes dans un même sujet, Si le premier est terminé, indique [Résolu] dans le titre

Re: Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 09 mars 2022, 08:22
par pipiche
Désolé de lire que tu n’as pas de retour côté Zigate.
Pour ce qui est de l’erreur tu peux essayer d’installer la bêta de DomoticZ qui devrait corriger ça.
Envoyé de mon iPhone en utilisant Tapatalk
Re: Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 09 mars 2022, 21:46
par Zang2
Merci pour vos retours ! Désolé j'étais passé à coté des problemes avec Bulleyes.
J'ai downgradé python en 3,8 et le plugin foncitonne a nouveau.
Me voici donc de retour à la case départ...
Code : Tout sélectionner
2022-03-09 21:43:34.645 myZigate: Plugin Database: DeviceList-2.txt
2022-03-09 21:43:34.462 Status: myZigate: Initialized version 5.1, author 'zaraki673 pipiche38'
2022-03-09 21:43:34.500 Status: myZigate: filename set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-02.json
2022-03-09 21:43:34.500 Status: myZigate: pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2022-03-09 21:43:34.500 Status: myZigate: homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2022-03-09 21:43:34.501 Status: myZigate: pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigate/Data/
2022-03-09 21:43:34.501 Status: myZigate: pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/
2022-03-09 21:43:34.501 Status: myZigate: pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigate/OTAFirmware/
2022-03-09 21:43:34.501 Status: myZigate: pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigate/Reports/
2022-03-09 21:43:34.502 Status: myZigate: pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigate/www/
2022-03-09 21:43:34.502 Status: myZigate: pluginLogs set to /home/pi/domoticz/plugins/Domoticz-Zigate/Logs/
2022-03-09 21:43:34.522 Status: myZigate: Zigate plugin stable5-5.1.018 started
2022-03-09 21:43:34.687 Status: myZigate: DeviceConf loaded - 24 confs loaded
2022-03-09 21:43:35.822 myZigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
2022-03-09 21:43:35.822 myZigate: is_domoticz_db_available: True
2022-03-09 21:43:35.883 myZigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
2022-03-09 21:43:35.883 myZigate: is_domoticz_db_available: True
2022-03-09 21:43:35.908 myZigate: Set PiZigate Channels 11 and 17
2022-03-09 21:43:35.909 myZigate: + GPIO(RUN) OK
2022-03-09 21:43:35.909 myZigate: + GPIO(FLASH) OK
2022-03-09 21:43:35.824 Status: myZigate: DeviceConf loaded - 326 confs loaded
2022-03-09 21:43:35.825 Status: myZigate: load ListOfDevice
2022-03-09 21:43:35.889 Status: myZigate: 0 Entries loaded from /home/pi/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-2.txt
2022-03-09 21:43:35.892 Status: myZigate: Transport mode: PI
2022-03-09 21:43:35.909 Status: myZigate: Switch PiZigate in RUN mode
2022-03-09 21:43:35.886 Error: myZigate: switchPiZigate_mode - unable to find distribution: Assuming debian, Error: module 'platform' has no attribute 'dist'
2022-03-09 21:43:36.455 myZigate: Connection open: Serial<id=0xa979c3b8, open=True>(port='/dev/serial0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)
2022-03-09 21:43:36.427 Status: myZigate: ZigateTransport: Serial Connection open: Serial<id=0xa979c3b8, open=True>(port='/dev/serial0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)
2022-03-09 21:43:36.442 Status: myZigate: ZigateTransport: writer_thread Thread start.
2022-03-09 21:43:36.454 Status: myZigate: ZigateTransport: thread_processing_and_sending Thread start.
2022-03-09 21:43:36.456 Status: myZigate: Start Web Server connection
2022-03-09 21:43:36.733 Status: myZigate: Web backend for Web User Interface started on port: 9440
2022-03-09 21:44:36.062 Error: myZigate: [ 61] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
2022-03-09 21:44:36.134 Error: myZigate: [ ] Stop the plugin and check ZiGate.
2022-03-09 21:44:37.067 Error: myZigate: [ 62] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
2022-03-09 21:44:37.149 Error: myZigate: [ ] Stop the plugin and check ZiGate.
2022-03-09 21:44:38.073 Error: myZigate: [ 63] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
2022-03-09 21:44:38.159 Error: myZigate: [ ] Stop the plugin and check ZiGate.
2022-03-09 21:44:39.088 Error: myZigate: [ 64] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
2022-03-09 21:44:39.164 Error: myZigate: [ ] Stop the plugin and check ZiGate.
2022-03-09 21:44:40.097 Error: myZigate: [ 65] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
2022-03-09 21:44:40.182 Error: myZigate: [ ] Stop the plugin and check ZiGate.
2022-03-09 21:44:41.067 Error: myZigate: [ 66] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
2022-03-09 21:44:41.153 Error: myZigate: [ ] Stop the plugin and check ZiGate.
2022-03-09 21:44:42.071 Error: myZigate: [ 67] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work
J'ai donc toujours un souci avec ma ZiGate.
Je vais essayer de la retourner, a part un probleme hardware, je vois vraiment plus d'autres options.
Merci pour votre aide.
Re: Probleme configuration PiZiGate sous Domoticz (Raspberry Pi Zero W)
Publié : 25 mars 2022, 21:46
par Zang2
C'était bien un soucis hardware de la Zigate. Tout est rentré dans l'ordre !
https://zigate.fr/forum/topic/pizigate- ... -domoticz/
Merci à pipiche pour ce plugin au top