Page 3 sur 4

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 09:57
par pipiche
67jero a écrit : 19 avr. 2019, 09:26 J'ai suivi tes indications et cela fonctionne, mon problème vient du fait que mon script ne s'exécute pas au démarrage dans le rc.local, il faut que je règle ce problème.
J'ai une autre question, lors d'un reboot, faut il appairer les capteurs ou ils restent appairés ?
Merci
Je suis conscient du manque d'intégration entre le plugin et la piZigate. Je voulais éviter cela pour que le plugin reste le plus générique.

Sur la branche Beta, j'ai implémenter la partie mise en mode run de la piZigate ( grosso modo ce que fait le script ).
Si tu veux essayer:

depuis le repertoire du plugin

Code : Tout sélectionner

cd .../domoticz/plugins/Domoticz-Zigate
git pull
git checkout beta
Après ca relancer Domoticz, tu devrais alors etre en mesure de te passer du script rc.local. Par contre n'ayant pas de piZigate je n'ai pas pu tester, donc je veu bien les logs pour confirmer que ca fonctionne .... ou pas ....

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 10:21
par 67jero
Là je suppose que je dois valider, comment, je ne dois pas faire de sauvegarde avant ?

pi@raspberrypi:/home/domoticz/domoticz/plugins/Domoticz-Zigate $ git checkout beta
error: Vos modifications locales aux fichiers suivants seraient écrasées par l'extraction :
plugin.py
Veuillez valider ou remiser vos modifications avant de basculer de branche.
Abandon

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 10:21
par pipiche
67jero a écrit : 19 avr. 2019, 10:21 Là je suppose que je dois valider, comment, je ne dois pas faire de sauvegarde avant ?

pi@raspberrypi:/home/domoticz/domoticz/plugins/Domoticz-Zigate $ git checkout beta
error: Vos modifications locales aux fichiers suivants seraient écrasées par l'extraction :
plugin.py
Veuillez valider ou remiser vos modifications avant de basculer de branche.
Abandon

Code : Tout sélectionner

git reset –-hard
git pull --force

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 10:58
par 67jero
Donc la Pizigate ne démarre pas , voici les logs :

2019-04-19 10:54:31.778 Sunrise: 06:32:00 SunSet: 20:26:00
2019-04-19 10:54:31.778 Day length: 13:54:00 Sun at south: 13:05:00
2019-04-19 10:54:31.778 Civil twilight start: 05:58:00 Civil twilight end: 20:59:00
2019-04-19 10:54:31.778 Nautical twilight start: 05:17:00 Nautical twilight end: 21:41:00
2019-04-19 10:54:31.778 Astronomical twilight start: 04:31:00 Astronomical twilight end: 22:27:00
2019-04-19 10:54:31.511 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2019-04-19 10:54:31.521 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2019-04-19 10:54:31.529 Status: Startup Path: /home/domoticz/domoticz/
2019-04-19 10:54:31.778 Status: EventSystem: reset all events...
2019-04-19 10:54:32.437 Active notification Subsystems: email (1/13)
2019-04-19 10:54:32.614 Starting shared server on: :::6144
2019-04-19 10:54:32.424 Status: PluginSystem: Started, Python version '3.5.3'.
2019-04-19 10:54:32.474 Status: WebServer(HTTP) started on address: :: with port 8080
2019-04-19 10:54:32.573 Status: WebServer(SSL) started on address: :: with port 443
2019-04-19 10:54:32.574 Status: Proxymanager started.
2019-04-19 10:54:32.614 Status: TCPServer: shared server started...
2019-04-19 10:54:32.614 Status: RxQueue: queue worker started...
2019-04-19 10:54:34.615 Status: (Pizigate) Started.
2019-04-19 10:54:34.615 Status: EventSystem: reset all events...
2019-04-19 10:54:34.615 Status: EventSystem: reset all device statuses...
2019-04-19 10:54:34.779 Status: Python EventSystem: Initalizing event module.
2019-04-19 10:54:34.779 Status: EventSystem: Started
2019-04-19 10:54:34.779 Status: EventSystem: Queue thread started...
2019-04-19 10:54:34.808 Status: PluginSystem: Entering work loop.
2019-04-19 10:54:34.816 Status: RFLink: Using serial port: /dev/ttyACM0
2019-04-19 10:54:35.383 (Pizigate) Debug: 0
2019-04-19 10:54:35.468 (Pizigate) Configure Permit To Join
2019-04-19 10:54:35.468 (Pizigate) Request discovery mode for 2 seconds
2019-04-19 10:54:35.325 Status: (Pizigate) Entering work loop.
2019-04-19 10:54:35.326 Status: (Pizigate) Initialized version 4.2-beta, author 'zaraki673 pipiche38'
2019-04-19 10:54:35.383 Status: (Pizigate) Zigate plugin 4.2-beta started
2019-04-19 10:54:35.383 Status: (Pizigate) Python Version - 3.5.3 (default, Sep 27 2018, 17:25:39)
2019-04-19 10:54:35.383 [GCC 6.3.0 20170516]
2019-04-19 10:54:35.384 Status: (Pizigate) Switching Hearbeat to 5 s interval
2019-04-19 10:54:35.384 Status: (Pizigate) DomoticzVersion: 4.9700
2019-04-19 10:54:35.384 Status: (Pizigate) DomoticzHash: a3a45906
2019-04-19 10:54:35.384 Status: (Pizigate) DomoticzBuildTime: 2018-06-23 16:24:51
2019-04-19 10:54:35.384 Status: (Pizigate) The current Domoticz version doesn't support the plugin to enable a number of features
2019-04-19 10:54:35.384 Status: (Pizigate) switching to Domoticz V 4.10355 and above would help
2019-04-19 10:54:35.384 Status: (Pizigate) load PluginConf
2019-04-19 10:54:35.387 Status: (Pizigate) PluginConf: /home/domoticz/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf.txt
2019-04-19 10:54:35.388 Status: (Pizigate) -vibrationAqarasensitivity: medium
2019-04-19 10:54:35.389 Status: (Pizigate) -enablegroupmanagement: 0
2019-04-19 10:54:35.389 Status: (Pizigate) -resetMotiondelay: 30
2019-04-19 10:54:35.389 Status: (Pizigate) -logFORMAT: 0
2019-04-19 10:54:35.389 Status: (Pizigate) -logLQI: 0
2019-04-19 10:54:35.389 Status: (Pizigate) -channel: ['11', '15', '19', '20', '25', '26']
2019-04-19 10:54:35.399 Status: (Pizigate) Plugin Database: DeviceList-3.txt
2019-04-19 10:54:35.418 Status: (Pizigate) DeviceConf loaded
2019-04-19 10:54:35.418 Status: (Pizigate) load ListOfDevice
2019-04-19 10:54:35.460 Status: (Pizigate) Entries loaded from /home/domoticz/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-3.txt : 7
2019-04-19 10:54:35.746 Status: RFLink: Controller Initialized!...
2019-04-19 10:54:35.821 Status: RFLink Detected, Version: 1.1 Revision: 48 Build: 4
2019-04-19 10:54:35.466 Error: (Pizigate) Missing wiringpi module, please install
2019-04-19 10:54:44.839 (Pizigate) FirmwareVersion not ready
2019-04-19 10:54:49.848 (Pizigate) FirmwareVersion not ready
2019-04-19 10:54:54.858 (Pizigate) FirmwareVersion not ready
2019-04-19 10:55:58.723 (Pizigate) FirmwareVersion not ready
2019-04-19 10:55:58.723 (Pizigate) Try to get Firmware version once more 4
2019-04-19 10:56:03.687 Status: (Pizigate) ZigateConf setting Channel(s) to: ['11', '15', '19', '20', '25', '26']
2019-04-19 10:56:03.687 Status: (Pizigate) setChannel - Channel set to : 06188800
2019-04-19 10:56:03.688 Status: (Pizigate) Set Zigate as a Coordinator
2019-04-19 10:56:03.688 Status: (Pizigate) ZigateConf - Setting UTC Time to : 608986563
2019-04-19 10:56:03.688 Status: (Pizigate) Start network
2019-04-19 10:56:08.708 (Pizigate) FirmwareVersion not ready
2019-04-19 10:56:13.728 (Pizigate) FirmwareVersion not ready
2019-04-19 10:56:18.691 (Pizigate) FirmwareVersion not ready
2019-04-19 10:56:18.691 (Pizigate) Try to get Firmware version once more 8
2019-04-19 10:56:23.704 (Pizigate) FirmwareVersion not ready
2019-04-19 10:56:28.715 (Pizigate) FirmwareVersion not ready
2019-04-19 10:56:33.726 (Pizigate) FirmwareVersion not ready
2019-04-19 10:56:33.726 Error: (Pizigate) Plugin is not started ...
2019-04-19 10:56:33.726 Error: (Pizigate) - Communication issue with the Zigate
2019-04-19 10:56:33.726 Error: (Pizigate) - restart once the plugin, and if this remain the same
2019-04-19 10:56:33.726 Error: (Pizigate) - unplug/plug the zigate

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 11:05
par pipiche

Code : Tout sélectionner

2019-04-19 10:54:35.466 Error: (Pizigate) Missing wiringpi module, please install
Peux-tu essayer de faire:

Code : Tout sélectionner

pip install wiringpi

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 11:18
par 67jero
Voilà,

pi@raspberrypi:~ $ pip install wiringpi
Collecting wiringpi
Downloading https://files.pythonhosted.org/packages ... armv7l.whl (262kB)
100% |████████████████████████████████| 266kB 615kB/s
Installing collected packages: wiringpi
Successfully installed wiringpi-2.46.0

Et voilà le log

2019-04-19 11:15:26.416 Status: (Pizigate) Entries loaded from /home/domoticz/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-3.txt : 7
2019-04-19 11:15:26.420 Error: (Pizigate) Missing wiringpi module, please install
2019-04-19 11:15:35.845 (Pizigate) FirmwareVersion not ready

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 12:12
par pipiche
67jero a écrit : 19 avr. 2019, 11:18 Voilà,

pi@raspberrypi:~ $ pip install wiringpi
Collecting wiringpi
Downloading https://files.pythonhosted.org/packages ... armv7l.whl (262kB)
100% |████████████████████████████████| 266kB 615kB/s
Installing collected packages: wiringpi
Successfully installed wiringpi-2.46.0

Et voilà le log

2019-04-19 11:15:26.416 Status: (Pizigate) Entries loaded from /home/domoticz/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-3.txt : 7
2019-04-19 11:15:26.420 Error: (Pizigate) Missing wiringpi module, please install
2019-04-19 11:15:35.845 (Pizigate) FirmwareVersion not ready
@67jero, je te propose que tu prennes contact avec Akila le fournisseur de la Zigate, car malheursement, WiringPi qui est la bibliotheque pour accèder à la PiZigate n'est pas compatible avec Python3 (qui est utilisé avec Domoticz),

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 12:19
par pipiche
Tu peux regarder ce qui est fait ici: https://zigate.fr/documentation/paramet ... pie-sp-2-1

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 12:57
par 67jero
En fait je n'avais pas supprimé le script dans le rc.local, donc après l'avoir supprimé j'ai fait un shutdown deux fois d'affilé et la Pizigate a démarré les deux fois, je te mets les logs complets ci-dessous. En définitif je dirai que ça fonctionne à présent.
Merci beaucoup, si cela devait changer je reviendrai vers toi pour t'informer,

2019-04-19 12:51:25.845 Sunrise: 06:32:00 SunSet: 20:26:00
2019-04-19 12:51:25.845 Day length: 13:54:00 Sun at south: 13:05:00
2019-04-19 12:51:25.845 Civil twilight start: 05:58:00 Civil twilight end: 20:59:00
2019-04-19 12:51:25.845 Nautical twilight start: 05:17:00 Nautical twilight end: 21:41:00
2019-04-19 12:51:25.845 Astronomical twilight start: 04:31:00 Astronomical twilight end: 22:27:00
2019-04-19 12:51:25.531 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2019-04-19 12:51:25.540 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2019-04-19 12:51:25.548 Status: Startup Path: /home/domoticz/domoticz/
2019-04-19 12:51:25.845 Status: EventSystem: reset all events...
2019-04-19 12:51:26.925 Active notification Subsystems: email (1/13)
2019-04-19 12:51:26.901 Status: PluginSystem: Started, Python version '3.5.3'.
2019-04-19 12:51:27.196 Starting shared server on: :::6144
2019-04-19 12:51:27.027 Status: WebServer(HTTP) started on address: :: with port 8080
2019-04-19 12:51:27.158 Status: WebServer(SSL) started on address: :: with port 443
2019-04-19 12:51:27.161 Status: Proxymanager started.
2019-04-19 12:51:27.197 Status: TCPServer: shared server started...
2019-04-19 12:51:27.197 Status: RxQueue: queue worker started...
2019-04-19 12:51:29.878 (Pizigate) Debug: 0
2019-04-19 12:51:29.197 Status: (Pizigate) Started.
2019-04-19 12:51:29.198 Status: EventSystem: reset all events...
2019-04-19 12:51:29.198 Status: EventSystem: reset all device statuses...
2019-04-19 12:51:29.375 Status: PluginSystem: Entering work loop.
2019-04-19 12:51:29.377 Status: Python EventSystem: Initalizing event module.
2019-04-19 12:51:29.379 Status: EventSystem: Started
2019-04-19 12:51:29.386 Status: EventSystem: Queue thread started...
2019-04-19 12:51:29.413 Status: RFLink: Using serial port: /dev/ttyACM0
2019-04-19 12:51:29.869 Status: (Pizigate) Entering work loop.
2019-04-19 12:51:29.870 Status: (Pizigate) Initialized version 4.2-beta, author 'zaraki673 pipiche38'
2019-04-19 12:51:29.878 Status: (Pizigate) Zigate plugin 4.2-beta started
2019-04-19 12:51:29.878 Status: (Pizigate) Python Version - 3.5.3 (default, Sep 27 2018, 17:25:39)
2019-04-19 12:51:29.878 [GCC 6.3.0 20170516]
2019-04-19 12:51:29.878 Status: (Pizigate) Switching Hearbeat to 5 s interval
2019-04-19 12:51:29.879 Status: (Pizigate) DomoticzVersion: 4.9700
2019-04-19 12:51:29.879 Status: (Pizigate) DomoticzHash: a3a45906
2019-04-19 12:51:29.879 Status: (Pizigate) DomoticzBuildTime: 2018-06-23 16:24:51
2019-04-19 12:51:29.879 Status: (Pizigate) The current Domoticz version doesn't support the plugin to enable a number of features
2019-04-19 12:51:29.879 Status: (Pizigate) switching to Domoticz V 4.10355 and above would help
2019-04-19 12:51:29.879 Status: (Pizigate) load PluginConf
2019-04-19 12:51:29.881 Status: (Pizigate) PluginConf: /home/domoticz/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf.txt
2019-04-19 12:51:29.888 Status: (Pizigate) -vibrationAqarasensitivity: medium
2019-04-19 12:51:29.888 Status: (Pizigate) -enablegroupmanagement: 0
2019-04-19 12:51:29.888 Status: (Pizigate) -resetMotiondelay: 30
2019-04-19 12:51:29.888 Status: (Pizigate) -logFORMAT: 0
2019-04-19 12:51:29.888 Status: (Pizigate) -logLQI: 0
2019-04-19 12:51:29.889 Status: (Pizigate) -channel: ['11', '15', '19', '20', '25', '26']
2019-04-19 12:51:29.932 Status: (Pizigate) Plugin Database: DeviceList-3.txt
2019-04-19 12:51:29.951 Status: (Pizigate) DeviceConf loaded
2019-04-19 12:51:29.952 Status: (Pizigate) load ListOfDevice
2019-04-19 12:51:30.057 (Pizigate) Configure Permit To Join
2019-04-19 12:51:30.057 (Pizigate) Request discovery mode for 2 seconds
2019-04-19 12:51:30.002 Status: (Pizigate) Entries loaded from /home/domoticz/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-3.txt : 7
2019-04-19 12:51:30.339 Status: RFLink: Controller Initialized!...
2019-04-19 12:51:30.415 Status: RFLink Detected, Version: 1.1 Revision: 48 Build: 4
2019-04-19 12:51:30.006 Error: (Pizigate) Missing wiringpi module, please install
2019-04-19 12:51:30.158 Error: (Pizigate) onMessage : Frame size is bad, computed = 7 received = 13
2019-04-19 12:51:39.378 (Pizigate) FirmwareVersion not ready
2019-04-19 12:51:44.387 (Pizigate) FirmwareVersion not ready
2019-04-19 12:51:49.396 (Pizigate) FirmwareVersion not ready
2019-04-19 12:52:16.881 (Pizigate) FirmwareVersion not ready
2019-04-19 12:52:16.881 (Pizigate) Try to get Firmware version once more 4
2019-04-19 12:52:21.844 Status: (Pizigate) ZigateConf setting Channel(s) to: ['11', '15', '19', '20', '25', '26']
2019-04-19 12:52:21.844 Status: (Pizigate) setChannel - Channel set to : 06188800
2019-04-19 12:52:21.845 Status: (Pizigate) Set Zigate as a Coordinator
2019-04-19 12:52:21.845 Status: (Pizigate) ZigateConf - Setting UTC Time to : 608993541
2019-04-19 12:52:21.845 Status: (Pizigate) Start network
2019-04-19 12:52:26.860 (Pizigate) FirmwareVersion not ready
2019-04-19 12:52:31.873 (Pizigate) FirmwareVersion not ready
2019-04-19 12:52:34.680 (Pizigate) UpdateDevice - ( Door-4) 1:Open
2019-04-19 12:52:34.923 Status: (Pizigate) Zigate in Permit Join: On
2019-04-19 12:52:35.043 Status: (Pizigate) Zigate addresses ieee: 00158d0001ed3322 , short addr: 0000
2019-04-19 12:52:35.043 Status: (Pizigate) Network state UP, PANID: 8912 extPANID: 0x87d040d795e4c963 Channel: 11
2019-04-19 12:52:35.150 Status: (Pizigate) Number of devices recently active in Zigate = 7
2019-04-19 12:52:35.253 Status: (Pizigate) Zigate addresses ieee: 00158d0001ed3322 , short addr: 0000
2019-04-19 12:52:35.253 Status: (Pizigate) Network state UP, PANID: 8912 extPANID: 0x87d040d795e4c963 Channel: 11
2019-04-19 12:52:35.360 Status: (Pizigate) Zigate addresses ieee: 00158d0001ed3322 , short addr: 0000
2019-04-19 12:52:35.360 Status: (Pizigate) Network state UP, PANID: 8912 extPANID: 0x87d040d795e4c963 Channel: 11
2019-04-19 12:52:35.466 Status: (Pizigate) Major Version Num: 0003
2019-04-19 12:52:35.466 Status: (Pizigate) Installer Version Number: 030f
2019-04-19 12:52:36.873 Status: (Pizigate) Plugin with Zigate firmware 030f correctly initialized
2019-04-19 12:52:41.999 (Pizigate) Start Network status : Success
2019-04-19 12:52:41.998 Status: (Pizigate) Busy Node
2019-04-19 12:52:42.202 Status: (Pizigate) Zigate addresses ieee: 00158d0001ed3322 , short addr: 0000
2019-04-19 12:52:42.202 Status: (Pizigate) Network state UP, PANID: 8912 extPANID: 0x87d040d795e4c963 Channel: 11

Re: Plugin is not started aussi...

Publié : 19 avr. 2019, 14:08
par pipiche
Cela me semble suspect !

D'après ce que tu dis, tu as supprimé le fichier rc.local, mais celui-ci est toujours pris en compte. Si ce n'est pas lui, c'est fait ailleurs, car je te confirme qu'au niveau du plugin ce n'est pas fait. Ce n'est pas le plugin qui met la Zigate en mode run.