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:
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 ....
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
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
@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),
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
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.