[Résolu] réinitialiser le plugin

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

[Résolu] réinitialiser le plugin

Message par hestia »

Je voudrais repartir à 0 sur le plugin sans restaurer la db avant l'installation initiale et avec un nouveau coordinateur.
J'ai essayé différentes façons sans succès (installation de la version, suppression du plugin dans dz, suppression du répertoire...)
Screenshot 2022-10-22 221035.png
Screenshot 2022-10-22 221035.png (14.51 Kio) Consulté 946 fois
Là j'ai 2 fois le plugin dans la liste
C'est une env de test, donc ce n'est pas grave si j'ai échoué jusqu'à maintenant...
Dernière modification par hestia le 24 oct. 2022, 21:41, modifié 1 fois.
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: réinitialiser le plugin

Message par pipiche »

Pour moi il suffit simplement de supprimer le plug-in de DomoticZ. Cela doit supprimer l’ensemble des widgets de DomoticZ.
Et si tu en crées un nouveau alors il aura un numéro supérieur.
Éventuellement tu peux supprimer la base de données qui edt dans Data/
- DeviceList
- GroupList
-Coordinator


Envoyé de mon iPhone en utilisant Tapatalk
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
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: réinitialiser le plugin

Message par Keros »

Si tu as deux fois le plugin dans la liste, c'est que tu as le plugin dans deux dossiers. Il ne faut en n'avoir qu'un seul.
Il est possible d'utiliser deux instances du plugin dans DomoticZ (en ajoutant plusieurs fois le matériel) : les deux instances se partagent le même dossier.
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
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: réinitialiser le plugin

Message par hestia »

Réveil difficile ;)
J'ai supprimé le plugin des Hardware de dz, le répertoire dans plugins, les coockies de domoticz et zigbeeForDomoticz
dzDB.png
dzDB.png (18.01 Kio) Consulté 916 fois
plugins.png
plugins.png (14.36 Kio) Consulté 916 fois
J'ai changé utilisé la navigation privée, changé de browser... et toujours les 2 lignes de plugings dans dz
dzHW.png
dzHW.png (379.59 Kio) Consulté 916 fois
J'ai donc cliqué sur 1 des 2 lignes et le HW a été crée dans dz alors que le répertoire du plugin n'existe pas!
J'ai raté qqch ?!?
Pièces jointes
dzZig.png
dzZig.png (62.55 Kio) Consulté 916 fois
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: réinitialiser le plugin

Message par Keros »

Tu as redémarré 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
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: réinitialiser le plugin

Message par hestia »

plein de fois, mais pas au bon moment!
merci !!!
les 2 lignes ont disparu
je vais repartir sur une installation from scratch! un peu plus tard
A suivre
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: réinitialiser le plugin

Message par hestia »

je recommence l'installation qui se finit par

Code : Tout sélectionner

Error at startup 'NoneType' object has no attribute 'networkState'

Code : Tout sélectionner

sudo service domoticz status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated)
   Active: active (running) since Sun 2022-10-23 16:01:33 CEST; 42s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2938 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
    Tasks: 22 (limit: 2178)
   CGroup: /system.slice/domoticz.service
           └─2945 /home/pi/PROD_domoticz/domoticz -daemon -www 8080 -sslwww 443 -syslog local6 -loglevel status,error

Oct 23 16:02:04 envtest domoticz[2945]: ZigbeeE: Domoticz Widgets usage is at 1.2 % (252 units free)
Oct 23 16:02:04 envtest domoticz[2945]: ZigbeeE: Started radio ezsp port: /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220811133129
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE: Error at startup 'NoneType' object has no attribute 'networkState'
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE: Network settings
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE:   Channel: 0
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE:   PAN ID: 0xFFFE
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE:   Extended PAN ID: ff:ff:ff:ff:ff:ff:ff:ff
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE:   Device IEEE: ff:ff:ff:ff:ff:ff:ff:ff
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE:   Device NWK: 0xFFFE
Oct 23 16:02:11 envtest domoticz[2945]: ZigbeeE: Zigate not correctly initialized
Mais au bout d'un moment, il semble que ça va mieux
widgetsZig.png
widgetsZig.png (21.8 Kio) Consulté 885 fois
Mais lors que 'appairage

Code : Tout sélectionner

 2022-10-23 16:09:06.964 Status: ZigbeeE: ota_scan_folder Following Firmware have been loaded
2022-10-23 16:09:06.966 Status: ZigbeeE: Plugin with Zigpy, Coordinator Unknown ZNP firmware UNK - 1030 correctly initialized
2022-10-23 16:20:07.218 Status: ZigbeeE: Request Accepting new Hardware for 240 seconds
2022-10-23 16:20:07.272 Error: ZigbeeE: Error while receiving a Plugin command: >'NoneType' object has no attribute 'pre_permit'<
2022-10-23 16:20:07.282 Error: ZigbeeE: Issue in request {'cmd': 'PERMIT-TO-JOIN', 'datas': {'Duration': 240, 'targetRouter': 'FFFC'}, 'NwkId': None, 'TimeStamp': 1666534807.214283, 'ACKIsDisable': False, 'Sqn': None}, dumping stack: Traceback (most recent call last):
2022-10-23 16:20:07.282 File "/home/pi/PROD_domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/zigpyThread.py", line 314, in worker_loop
2022-10-23 16:20:07.282 await dispatch_command(self, data)
2022-10-23 16:20:07.282 File "/home/pi/PROD_domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/zigpyThread.py", line 380, in dispatch_command
2022-10-23 16:20:07.282 await _permit_to_joint(self, data)
2022-10-23 16:20:07.282 File "/home/pi/PROD_domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/zigpyThread.py", line 426, in _permit_to_joint
2022-10-23 16:20:07.282 await self.app.permit(time_s=duration, node=target_router )
2022-10-23 16:20:07.282 File "/home/pi/PROD_domoticz/plugins/Domoticz-Zigbee/bellows/zigbee/application.py", line 828, in permit
2022-10-23 16:20:07.282 asyncio.create_task(self._ezsp.pre_permit(time_s))
2022-10-23 16:20:07.282 AttributeError: 'NoneType' object has no attribute 'pre_permit'
2022-10-23 16:20:07.282
2022-10-23 16:20:28.557 Error: ZigbeeE: No transport, write directive to '192.168.9.14:57789' ignored.
2022-10-23 16:20:28.557 Error: ZigbeeE: No transport, write directive to '192.168.9.14:57790' ignored.
2022-10-23 16:20:32.870 Error: ZigbeeE: No transport, write directive to '192.168.9.14:57793' ignored.
2022-10-23 16:20:32.870 Error: ZigbeeE: No transport, write directive to '192.168.9.14:57794' ignored. 
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: réinitialiser le plugin

Message par pipiche »

tu as du oublier une etape dans l'installation du plugin
peux-tu faire les commandes suivantes et dire ce qiui en resulte ?

Code : Tout sélectionner

git status
git config -l
git config --global -l
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: réinitialiser le plugin

Message par hestia »

à partir du répertoire du plugin?
à quel moment dans l'installation?
pas vu dans https://zigbeefordomoticz.github.io/wik ... sous-linux

je l'ai fait à partir de répertoire du plugin =>
fatal: unable to read config file '/home/pi/.gitconfig': No such file or directory

Code : Tout sélectionner

domoticz/plugins/Domoticz-Zigbee $ git status
Refresh index: 100% (656/656), done.
On branch stable6
Your branch is up to date with 'origin/stable6'.

nothing to commit, working tree clean
pi@envtest:~/PROD_domoticz/plugins/Domoticz-Zigbee $ git config -l
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/zigbeefordomoticz/Domoticz-Zigbee.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.stable6.remote=origin
branch.stable6.merge=refs/heads/stable6
submodule.recurse=true
submodule.external/bellows.active=true
submodule.external/bellows.url=https://github.com/zigbeefordomoticz/bellows.git
submodule.external/zigpy.active=true
submodule.external/zigpy.url=https://github.com/zigbeefordomoticz/zigpy.git
submodule.external/zigpy-deconz.active=true
submodule.external/zigpy-deconz.url=https://github.com/zigbeefordomoticz/zigpy-deconz.git
submodule.external/zigpy-zigate.active=true
submodule.external/zigpy-zigate.url=https://github.com/zigbeefordomoticz/zigpy-zigate
submodule.external/zigpy-znp.active=true
submodule.external/zigpy-znp.url=https://github.com/zigbeefordomoticz/zigpy-znp.git
pi@envtest:~/PROD_domoticz/plugins/Domoticz-Zigbee $ git config --global -l
fatal: unable to read config file '/home/pi/.gitconfig': No such file or directory
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

réinitialiser le plugin

Message par pipiche »

C’est quoi ton coordinateur?

Peux-tu mettre les logs complet et pas seulement un extrait


Envoyé de mon iPhone en utilisant Tapatalk
Dernière modification par pipiche le 23 oct. 2022, 17:12, modifié 1 fois.
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
Répondre