[Résolu] installation USB Sonoff zigbee v2 type E

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
Beaupigny
Messages : 79
Inscription : 14 févr. 2019, 07:11

Re: installation USB Sonoff zigbee v2 type E

Message par Beaupigny »

voici le log que j'ai en ajoutant un materiel Sonos:
2024-02-24 21:13:33.440 Status: Sonoff v2: (Sonoff v2) Stopping threads.
2024-02-24 21:13:33.440 Status: Sonoff v2: (Sonoff v2) Stopped.
2024-02-24 21:13:33.440 Status: Sonoff v2: (Sonoff v2) Started.
2024-02-24 21:13:33.441 Status: Sonoff v2: (Sonoff v2) Entering work loop.
2024-02-24 21:13:33.705 Status: Sonoff v2: (Sonoff v2) Initialized version 5.1, author 'zaraki673 pipiche38'
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) filename set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/Conf/PluginConf-14.json
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) pluginHome set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) homedirectory set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) pluginData set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/Data/
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) pluginConfig set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/Conf/
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) pluginOTAFirmware set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/OTAFirmware/
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) pluginReports set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/Reports/
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) pluginWWW set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/www/
2024-02-24 21:13:33.709 Status: Sonoff v2: (Sonoff v2) pluginLogs set to /opt/domoticz/userdata/plugins/Domoticz-Zigate/Logs/
2024-02-24 21:13:33.713 Status: Sonoff v2: (Sonoff v2) Zigate plugin stable-5.1.009 started
2024-02-24 21:13:33.727 Status: Sonoff v2: (Sonoff v2) DeviceConf loaded
2024-02-24 21:13:33.814 Status: Sonoff v2: (Sonoff v2) load ListOfDevice
2024-02-24 21:13:33.818 Status: Sonoff v2: (Sonoff v2) Connection Name: Zigate, Transport: Serial, Address: /dev/ttyACM1
2024-02-24 21:13:33.819 Status: Sonoff v2: (Sonoff v2) 0 Entries loaded from /opt/domoticz/userdata/plugins/Domoticz-Zigate/Data/DeviceList-14.txt
2024-02-24 21:13:33.820 Status: Sonoff v2: (Sonoff v2) Transport mode: USB
2024-02-24 21:13:33.249 Error: Sonoff v2: (Sonoff v2) write_to_zigate port is closed!
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: installation USB Sonoff zigbee v2 type E

Message par Keros »

Le coordinateur Sonoff ne fonctionnera pas avec le plugin en version5. Il faut que tu passes à la version 6 du plugin au minimum.
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
Beaupigny
Messages : 79
Inscription : 14 févr. 2019, 07:11

Re: installation USB Sonoff zigbee v2 type E

Message par Beaupigny »

OK demain je vais chercher comment passer en version 6
Bonne soirée et merci
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: installation USB Sonoff zigbee v2 type E

Message par pipiche »

je te recommande de passer à la version 7 directement, je pense que ce devrait etre plus simple

S'assurer que tu as une version python3 supérieur à 3.8.

Code : Tout sélectionner

python3 --version
Arreter le plugin
Arreter Domoticz


1) passage sur la branche 7

Code : Tout sélectionner

git pull
git checkout stable7
git pull
2) vérifier que la bascule s'est faite

Code : Tout sélectionner

git status
3) mettre à jour les modules python3

Code : Tout sélectionner

sudo python3 -m pip install -r requirements.txt --upgrade

4) relancer Domoticz

5) aller dans le menu Hardware de Domoticz et vérifier l'exactitude des champs. Il est probable qu'il y manquera des informations comme:

Code : Tout sélectionner

 API bas url
qui est sous la forme http://username:password@127.0.0.1:port

Si tu es en Domoticz 2023 ou 2024, il y a certainement un paramètre de sécurité à vérifier coté 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
Beaupigny
Messages : 79
Inscription : 14 févr. 2019, 07:11

Re: installation USB Sonoff zigbee v2 type E

Message par Beaupigny »

bonjour,

je suis en version Python 3.8.12.
Mon problème depuis le départ est que la commande git pull ne fonctionne pas dans le répertoire Domoticz-Zigate:
volume1/docker/domoticz/plugins/Domoticz-Zigate$ git status
-sh: git: command not found.
pourquoi ?
Beaupigny
Messages : 79
Inscription : 14 févr. 2019, 07:11

Re: installation USB Sonoff zigbee v2 type E

Message par Beaupigny »

j'ai essayé la commande git pull --recurse-submodules. avec et sans le point, ne fonctionne pas non plus
Beaupigny
Messages : 79
Inscription : 14 févr. 2019, 07:11

Re: installation USB Sonoff zigbee v2 type E

Message par Beaupigny »

Bxxx@DiskStation:/volume1/docker/domoticz/plugins/Domoticz-Zigate$ git pull
-sh: git: command not found
Bxx@DiskStation:/volume1/docker/domoticz/plugins/Domoticz-Zigate$ git pull --recurse-submodules.
-sh: git: command not found
Bxx@DiskStation:/volume1/docker/domoticz/plugins/Domoticz-Zigate$ git pull --recurse-submodules
-sh: git: command not found
Beaupigny
Messages : 79
Inscription : 14 févr. 2019, 07:11

Re: installation USB Sonoff zigbee v2 type E

Message par Beaupigny »

en complement
Bxx@DiskStation:/volume1/docker/domoticz/plugins/Domoticz-Zigate$ git remote set-url origin https://github.com/zigbeefordomoticz/Domoticz-Zigbee
-sh: git: command not found
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: installation USB Sonoff zigbee v2 type E

Message par Keros »

Tu lances tes commandes où ? Dans le terminal du docker ?
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
Beaupigny
Messages : 79
Inscription : 14 févr. 2019, 07:11

Re: installation USB Sonoff zigbee v2 type E

Message par Beaupigny »

je lance les commandes depuis Putty car je n'arrive plus à les lancer avec le terminal de Docker, je ne sais pas pourquoi
Répondre