Re: [Plugin Tiers] Xiaomi Home
Publié : 14 déc. 2017, 21:47
Ah bah oui en effet ! C'est la version du 12/12 Je comprends mieux ! J'attendrai la stable sagement alors !
ça signifie qu'on pourra poller le capteur de mouvement pour récupérer la lumière même sans mouvements ?
Bonjour @lunaroklaussetdelon a écrit : ↑13 déc. 2017, 02:29En mode débug, je vois quelque chose qui m'étonne. Dans les lignes de debug, je retrouve des valeurs différentes à chaque fois dans la trame qui suit u'token :laussetdelon a écrit : ↑13 déc. 2017, 01:44Je viens de tout désinstaller : gateway, plugin... vider le cache dans Jeedom
Réinstallation du plugin, réinstallation du gateway depuis Android (je l'avais connecté depuis ios la 1ère fois)
Tout se passe très bien, je peux commander le gateway depuis Jeedom.
Après exactement 2 minutes (toujours 2 minutes), l’émission des connexions HTTP s'arrêtent et plus rien.
Pas d'autres informations dans le log
Le token n'a pas changé entre temps.
Depuis les téléphone, je peux toujours faire ce que je veux avec le Gateway.
Si je relance le demon, çà repart pour 2 minutes
Help
MErciC'est peut-être normal mais je me serais attendu à voir passer le token que j'ai saisi dans chacune de ligne...Code : Tout sélectionner
u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'QRo85rtdX4gPC1KR' u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'HXYHJ9C8SJ8oqjQP' u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'4scNUehd0Tzrq7sE'
Code : Tout sélectionner
2017/12/16 00:11:11 [error] 33#0: *5939 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function pingHost() on boolean in /usr/share/nginx/www/jeedom/plugins/xiaomihome/core/class/xiaomihome.class.php on line 720" while reading response header from upstream, client: 192.168.xx.xx, server: , request: "POST /core/ajax/cmd.ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.xx.xx", referrer: "http://192.168.xx.xx/index.php?v=d&m=xiaomihome&p=xiaomihome&id=162&saveSuccessFull=1"
Merci mais c'est réglé. J'ai mis à jour RASPBIAN et ma sauvegarde n'a pas fonctionné .... donc j'ai tout ré-installé !magicgg91 a écrit : ↑11 déc. 2017, 21:28Bonjour,Chnours2056 a écrit : ↑11 déc. 2017, 20:56Bonjour à tous, J'ai jeté un oeil sur toutes les pages, mais je ne trouve pas de solution à mon probleme malgrés quelques test.
Je n'arrive tout simplement pas à installer les dépendances .... voici le log
Code : Tout sélectionner
[2017-12-11 19:49:15][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=xiaomihome function=remove callInstallFunction=1 [2017-12-11 19:51:59][INFO] : Début d'activation du plugin [2017-12-11 19:52:06][INFO] : Info sur le démon : Array ( [log] => xiaomihome [state] => nok [launchable] => nok [launchable_message] => Gestion automatique désactivée [auto] => 0 [last_launch] => Inconnue ) [2017-12-11 19:52:06][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=xiaomihome function=install callInstallFunction=1
Ce ne sont pas les logs des dépendances
Code : Tout sélectionner
[2017-12-16 18:27:20][DEBUG] : execute : action aquara on
[2017-12-16 18:27:47][DEBUG] : execute : action aquara off
[2017-12-16 18:30:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 18:35:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 18:40:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 18:45:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 18:50:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 18:55:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:00:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:05:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:10:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:15:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:21:04][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:26:04][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:31:04][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:35:04][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:40:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:45:01][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:48:13][DEBUG] : execute : action aquara on
[2017-12-16 19:50:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 19:54:46][DEBUG] : execute : action aquara on
[2017-12-16 19:55:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:00:03][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:05:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:10:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:15:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:20:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:25:01][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:30:03][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:35:02][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:40:20][DEBUG] : Refresh de Aqara : Gateway
[2017-12-16 20:45:06][DEBUG] : Refresh de Aqara : Gateway
Code : Tout sélectionner
{"error":"Invalid key"}
J'ai laissé ma gateway toute la nuit, elle n'est pas remontée dans Jeedom.
Code : Tout sélectionner
[2017-12-17 08:56:25][INFO] : Lancement démon xiaomihome : /usr/bin/python /var/www/html/plugins/xiaomihome/resources/xiaomihomed/xiaomihomed.py --loglevel debug --socketport 55019 --callback http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php --apikey eBfDluIMPEyeRhPmQPm6MFv01feukr4G --cycle 0.05 --pid /tmp/jeedom/xiaomihome/deamon.pid
[2017-12-17 08:56:28][INFO] : Start xiaomihomed
[2017-12-17 08:56:28][INFO] : Log level : debug
[2017-12-17 08:56:28][INFO] : Socket port : 55019
[2017-12-17 08:56:28][INFO] : Socket host : 127.0.0.1
[2017-12-17 08:56:28][INFO] : PID file : /tmp/jeedom/xiaomihome/deamon.pid
[2017-12-17 08:56:28][INFO] : Apikey : XXXXXXXXXXXXXXXXXXXXX
[2017-12-17 08:56:28][INFO] : Callback : http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php
[2017-12-17 08:56:28][INFO] : Cycle : 0.05
[2017-12-17 08:56:28][DEBUG] : Writing PID 6376 to /tmp/jeedom/xiaomihome/deamon.pid
[2017-12-17 08:56:28][DEBUG] : Init request module v2.18.4
[2017-12-17 08:56:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[b][2017-12-17 08:56:28][DEBUG] : Format Invalide[/b]
[2017-12-17 08:56:28][DEBUG] : http://127.0.0.1:80 "GET /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXX HTTP/1.1" 200 0
[2017-12-17 08:56:28][DEBUG] : Socket interface started
[2017-12-17 08:56:28][INFO] : Start listening...
[2017-12-17 08:56:28][DEBUG] : Read Socket Thread Launched
[2017-12-17 08:56:28][DEBUG] : Aquara Thread Launched
[2017-12-17 08:56:28][DEBUG] : LoopNetServer Thread started
[2017-12-17 08:56:28][DEBUG] : Listening on: [127.0.0.1:55019]
Code : Tout sélectionner
nmap -sU -p 9898 192.168.31.48
Code : Tout sélectionner
Note : Host seems down.
Nmap done : 1 IP adress (0 hosts up) scanned in 0.44 seconds