Bienvenue sur le forum de la ZiGate !

Ici, nous échangeons sur les produits ZiGate (matériellement) et les firmware.

Pour que vous puissiez gagner du temps, je vous conseille de visiter, dans un premier temps, les forums et documentations des plugins et box domotique que vous avez choisi :

Jeedom :

Forum : https://community.jeedom.com/
Plugin ZiGate : https://github.com/Jeedom-Zigate/jeedom-plugin-zigate
Plugin Abeille : https://github.com/KiwiHC16/Abeille + http://kiwihc16.free.fr/

Domoticz :

Forum Francophonehttps://easydomoticz.com/forum/viewforum.php?f=28
Forum Anglophonehttps://www.domoticz.com/forum/viewforum.php?f=68
Développeur: @pipiche38 disponible sur keybase.io en chat

EEdomus :

Forum : https://forum.eedomus.com/

Home-assistant :

Plugin : https://github.com/doudz/homeassistant-zigate
Zigpy : https://www.home-assistant.io/integrations/zha/

Veuillez pour créer des messages et des sujets de discussion.

Problème installation PiZigate - Erreur 11

Bonjour,
J'ai un soucis avec ma Pi Zigate sur RPi 4.

C'est la première fois que j'installe une PiZigate donc je suppose que je fait quelque chose de mal.

https://zigate.fr/documentation/compatibilite-raspberry-pi-4-b/
https://zigate.fr/documentation/parametrer-la-pizigate/

J'ai suivi le tuto compatibilité pour RPi 4 et j'ai installé le nouvel outil de test avant de tenter une inclusion dans mon Jeedom.

Voici le résultat du test :

RPI Model searching ...
+ RPI 4 detected
Verifying /boot/cmdline.txt ...
+ /boot/cmdline.txt seems to be OK
Verifying /boot/cmdline.txt ...
+ /boot/config.txt seems to be OK
Searching /dev/ttyAMA0...
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
+ Port : /dev/ttyAMA0 is not used
Verif GPIOs ...
+ GPIO 0 (RESET) --> OK
- GPIO 2 (FLASH) --> NOK
Config GPIOs ...
+ GPIO 0 (RESET) --> OK
- GPIO 2 (FLASH) --> NOK
Opening : /dev/ttyAMA0 ...
+ /dev/ttyAMA0 opened --> OK
+ Packet 01 02 10 10 02 10 02 10 10 03 sent --> OK
- No packet received - size sent : 11 - error : 11

J'ai essayé une inclusion dans Jeedom et j'ai cette erreur :

/usr/local/lib/python3.7/dist-packages/zigate/core.py:2394: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # GPIO0
[2020-08-21 11:24:03][ERROR][zigate](ZiGate-Listen) : OOPS connection lost, reconnect...
[2020-08-21 11:24:28][ERROR][zigate](MainThread) : Failed to get network state
[2020-08-21 11:24:51][ERROR][zigate](MainThread) : Failed to start network
Traceback (most recent call last):
File "/var/www/html/plugins/zigate/core/class/../../resources/zigated/zigated.py", line 336, in <module>
if version < '3.0d':
TypeError: '<' not supported between instances of 'NoneType' and 'str'
/usr/local/lib/python3.7/dist-packages/zigate/core.py:2386: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(27, GPIO.OUT) # GPIO2
[2020-08-21 11:30:07][ERROR][zigate](ZiGate-Listen) : OOPS connection lost, reconnect...
[2020-08-21 11:30:32][ERROR][zigate](MainThread) : Failed to get network state
[2020-08-21 11:30:55][ERROR][zigate](MainThread) : Failed to start network
Exception in thread ZiGate-Listen:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/zigate/transport.py", line 254, in listen
self.serial.write(data)
File "/usr/local/lib/python3.7/dist-packages/serial/serialposix.py", line 537, in write
n = os.write(self.fd, d)
TypeError: an integer is required (got type NoneType)
Traceback (most recent call last):
File "/var/www/html/plugins/zigate/core/class/../../resources/zigated/zigated.py", line 336, in <module>
if version < '3.0d':
TypeError: '<' not supported between instances of 'NoneType' and 'str'

Et voici un résultat du lancement du plugin Zigate sur Jeedom en mode debug :

[2020-08-22 14:28:28][DEBUG] : callZiGate get_version_text
[2020-08-22 14:28:28][DEBUG] : result callZiGate
[2020-08-22 14:28:28][DEBUG] : callZiGate get_libversion
[2020-08-22 14:28:28][DEBUG] : result callZiGate
[2020-08-22 14:28:32][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-08-22 14:28:33][INFO] : Lancement démon zigate : /usr/bin/python3 /var/www/html/plugins/zigate/core/class/../../resources/zigated/zigated.py  --device /dev/ttyAMA0 --gpio 1 --loglevel debug --apikey Aii6... --pid /tmp/jeedom/zigate/daemon.pid --socket /tmp/jeedom/zigate/daemon.sock --callback http://127.0.0.1:80/plugins/zigate/core/php/jeeZiGate.php --sharedata 1 --enable_led 1
[2020-08-22 14:28:33][INFO][root](MainThread) : Start zigated
[2020-08-22 14:28:33][INFO][root](MainThread) : Log level : debug
[2020-08-22 14:28:33][INFO][root](MainThread) : Socket : /tmp/jeedom/zigate/daemon.sock
[2020-08-22 14:28:33][INFO][root](MainThread) : PID file : /tmp/jeedom/zigate/daemon.pid
[2020-08-22 14:28:33][INFO][root](MainThread) : Apikey : Aii...
[2020-08-22 14:28:33][INFO][root](MainThread) : Device : /dev/ttyAMA0
[2020-08-22 14:28:33][INFO][root](MainThread) : Callback : http://127.0.0.1:80/plugins/zigate/core/php/jeeZiGate.php
[2020-08-22 14:28:33][INFO][root](MainThread) : Python version : 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0]
[2020-08-22 14:28:33][INFO][root](MainThread) : zigate version : 0.40.5
[2020-08-22 14:28:33][INFO][root](MainThread) : Plugin Abeille détecté, vérification de l'état
[2020-08-22 14:28:33][INFO][root](MainThread) : Ok, le plugin Abeille ne semble pas en fonctionnement.
[2020-08-22 14:28:33][DEBUG][root](MainThread) : Writing PID 29494 to /tmp/jeedom/zigate/daemon.pid
[2020-08-22 14:28:33][DEBUG][root](MainThread) : Send to test to jeedom
[2020-08-22 14:28:33][DEBUG][root](MainThread) : Send to jeedom :  {'action': 'test'}
[2020-08-22 14:28:33][DEBUG] : Array (     [action] => test )
[2020-08-22 14:28:33][DEBUG][root](MainThread) : Jeedom reply :  {'success': True}
[2020-08-22 14:28:33][INFO][root](MainThread) : Démarrage ZiGate /dev/ttyAMA0
/usr/local/lib/python3.7/dist-packages/zigate/core.py:2386: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(27, GPIO.OUT)  # GPIO2
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : Try loading persistent file
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : Trying to load /var/www/html/plugins/zigate/core/class/../../resources/zigated/zigate.json
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : Load neighbours cache: []
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : Load success
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : REQUEST : 0x0018 b'\x01'
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : Msg to send b'001800011801'
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : Encoded Msg to send b'010210180210021118021103'
[2020-08-22 14:28:34][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0018
[2020-08-22 14:28:34][INFO] : Démon zigate lancé
[2020-08-22 14:28:39][WARNING][zigate](MainThread) : No response after command 0x0018 (1)
[2020-08-22 14:28:39][DEBUG][zigate](MainThread) : REQUEST : 0x0010
[2020-08-22 14:28:39][DEBUG][zigate](MainThread) : Msg to send b'0010000010'
[2020-08-22 14:28:39][DEBUG][zigate](MainThread) : Encoded Msg to send b'01021010021002101003'
[2020-08-22 14:28:39][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0010
[2020-08-22 14:28:44][WARNING][zigate](MainThread) : No response after command 0x0010 (2)
[2020-08-22 14:28:44][WARNING][zigate](MainThread) : Failed to retrieve zigate firmware version
[2020-08-22 14:28:44][DEBUG][zigate](MainThread) : REQUEST : 0x0021 b'\x07\x18\xc8\x00'
[2020-08-22 14:28:44][DEBUG][zigate](MainThread) : Msg to send b'00210004f20718c800'
[2020-08-22 14:28:44][DEBUG][zigate](MainThread) : Encoded Msg to send b'0102102102100214f2021718c8021003'
[2020-08-22 14:28:44][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0021
[2020-08-22 14:28:49][WARNING][zigate](MainThread) : No response after command 0x0021 (3)
[2020-08-22 14:28:49][DEBUG][zigate](MainThread) : REQUEST : 0x0023 b'\x00'
[2020-08-22 14:28:49][DEBUG][zigate](MainThread) : Msg to send b'002300012200'
[2020-08-22 14:28:49][DEBUG][zigate](MainThread) : Encoded Msg to send b'010210230210021122021003'
[2020-08-22 14:28:49][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0023
[2020-08-22 14:28:54][WARNING][zigate](MainThread) : No response after command 0x0023 (4)
[2020-08-22 14:28:54][DEBUG][zigate](MainThread) : Check network state
[2020-08-22 14:28:54][DEBUG][zigate](MainThread) : REQUEST : 0x0009
[2020-08-22 14:28:54][DEBUG][zigate](MainThread) : Msg to send b'0009000009'
[2020-08-22 14:28:54][DEBUG][zigate](MainThread) : Encoded Msg to send b'010210021902100210021903'
[2020-08-22 14:28:54][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0009
[2020-08-22 14:28:59][WARNING][zigate](MainThread) : No response after command 0x0009 (5)
[2020-08-22 14:28:59][ERROR][zigate](MainThread) : Failed to get network state
[2020-08-22 14:28:59][DEBUG][zigate](MainThread) : Network is down, start it
[2020-08-22 14:28:59][DEBUG][zigate](MainThread) : REQUEST : 0x0024
[2020-08-22 14:28:59][DEBUG][zigate](MainThread) : Msg to send b'0024000024'
[2020-08-22 14:28:59][DEBUG][zigate](MainThread) : Encoded Msg to send b'01021024021002102403'
[2020-08-22 14:28:59][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0024
[2020-08-22 14:29:04][WARNING][zigate](MainThread) : No response after command 0x0024 (6)
[2020-08-22 14:29:05][DEBUG][zigate](MainThread) : REQUEST : 0x0009
[2020-08-22 14:29:05][DEBUG][zigate](MainThread) : Msg to send b'0009000009'
[2020-08-22 14:29:05][DEBUG][zigate](MainThread) : Encoded Msg to send b'010210021902100210021903'
[2020-08-22 14:29:05][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0009
[2020-08-22 14:29:10][WARNING][zigate](MainThread) : No response after command 0x0009 (7)
[2020-08-22 14:29:11][DEBUG][zigate](MainThread) : REQUEST : 0x0009
[2020-08-22 14:29:11][DEBUG][zigate](MainThread) : Msg to send b'0009000009'
[2020-08-22 14:29:11][DEBUG][zigate](MainThread) : Encoded Msg to send b'010210021902100210021903'
[2020-08-22 14:29:11][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0009
[2020-08-22 14:29:16][WARNING][zigate](MainThread) : No response after command 0x0009 (8)
[2020-08-22 14:29:17][DEBUG][zigate](MainThread) : REQUEST : 0x0009
[2020-08-22 14:29:17][DEBUG][zigate](MainThread) : Msg to send b'0009000009'
[2020-08-22 14:29:17][DEBUG][zigate](MainThread) : Encoded Msg to send b'010210021902100210021903'
[2020-08-22 14:29:17][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0009
[2020-08-22 14:29:22][WARNING][zigate](MainThread) : No response after command 0x0009 (9)
[2020-08-22 14:29:22][ERROR][zigate](MainThread) : Failed to start network
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : REQUEST : 0x0011
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Msg to send b'0011000011'
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Encoded Msg to send b'01021011021002101103'
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Auto saving /var/www/html/plugins/zigate/core/class/../../resources/zigated/zigate.json
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Saving persistent file
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Acquire Lock to save persistent file
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Release Lock of persistent file
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : REQUEST : 0x0010
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Msg to send b'0010000010'
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Encoded Msg to send b'01021010021002101003'
[2020-08-22 14:29:22][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0010
[2020-08-22 14:29:27][WARNING][zigate](MainThread) : No response after command 0x0010 (10)
[2020-08-22 14:29:27][DEBUG][zigate](MainThread) : REQUEST : 0x0018 b'\x01'
[2020-08-22 14:29:27][DEBUG][zigate](MainThread) : Msg to send b'001800011801'
[2020-08-22 14:29:27][DEBUG][zigate](MainThread) : Encoded Msg to send b'010210180210021118021103'
[2020-08-22 14:29:27][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0018
[2020-08-22 14:29:32][WARNING][zigate](MainThread) : No response after command 0x0018 (11)
[2020-08-22 14:29:32][DEBUG][zigate](MainThread) : REQUEST : 0x0010
[2020-08-22 14:29:32][DEBUG][zigate](MainThread) : Msg to send b'0010000010'
[2020-08-22 14:29:32][DEBUG][zigate](MainThread) : Encoded Msg to send b'01021010021002101003'
[2020-08-22 14:29:32][DEBUG][zigate](MainThread) : Waiting for status message for command 0x0010
[2020-08-22 14:29:37][WARNING][zigate](MainThread) : No response after command 0x0010 (12)
[2020-08-22 14:29:37][WARNING][zigate](MainThread) : Failed to retrieve zigate firmware version
[2020-08-22 14:29:37][INFO][root](MainThread) : Firmware ZiGate : None
Traceback (most recent call last):
File "/var/www/html/plugins/zigate/core/class/../../resources/zigated/zigated.py", line 336, in <module>
if version < '3.0d':
TypeError: '<' not supported between instances of 'NoneType' and 'str'

 

Pouvez-vous m'aider ?
Je ne trouve pas de solution après avoir cherché sur le forum.
En fait je ne trouve pas de cas similaire où le GPIO 2 (Flash) est NOK.

Merci d'avance pour votre aide.

J'ai essayé de faire une maj du firmware via le plugin Jeedom :

Execution de 'updateFirmware.sh'
Vérifications préliminaires
= Ok
Execution de 'updateFirmware.sh'
Vérifications préliminaires
= Ok
Lancement de la programmation du firmware
- Firmware: ZiGate_v3.1c.bin
- Port tty: /dev/ttyAMA0
JennicModuleProgrammer Version: 0.6 (r56124)
Setting baudrate: 115200
Error setting baudrate
- ERREUR: Programmation impossible
= ATTENTION !!!
= Quelque chose s'est mal passé.
= Veuillez vérifier le log ci-dessus.

Bonjour,

Le problème vient du fait que le GPIO 2 ne passe pas en OK.

Je vous ai donc envoyé un mail pour échange standard.

Fred

Bonjour,

Après plusieurs mois de fonctionnement, ma Pizigate qui est détecté par le rasp pi4, ne l'est plus dans Home Assistant (V0.114.4), auriez-vous une idée ?
Je précise que les tests sur le Rasp on l'air bon (tout OK, réception des paquets sur dev/serial0).

Config : Raspberry PI4, Raspbian GNU/Linux 10, docker version 19.03.12, HA V0.114.4, superviseur V242

Merci beaucoup !

LoGoS

Translate »