[Résolu] Zigbee sur domoticz

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee sur domoticz

Message par Keros »

Ton coordinateur Sonoff est ZBDongle-P ( Texas Instrument ==> ZNP ) ou est-ce ZBDongle-E (Silicon Labs ==> EZSP ) ?

La ZiGate est un autre coordinateur.

Je bascule ton sujet dans le forum dédié au plugin ZigBeeForDomoticZ.
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
audi68
Messages : 139
Inscription : 08 nov. 2020, 20:16

Re: Zigbee sur domoticz

Message par audi68 »

Le coordinateur est le suivant : SONOFF ZigBee 3.0 USB Dongle Plus, TI CC2652P Coordinator

Donc bien le Chipset Texas Instruments

Mais j'ai une erreur dans domoticz
les log sont les suivants
2022-12-03 06:57:57.948 Zibgee: onStop()
2022-12-03 06:57:57.954 Zibgee: Connection closed
2022-12-03 06:57:57.947 Status: Zibgee: Stop directive received.
2022-12-03 06:57:57.979 Status: Zibgee: ZigateTransport: ZiGateSerialListen Thread stop.
2022-12-03 06:57:57.979 Status: Zibgee: ZigateTransport: writer_thread Thread stop.
2022-12-03 06:57:57.979 Status: Zibgee: ZigateTransport: thread_processing_and_sending Thread stop.
2022-12-03 06:57:58.967 Zibgee: logging_thread - ended
2022-12-03 06:57:58.977 Zibgee: Logging Thread shutdown
2022-12-03 06:57:58.977 Zibgee: onStop called (6) Close Logging Management
2022-12-03 06:57:59.173 Status: Zibgee: Exiting work loop.
2022-12-03 06:57:59.248 Status: Zibgee: Stopping threads.
2022-12-03 06:57:59.248 Status: Zibgee: Stopped.
2022-12-03 06:58:09.808 Zibgee: Worker thread started.
2022-12-03 06:58:09.808 Status: Zibgee: Started.
2022-12-03 06:58:09.808 Status: Zibgee: Entering work loop.
2022-12-03 06:58:11.232 Zibgee: Zigbee for Domoticz plugin started!
2022-12-03 06:58:11.230 Status: Zibgee: Initialized version 6.3, author 'pipiche38'
2022-12-03 06:58:11.232 Status: Zibgee: Checking Python modules /home/jeedom/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2022-12-03 06:58:12.797 Zibgee: load PluginConf
2022-12-03 06:58:12.798 Zibgee: Loading PluginConf - into Domoticz sqlite Db
2022-12-03 06:58:12.799 Zibgee: /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-10.json timestamp is 1670047059.8858693
2022-12-03 06:58:12.799 Zibgee: Dz PluginConf is older than Json Dz: 0 Json: 1670047059.8858693
2022-12-03 06:58:12.801 Zibgee: Installing plugin custom page /home/jeedom/domoticz/www/templates/Zibgee.html
2022-12-03 06:58:12.801 Zibgee: Starting LoggingManagement thread
2022-12-03 06:58:12.803 Zibgee: start_logging_thread
2022-12-03 06:58:12.804 Zibgee: logging_thread - listening
2022-12-03 06:58:12.648 Status: Zibgee: Checking Python modules /home/jeedom/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2022-12-03 06:58:12.800 Status: Zibgee: filename set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-10.json
2022-12-03 06:58:12.800 Status: Zibgee: pluginHome set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/
2022-12-03 06:58:12.800 Status: Zibgee: homedirectory set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/
2022-12-03 06:58:12.800 Status: Zibgee: pluginData set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Data/
2022-12-03 06:58:12.800 Status: Zibgee: pluginConfig set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Conf/
2022-12-03 06:58:12.800 Status: Zibgee: pluginOTAFirmware set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/OTAFirmware/
2022-12-03 06:58:12.800 Status: Zibgee: pluginReports set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Reports/
2022-12-03 06:58:12.800 Status: Zibgee: pluginWWW set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/www/
2022-12-03 06:58:12.800 Status: Zibgee: pluginLogs set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Logs/
2022-12-03 06:58:12.804 Status: Zibgee: Please watch plugin log into /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Logs//PluginZigbee_10.log
2022-12-03 06:58:12.818 Status: Zibgee: Zigbee for Domoticz (z4d) plugin stable6-6.3.006 started
2022-12-03 06:58:12.847 Status: Zibgee: DeviceConf loaded - 22 confs loaded
2022-12-03 06:58:12.838 Error: Zibgee: Device creation failed, Domoticz settings prevent accepting new devices.
2022-12-03 06:58:12.838 Error: Zibgee: createAdminWidget - Fail to create Zigate Status 10. ID: -1, Name: 'Zigate Status 10', nValue: 0, sValue: ''
2022-12-03 06:58:12.838 Error: Zibgee: Device creation failed, Domoticz settings prevent accepting new devices.
2022-12-03 06:58:12.838 Error: Zibgee: createNotificationWidget - Fail to create Zigate Notifications 10. ID: -1, Name: 'Zigate Notifications 10', nValue: 0, sValue: ''
2022-12-03 06:58:13.109 Status: Zibgee: DeviceConf loaded - 369 confs loaded
2022-12-03 06:58:13.109 Status: Zibgee: load ListOfDevice
2022-12-03 06:58:13.111 Status: Zibgee: 0 Entries loaded from /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Data/DeviceList-10.txt
2022-12-03 06:58:13.115 Status: Zibgee: Transport mode: USB
2022-12-03 06:58:13.648 Status: Zibgee: ZigateTransport: Serial Connection open: Serial<id=0x66f3a110, open=True>(port='/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)
2022-12-03 06:58:13.653 Status: Zibgee: ZigateTransport: writer_thread Thread start.
2022-12-03 06:58:13.655 Status: Zibgee: ZigateTransport: thread_processing_and_sending Thread start.
2022-12-03 06:58:13.661 Status: Zibgee: Start Web Server connection
2022-12-03 06:58:13.696 Status: Zibgee: Web backend for Web User Interface started on port: 9440
2022-12-03 06:58:13.697 Status: Zibgee: Domoticz Widgets usage is at 0.4 % (254 units free)
Dernière modification par Keros le 03 déc. 2022, 07:40, modifié 1 fois.
Raison : Ajout de balise pour les logs
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee sur domoticz

Message par Keros »

L'erreur est :
Device creation failed, Domoticz settings prevent accepting new devices.
Dans DomoticZ / Configuration / Paramètres / Système , est-ce que la case Accepter de nouveaux dispositifs est cochée ?
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
audi68
Messages : 139
Inscription : 08 nov. 2020, 20:16

Re: Zigbee sur domoticz

Message par audi68 »

Effectivement c'etait decocher mais ca ne fonctionne toujours pas ci joint le log
2022-12-03 16:53:17.979 Status: Zibgee: Started.
2022-12-03 16:53:19.378 Zibgee: Zigbee for Domoticz plugin started!
2022-12-03 16:53:19.375 Status: Zibgee: Initialized version 6.3, author 'pipiche38'
2022-12-03 16:53:19.378 Status: Zibgee: Checking Python modules /home/jeedom/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2022-12-03 16:53:20.950 Zibgee: load PluginConf
2022-12-03 16:53:20.952 Zibgee: Loading PluginConf - into Domoticz sqlite Db
2022-12-03 16:53:20.952 Zibgee: /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-10.json timestamp is 1670047059.8858693
2022-12-03 16:53:20.952 Zibgee: Dz PluginConf is older than Json Dz: 0 Json: 1670047059.8858693
2022-12-03 16:53:20.954 Zibgee: Installing plugin custom page /home/jeedom/domoticz/www/templates/Zibgee.html
2022-12-03 16:53:20.955 Zibgee: Starting LoggingManagement thread
2022-12-03 16:53:20.957 Zibgee: start_logging_thread
2022-12-03 16:53:20.957 Zibgee: logging_thread - listening
2022-12-03 16:53:20.803 Status: Zibgee: Checking Python modules /home/jeedom/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2022-12-03 16:53:20.954 Status: Zibgee: filename set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-10.json
2022-12-03 16:53:20.954 Status: Zibgee: pluginHome set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/
2022-12-03 16:53:20.954 Status: Zibgee: homedirectory set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/
2022-12-03 16:53:20.954 Status: Zibgee: pluginData set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Data/
2022-12-03 16:53:20.954 Status: Zibgee: pluginConfig set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Conf/
2022-12-03 16:53:20.954 Status: Zibgee: pluginOTAFirmware set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/OTAFirmware/
2022-12-03 16:53:20.954 Status: Zibgee: pluginReports set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Reports/
2022-12-03 16:53:20.954 Status: Zibgee: pluginWWW set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/www/
2022-12-03 16:53:20.954 Status: Zibgee: pluginLogs set to /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Logs/
2022-12-03 16:53:20.957 Status: Zibgee: Please watch plugin log into /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Logs//PluginZigbee_10.log
2022-12-03 16:53:20.972 Status: Zibgee: Zigbee for Domoticz (z4d) plugin stable6-6.3.006 started
2022-12-03 16:53:20.981 Error: Zibgee: domoticz_request - wrong URL toget access to Domoticz JSON/API: http://127.0.0.1:8080/json.htm?type=hardware
2022-12-03 16:53:20.991 Error: Zibgee: domoticz_request - wrong URL toget access to Domoticz JSON/API: http://127.0.0.1:8080/json.htm?type=hardware
2022-12-03 16:53:21.010 Status: Zibgee: DeviceConf loaded - 22 confs loaded
2022-12-03 16:53:21.269 Status: Zibgee: DeviceConf loaded - 369 confs loaded
2022-12-03 16:53:21.270 Status: Zibgee: load ListOfDevice
2022-12-03 16:53:21.271 Status: Zibgee: 0 Entries loaded from /home/jeedom/domoticz/plugins/Domoticz-Zigbee/Data/DeviceList-10.txt
2022-12-03 16:53:21.277 Status: Zibgee: Transport mode: ZigpyZNP
2022-12-03 16:53:21.275 Error: Zibgee: Call to function 'onStart' failed, exception details:
2022-12-03 16:53:21.279 Error: Zibgee: Traceback (most recent call last):
2022-12-03 16:53:21.280 Error: Zibgee: File "/home/jeedom/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1562, in onStart
2022-12-03 16:53:21.280 Error: Zibgee: _plugin.onStart()
2022-12-03 16:53:21.280 Error: Zibgee: File "/home/jeedom/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 549, in onStart
2022-12-03 16:53:21.280 Error: Zibgee: import zigpy
2022-12-03 16:53:21.280 Error: Zibgee: ModuleNotFoundError: No module named 'zigpy'
2022-12-03 16:54:03.068 prise tuya: onHeartbeat called time=1670082843.0686805
2022-12-03 16:54:03.069 prise tuya: in handlethread
2022-12-03 16:54:03.069 prise tuya: Device count: 4
2022-12-03 16:54:04.223 prise tuya: DEV name=Piscine state=True id=bfd85fbc8bd81c23265ac5 online=False
2022-12-03 16:54:04.234 prise tuya: Update 1:'On' (prise tuya - Antela Smart Plug) TimedOut=True
2022-12-03 16:54:04.243 prise tuya: Update 0:'Off' (prise tuya - Antela Smart Plug) TimedOut=True
2022-12-03 16:54:04.243 prise tuya: DeviceID=bfd85fbc8bd81c23265ac5 Turned off because device is offline.
2022-12-03 16:54:04.244 prise tuya: DEV name=Noel state=False id=bfc1cf0753018cfe0fjdzp online=False
2022-12-03 16:54:04.244 prise tuya: DEV name=Tv state=True id=bfb2da694a919ed7dbtfcj online=True
Je dois laissé accepter de nouveau dispositif cocher?
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee sur domoticz

Message par Keros »

Tu essayes de lire les logs ?
2022-12-03 16:53:20.981 Error: Zibgee: domoticz_request - wrong URL toget access to Domoticz JSON/API: http://127.0.0.1:8080/json.htm?type=hardware
Tes paramètres du plugin dans DomoticZ ne sont pas bon.

J'ai la case Accepter de nouveaux dispositifs cochée en permanence.
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
audi68
Messages : 139
Inscription : 08 nov. 2020, 20:16

Re: Zigbee sur domoticz

Message par audi68 »

oui j'ai lu mes logs

mais si je mets mon cette adresse http://monid:MDP@ipdomoticz:8080 ça ne fonctionne pas

Ok donc je peux laisser activé
audi68
Messages : 139
Inscription : 08 nov. 2020, 20:16

Re: Zigbee sur domoticz

Message par audi68 »

Les 2 widgets crée dans mesure ne sont pas non plus

le programme domotiz zigbee ne doit pas bien être installé?
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee sur domoticz

Message par Keros »

As-tu essayé l'adresse par défaut proposée ?

Je ne vois pas d'erreurs qui seraient liées à l'installation.
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
audi68
Messages : 139
Inscription : 08 nov. 2020, 20:16

Re: Zigbee sur domoticz

Message par audi68 »

Oui j'ai essayé par défaut ça ne fonctionne pas.

j'ai cette erreur
2022-12-04 11:30:14.444 Error: zibgee: domoticz_request - wrong URL toget access to Domoticz JSON/API: http://127.0.0.1:8080/json.htm?type=hardware
2022-12-04 11:30:14.456 Error: zibgee: domoticz_request - wrong URL toget access to Domoticz JSON/API: http://127.0.0.1:8080/json.htm?type=hardware
2022-12-04 11:30:14.753 Error: zibgee: Call to function 'onStart' failed, exception details:
2022-12-04 11:30:14.758 Error: zibgee: Traceback (most recent call last):
2022-12-04 11:30:14.758 Error: zibgee: File "/home/jeedom/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1562, in onStart
2022-12-04 11:30:14.758 Error: zibgee: _plugin.onStart()
2022-12-04 11:30:14.758 Error: zibgee: File "/home/jeedom/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 581, in onStart
2022-12-04 11:30:14.758 Error: zibgee: import bellows
2022-12-04 11:30:14.758 Error: zibgee: ModuleNotFoundError: No module named 'bellows'
Sur Putty j'ai fait un
sudo udevadm info --query=all --name=ttyUSB0
pi@raspberrypi:/$ sudo udevadm info --query=all --name=ttyUSB0
P: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0
N: ttyUSB0
L: 0
S: serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0
S: serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
E: DEVPATH=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0
E: DEVNAME=/dev/ttyUSB0
E: MAJOR=188
E: MINOR=0
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=135523028736
E: ID_VENDOR=Silicon_Labs
E: ID_VENDOR_ENC=Silicon\x20Labs
E: ID_VENDOR_ID=10c4
E: ID_MODEL=Sonoff_Zigbee_3.0_USB_Dongle_Plus
E: ID_MODEL_ENC=Sonoff\x20Zigbee\x203.0\x20USB\x20Dongle\x20Plus
E: ID_MODEL_ID=ea60
E: ID_REVISION=0100
E: ID_SERIAL=Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001
E: ID_SERIAL_SHORT=0001
E: ID_TYPE=generic
E: ID_BUS=usb
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=cp210x
E: ID_VENDOR_FROM_DATABASE=Cygnal Integrated Products, Inc.
E: ID_MODEL_FROM_DATABASE=CP2102/CP2109 UART Bridge Controller [CP210x family]
E: ID_PATH=platform-3f980000.usb-usb-0:1.3:1.0
E: ID_PATH_TAG=platform-3f980000_usb-usb-0_1_3_1_0
E: DEVLINKS=/dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0 /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
E: TAGS=:systemd:
Donc il s'agit d'un sillicon et non texas

Dans API base je dois mettre quel url?
L'url de domoticz chez moi est 192.168.1.141:8080
Dois je mettre celle ci avec mon pseudo et MDP (http://username:password@127.0.0.1:por)?
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee sur domoticz

Message par Keros »

Tu as mis http://127.0.0.1:8080 ?

Si le 127.0.01 est autorisé dans les paramètres de DomoticZ pour se connecter sans mot de passe, tu n'as pas besoin de spécifier le user/pass.

Au dos de ton coordinateur Sonoff, quel est le modèle indiqué ZBDongle-E ou ZBDongle-P ?
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