[Résolu] Problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
Phil35
Messages : 41
Inscription : 08 sept. 2020, 08:34

[Résolu] Problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Phil35 »

Bonjour,
En // d'une plateforme domoticz, que l'on peut qualifier de production, je teste sur une autre plateforme (pi 3) fraichement réinstallé avec la version 11/Bulleye, la version domoticz beta.

J'ai suivi https://zigbeefordomoticz.github.io/wik ... ation.html
pourtant même après redémarrage du pi, le plugin n'apparait pas dans le matériel.
"Le plugin ZigBee for DomoticZ doit apparaître dans la liste des matériels (tout en bas)."

la commande lsusb permet de vérifier la présence de la clé :
Bus 001 Device 007: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]

Réseau de confiance : 127.0.0.*;192.168.6.*

Dans la log de démarrage de domoticz, y a :
(ipv6 est désactivé, j'ai vu dans un github que c'était la cause des messages status ... host not found)

Code : Tout sélectionner

2023-11-24 18:46:26.201  Status: Domoticz V2023.2 (build 15667) (c)2012-2023 GizMoCuz
2023-11-24 18:46:26.201  Status: Build Hash: a5423ce11, Date: 2023-11-23 07:25:26
2023-11-24 18:46:26.201  Status: Startup Path: /home/domoticz/domoticz/
2023-11-24 18:46:26.244  Sunrise: 08:11:00 SunSet: 17:02:00
2023-11-24 18:46:26.244  Day length: 08:51:00 Sun at south: 12:37:00
2023-11-24 18:46:26.244  Civil twilight start: 07:36:00 Civil twilight end: 17:38:00
2023-11-24 18:46:26.244  Nautical twilight start: 06:57:00 Nautical twilight end: 18:16:00
2023-11-24 18:46:26.244  Astronomical twilight start: 06:20:00 Astronomical twilight end: 18:54:00
2023-11-24 18:46:26.317  Status: PluginSystem: Started, Python version '3.9.2', 2 plugin definitions loaded.
2023-11-24 18:46:26.324  Active notification Subsystems: (0/13)
2023-11-24 18:46:26.326  Status: WebServer(HTTP) startup failed on address :: with port: 8080: resolve: Host not found (authoritative) [asio.netdb:1], trying ::
2023-11-24 18:46:26.326  Status: WebServer(HTTP) startup failed on address :: with port: 8080: resolve: Host not found (authoritative) [asio.netdb:1], trying 0.0.0.0
2023-11-24 18:46:26.327  Status: WebServer(HTTP) started on address: 0.0.0.0 with port 8080
2023-11-24 18:46:26.340  Status: WebServer(SSL) startup failed on address :: with port: 443: resolve: Host not found (authoritative) [asio.netdb:1], trying ::
2023-11-24 18:46:26.344  Status: WebServer(SSL) startup failed on address :: with port: 443: resolve: Host not found (authoritative) [asio.netdb:1], trying 0.0.0.0
2023-11-24 18:46:26.347  Status: WebServer(SSL) started on address: 0.0.0.0 with port 443
2023-11-24 18:46:26.352  Starting shared server on: 0.0.0.0:6144
2023-11-24 18:46:26.352  Status: TCPServer: shared server started...
2023-11-24 18:46:26.353  Status: RxQueue: queue worker started...
Je suis preneur de piste pour résoudre ce problème.
Merci bcp

HW: Raspberry Pi 3 Model B Rev 1.2
OS: Debian GNU/Linux 11 (bullseye) aarch64
Kernel: 6.1.21-v8+
Mem: 1Go

domoticz :
Version: 2023.2 (build 15667)
Build Hash: a5423ce11
Compile Date: 2023-11-23 07:25:26
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Dernière modification par Phil35 le 26 nov. 2023, 19:51, modifié 1 fois.
Production : Raspberry Pi 4 Model B Rev 1.2 (OS 10 / buster) + domoticz 2022.2
Production : Raspberry Pi 3 Model B Rev 1.2 (OS 11 / bullseye) + domoticz V2024.7
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Keros »

Tu as quoi comme dossier dans le répertoire plugins de 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
Phil35
Messages : 41
Inscription : 08 sept. 2020, 08:34

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Phil35 »

Merci pour ton temps.

Code : Tout sélectionner

ls -larlt plugins/
total 20
drwxr-xr-x  2 domoticz domoticz 4096 Oct 25 09:40 examples
drwxr-xr-x  3 domoticz domoticz 4096 Oct 25 09:40 AwoxSMP
drwxr-xr-x  5 domoticz domoticz 4096 Nov 24 16:56 .
drwxr-xr-x 17 domoticz domoticz 4096 Nov 24 16:57 Domoticz-Zigbee
drwxr-xr-x  8 domoticz domoticz 4096 Nov 24 20:39 ..
et

Code : Tout sélectionner

# Author: zaraki673 & pipiche38
<plugin key="Zigate" name="Zigbee for domoticz plugin (zigpy enabled)" author="pipiche38" version="7.1">
Production : Raspberry Pi 4 Model B Rev 1.2 (OS 10 / buster) + domoticz 2022.2
Production : Raspberry Pi 3 Model B Rev 1.2 (OS 11 / bullseye) + domoticz V2024.7
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Keros »

Le dossier du plugin est bien présent.

Tu as bien redémarré DomoticZ ?


C'est peut-être la phrase "Le plugin ZigBee for DomoticZ doit apparaître dans la liste des matériels (tout en bas)." qui n'est pas forcément explicite.
Dans la page Matériels de DomoticZ, tu as dans le tableau en haut la liste des plugins installés. La liste des plugins installables et en dessous dans la fenêtre déroulante en face de type. C'est là, que tout en bas de la liste, tu dois avoir la ligne Zigbee for Domoticz plugin (zigpy enabled).
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: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par pipiche »

qu'est qu'il ya dans le repertoire /home/domoticz/domoticz/

peux-tu faire

Code : Tout sélectionner

ls -lR /home/domoticz/domoticz/
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
Phil35
Messages : 41
Inscription : 08 sept. 2020, 08:34

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Phil35 »

Evidemment

Merci beaucoup
Je vais continuer la configuration.
C'est la phrase qui m'a "trompé", ton explication est nickel

Je laisse le sujet ouvert, jusqu'à la fin de la configuration, puis je passerai en résolu si y a pas de écueil
Production : Raspberry Pi 4 Model B Rev 1.2 (OS 10 / buster) + domoticz 2022.2
Production : Raspberry Pi 3 Model B Rev 1.2 (OS 11 / bullseye) + domoticz V2024.7
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Keros »

Je viens de modifier le wiki. Tu peux me dire si c'est plus explicite écrit de cette façon-là ?
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
Phil35
Messages : 41
Inscription : 08 sept. 2020, 08:34

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Phil35 »

- modification du wiki. Oui plus explicite.
Mais c'est de ma faute, j'ai suivi à la lettre ...
le mot "Type" permet de trouver le chemin sans ambiguité
M E R C I

- configuration du plugin
le plugin est visible dans l'onglet "matériel" cf la copie d'écran.
J'ai suivi les instructions de configuration
sauf erreur de ma part "Mettre Initialize ZCoordinator (Erase Memory) à False"
l'option se remet toute seule à false, il me semble
j'ai activé / désactiver le plugin avec le bouton modifier ( je me suis déja fait avoir sur la plateforme de production :-) .. je trouve que c'est perfectible, peut être en dupliquant le bouton "modifier" et en mettre un à côter du bouton "ajouter ")

y a des erreurs au démarrage du plugin

Code : Tout sélectionner

2023-11-25 18:34:00.403  Status: coordinateur 1 - conbeeII: DeviceConf loaded - 16 confs loaded
2023-11-25 18:34:00.413  Status: coordinateur 1 - conbeeII: Local-Device conf loaded - 22 confs loaded
2023-11-25 18:34:01.038  Status: coordinateur 1 - conbeeII: Certified Devices loaded - 534 confs loaded
2023-11-25 18:34:01.040  Status: coordinateur 1 - conbeeII: load ListOfDevice
2023-11-25 18:34:01.045  Status: coordinateur 1 - conbeeII: 1 Entries loaded from /home/domoticz/domoticz/plugins/Domoticz-Zigbee/Data/DeviceList-3.txt
2023-11-25 18:34:01.052  Status: coordinateur 1 - conbeeII: Transport mode: ZigpydeCONZ
2023-11-25 18:34:01.353  Error: coordinateur 1 - conbeeII: Call to function 'onStart' failed, exception details:
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII: Traceback (most recent call last):
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII:   File "/home/domoticz/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1581, in onStart
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII:     _plugin.onStart()
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII:   File "/home/domoticz/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 618, in onStart
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII:     from zigpy.config import (CONF_DEVICE, CONF_DEVICE_PATH,
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII:   File "/usr/local/lib/python3.9/dist-packages/zigpy/config/__init__.py", line 34, in <module>
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII:     from zigpy.config.validators import (
2023-11-25 18:34:01.360  Error: coordinateur 1 - conbeeII:   File "/usr/local/lib/python3.9/dist-packages/zigpy/config/validators.py", line 9, in <module>
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:     import zigpy.zdo.types as zdo_t
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:   File "/usr/local/lib/python3.9/dist-packages/zigpy/zdo/__init__.py", line 10, in <module>
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:     import zigpy.util
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:   File "/usr/local/lib/python3.9/dist-packages/zigpy/util.py", line 15, in <module>
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:     from cryptography.hazmat.primitives.ciphers import Cipher
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:   File "/usr/local/lib/python3.9/dist-packages/cryptography/hazmat/primitives/ciphers/__init__.py", line 11, in <module>
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:     from cryptography.hazmat.primitives.ciphers.base import (
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:   File "/usr/local/lib/python3.9/dist-packages/cryptography/hazmat/primitives/ciphers/base.py", line 10, in <module>
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:     from cryptography.exceptions import (
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:   File "/usr/local/lib/python3.9/dist-packages/cryptography/exceptions.py", line 9, in <module>
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII:     from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
2023-11-25 18:34:01.361  Error: coordinateur 1 - conbeeII: ImportError: PyO3 modules may only be initialized once per interpreter process
Les deux widgets n'ont pas été dans l'onglet "Mesure"
J'ai attaché plusieurs fichiers.

Merci beaucoup pour ton aide.
copie d'écran onglet configuration &gt; matériel
copie d'écran onglet configuration > matériel
onglet configuration.png (56.79 Kio) Consulté 593 fois
zigbee.logs.tar
fichiers logs zigbee
(100 Kio) Téléchargé 64 fois
result_ls-R.txt.zip
résultat du ls -R demandé
(29.97 Kio) Téléchargé 62 fois
Production : Raspberry Pi 4 Model B Rev 1.2 (OS 10 / buster) + domoticz 2022.2
Production : Raspberry Pi 3 Model B Rev 1.2 (OS 11 / bullseye) + domoticz V2024.7
Phil35
Messages : 41
Inscription : 08 sept. 2020, 08:34

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Phil35 »

En cherchant,
ici : https://www.domoticz.com/forum/viewtopic.php?t=40417

j'ai redémarré domoticz, c'est beaucoup mieux

->les widgets sont bien présents, à condition de les ajouter dans l'onglet "configuration" puis "dispositif" .. un clic sur la flèche verte en face de chacun des deux dispositifs :-)
-> l'interface web sur le port : 9440/z4d/dashboard s'affiche
-> la log pour le démarrage du plugin :

Code : Tout sélectionner

023-11-25 18:48:43.918  Status: coordinateur 1 - conbeeII: Certified Devices loaded - 534 confs loaded
2023-11-25 18:48:43.920  Status: coordinateur 1 - conbeeII: load ListOfDevice
2023-11-25 18:48:43.926  Status: coordinateur 1 - conbeeII: 1 Entries loaded from /home/domoticz/domoticz/plugins/Domoticz-Zigbee/Data/DeviceList-3.txt
2023-11-25 18:48:43.933  Status: coordinateur 1 - conbeeII: Transport mode: ZigpydeCONZ
2023-11-25 18:48:46.154  Status: coordinateur 1 - conbeeII: Start Zigpy Transport on deCONZ
2023-11-25 18:48:46.163  Status: coordinateur 1 - conbeeII: Starting radio deCONZ port: /dev/ttyACM0
2023-11-25 18:48:46.164  Status: coordinateur 1 - conbeeII: ZigpyTransport: thread_processing_and_sending Thread start.
2023-11-25 18:48:46.165  Status: coordinateur 1 - conbeeII: Start Web Server connection
2023-11-25 18:48:46.355  Status: coordinateur 1 - conbeeII: Web backend for Web User Interface started on port: 9440
2023-11-25 18:48:46.460  Status: coordinateur 1 - conbeeII: Started radio deCONZ port: /dev/ttyACM0
2023-11-25 18:48:46.657  Status: coordinateur 1 - conbeeII: Plugin looks to upgrade the Certified Device package
2023-11-25 18:48:51.129  Status: coordinateur 1 - conbeeII: deConz Radio manufacturer: dresden elektronik
2023-11-25 18:48:51.130  Status: coordinateur 1 - conbeeII: deConz Radio board model: RaspBee II
2023-11-25 18:48:51.134  Status: coordinateur 1 - conbeeII: deConz Radio version: 0x26720700
2023-11-25 18:48:51.136  Status: coordinateur 1 - conbeeII: Network settings
2023-11-25 18:48:51.143  Status: coordinateur 1 - conbeeII:   Device IEEE: 00:21:2e:ff:ff:09:8c:8d
2023-11-25 18:48:51.144  Status: coordinateur 1 - conbeeII:   Device NWK: 0x0000
2023-11-25 18:48:51.145  Status: coordinateur 1 - conbeeII:   Network Update Id: 0x0000
2023-11-25 18:48:51.151  Status: coordinateur 1 - conbeeII:   PAN ID: 0xCA83
2023-11-25 18:48:51.152  Status: coordinateur 1 - conbeeII:   Extended PAN ID: b4:e6:f9:08:ef:5c:82:01
2023-11-25 18:48:51.153  Status: coordinateur 1 - conbeeII:   Channel: 20
2023-11-25 18:48:51.161  Status: coordinateur 1 - conbeeII: RaspBee II
2023-11-25 18:48:51.162  Status: coordinateur 1 - conbeeII: Installer Version Number: 0x26720700
2023-11-25 18:48:51.164  Status: coordinateur 1 - conbeeII: Branch Version: ==> RaspBee II <==
2023-11-25 18:48:51.166  Status: coordinateur 1 - conbeeII: Zigbee Coordinator ieee: 00212effff098c8d , short addr: 0000
2023-11-25 18:48:51.167  Status: coordinateur 1 - conbeeII: Network state UP, PANID: ca83 extPANID: 0xb4e6f908ef5c8201 Channel: 20
2023-11-25 18:48:59.392  Status: coordinateur 1 - conbeeII: Domoticz Widgets usage is at 1.2 % (252 units free)
2023-11-25 18:49:08.062  Status: coordinateur 1 - conbeeII: Request Disabling Accepting new Hardware
2023-11-25 18:49:13.087  Status: coordinateur 1 - conbeeII: coordinator set to Certification : 1/CE -> CE
2023-11-25 18:49:13.924  Status: coordinateur 1 - conbeeII: ota_scan_folder Following Firmware have been loaded 
2023-11-25 18:49:13.926  Status: coordinateur 1 - conbeeII: Plugin with Zigpy, Coordinator RaspBee II firmware deCONZ - 0x26720700 correctly initialized
Je pense que c'est pour bon pour ajouter le premier device "zigbee" cela sera une prise 220v connectée
Production : Raspberry Pi 4 Model B Rev 1.2 (OS 10 / buster) + domoticz 2022.2
Production : Raspberry Pi 3 Model B Rev 1.2 (OS 11 / bullseye) + domoticz V2024.7
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: problème à l'installation : zigbeefordomoticz et conbee, sur pi3

Message par Keros »

Ça devrait être bon ;)

J'ai mis à jour le wiki pour mettre le petit détail de la flèche verte.

Je vois que tu as mis des espaces dans le nom du plugin. Relis le wiki, c'est déconseillé. Tu peux le renommer, cela ne posera pas de problèmes ;)
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
Répondre