Page 3 sur 6

Re: installation USB Sonoff zigbee v2 type E

Publié : 24 févr. 2024, 21:15
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!

Re: installation USB Sonoff zigbee v2 type E

Publié : 24 févr. 2024, 21:18
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.

Re: installation USB Sonoff zigbee v2 type E

Publié : 24 févr. 2024, 22:59
par Beaupigny
OK demain je vais chercher comment passer en version 6
Bonne soirée et merci

Re: installation USB Sonoff zigbee v2 type E

Publié : 25 févr. 2024, 09:46
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

Re: installation USB Sonoff zigbee v2 type E

Publié : 25 févr. 2024, 10:20
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 ?

Re: installation USB Sonoff zigbee v2 type E

Publié : 25 févr. 2024, 10:25
par Beaupigny
j'ai essayé la commande git pull --recurse-submodules. avec et sans le point, ne fonctionne pas non plus

Re: installation USB Sonoff zigbee v2 type E

Publié : 25 févr. 2024, 10:27
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

Re: installation USB Sonoff zigbee v2 type E

Publié : 25 févr. 2024, 10:29
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

Re: installation USB Sonoff zigbee v2 type E

Publié : 25 févr. 2024, 10:56
par Keros
Tu lances tes commandes où ? Dans le terminal du docker ?

Re: installation USB Sonoff zigbee v2 type E

Publié : 25 févr. 2024, 11:12
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