Page 245 sur 315

Re: [Plugin Tiers] Xiaomi Home

Publié : 23 mars 2018, 12:16
par jimbo7384
Côté réseau je suis en default donc connecté a mon bond1 pas de vlan...

Edit : Je vais faire un test avec une debian 9.1 pour voir ce que ça donne.
peut-être un problème de compatibilité avec mon matériel ? j'ai une centrale domotique xiaomi aqara je vais mettre les réfs quand je serais rentré à la maison.

Re: [Plugin Tiers] Xiaomi Home

Publié : 23 mars 2018, 18:36
par Dapolux
Bonjour,

Je constate un délais de réponse assez long (entre 1 à 2 secondes) suite au click du un bouton aquara. Après avoir parcouru le forum, visiblement d'autres ont le même problème, mais je n'ai pas vu de solution, une idée?

Hardware:
Partie switch: Bouton Aquara --> Gateway Xiaomi V2
Partie pilotée: Relais connecté à un Wemos (ESPEasy)
Jeedom @ RPI3

Test 1:
Si je click sur le bouton On ou Off dans jeedom associé au relais (Plugin ESPEasy), l'action sur le relais est instantanée

Test 2:
J'ai un scenario qui capte le changement d'état du bouton pour activer/désactiver le relais
Capture.JPG
Capture.JPG (37.74 Kio) Consulté 2683 fois
Si je click sur le bouton physique (Bouton 4), alors l'action sur le relais (Switch 3) met 1 à 2 secondes.

A priori je dirais que c'est soit la communication avec la gateway qui est longue, soit le scenario, mais pour le coup il reste assez minimaliste, même avec un RPI3 (et au global je n'ai qu'une 15ène de scénarios).

Re: [Plugin Tiers] Xiaomi Home

Publié : 23 mars 2018, 21:34
par KiDom
Essaye avec ton scenario en mode synchrone et sans logs.
(à configurer sur la page Général de ton scénario)

Re: [Plugin Tiers] Xiaomi Home

Publié : 23 mars 2018, 22:02
par jimbo7384
lunarok peut-tu me confirmer la compatibilité avec le kit suivant :
https://www.banggood.com/Xiaomi-5-in-1- ... rehouse=CN

J'ai ceci noté derrière la boite :
q/qlm001-2015
q/qlm002-2015
q/qlm003-2015
q/qlm004-2015
q/qlm005-2016

je ne parviens toujours pas à faire fonctionner le plugins je n'ai aucun équipement reconnu y'as t-il quelque chose à faire de spécifique pour voir tout les équipements (déclaration manuelle d'un équipement ?)

Je suis vraiment frustré tout le monde parviens à faire fonctionner la solution...

Re: [Plugin Tiers] Xiaomi Home

Publié : 23 mars 2018, 22:34
par Dapolux
KiDom a écrit :
23 mars 2018, 21:34
Essaye avec ton scenario en mode synchrone et sans logs.
(à configurer sur la page Général de ton scénario)
Merci pour l'idée, mais après avoir testé, ça ne change pas vraiment

Re: [Plugin Tiers] Xiaomi Home

Publié : 24 mars 2018, 08:11
par Swr
Bonjour,

Depuis environ 1 semaine, je n'ai plus de réponse du SWITCH / CUBE / GATEWAY, il semble que les remontées de température fonctionnent, car j'ai bien l'historique

J'ai tenté de changer le password, supprimer et réinsérer : mais sans résultat

Dépendances et démon sont au vert

nota : la yeelight est débranchée (donc normal d'avoir une erreur sur cette ligne)


Voici les logs, merci d'avance de vos éclairages :idea:


[2018-03-24 08:01:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:01:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:01:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:02:04] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:02:04] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:02:07] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'H2eJAfg2NY4kiJ4N', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'H2eJAfg2NY4kiJ4N', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:23][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'0KMyheK4t3gmNiEy', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'G2Td8Cr7AHtQR0oI', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'fNWTLCfbf3hL6mKJ', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'tpOp2wMTp6EiU67J', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'vcDuYWhx7LjVUXbo', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:02:23][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'vcDuYWhx7LjVUXbo', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:23][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:24][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:02:31][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'PbT2pn7WOzUA8Fr8', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:31][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'PbT2pn7WOzUA8Fr8', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:31][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:31][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:02:40][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'vwVOcFFdteGrQXeb', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:40][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'vwVOcFFdteGrQXeb', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:40][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:03:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:03:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:03:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:04:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:04:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:04:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:04:37] xiaomihome.DEBUG: execute : action aquara rgb-set [] []
[2018-03-24 08:04:37][DEBUG] : Client connected to [127.0.0.1:53364]
[2018-03-24 08:04:37][DEBUG] : Message read from socket: {"apikey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx","type":"aquara","cmd":"send","dest":"192.168.1.19","password":"f7wnqafhtvnlwj4v","model":"gateway","sidG":"286c078881bf","sid":"286c078881bf","short_id":"0","switch":"rgb","request":838893632,"vol":""}
[2018-03-24 08:04:37][DEBUG] : Client disconnected from [127.0.0.1:53364]
[2018-03-24 08:04:38][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2018-03-24 08:04:38][DEBUG] : Received command from jeedom : send
[2018-03-24 08:04:38][DEBUG] : Executing action on : gateway
[2018-03-24 08:04:38][DEBUG] : executing {u'apikey': u'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx', u'short_id': u'0', u'dest': u'192.168.1.19', u'cmd': u'send', u'request': 838893632, u'vol': u'', u'switch': u'rgb', u'sid': u'286c078881bf', u'model': u'gateway', u'password': u'f7wnqafhtvnlwj4v', u'type': u'aquara', u'sidG': u'286c078881bf'}
[2018-03-24 08:04:38][DEBUG] : {u'cmd': u'write_ack', u'data': u'{"error":"Invalid key"}', u'sid': u'286c078881bf'}
[2018-03-24 08:04:42] xiaomihome.DEBUG: execute : action aquara on [] []
[2018-03-24 08:04:42][DEBUG] : Client connected to [127.0.0.1:53414]
[2018-03-24 08:04:42][DEBUG] : Message read from socket: {"apikey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx","type":"aquara","cmd":"send","dest":"192.168.1.19","password":"f7wnqafhtvnlwj4v","model":"gateway","sidG":"286c078881bf","sid":"286c078881bf","short_id":"0","switch":"rgb","request":838893632,"vol":""}
[2018-03-24 08:04:42][DEBUG] : Client disconnected from [127.0.0.1:53414]
[2018-03-24 08:04:42][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2018-03-24 08:04:42][DEBUG] : Received command from jeedom : send
[2018-03-24 08:04:42][DEBUG] : Executing action on : gateway
[2018-03-24 08:04:42][DEBUG] : executing {u'apikey': u'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx', u'short_id': u'0', u'dest': u'192.168.1.19', u'cmd': u'send', u'request': 838893632, u'vol': u'', u'switch': u'rgb', u'sid': u'286c078881bf', u'model': u'gateway', u'password': u'f7wnqafhtvnlwj4v', u'type': u'aquara', u'sidG': u'286c078881bf'}
[2018-03-24 08:04:43][DEBUG] : {u'cmd': u'write_ack', u'data': u'{"error":"Invalid key"}', u'sid': u'286c078881bf'}
[2018-03-24 08:05:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:05:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:05:06] xiaomihome.DEBUG: Rafraîchissement de Aqara : Gateway [] []
[2018-03-24 08:05:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:05:09][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'B6ExJ2AK4UU0qD3X', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:05:09][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'B6ExJ2AK4UU0qD3X', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:05:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:05:09][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'fZh2Fz3FMvI41ZWK', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:05:09][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'2CoqXWTmt2zocZus', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:05:09][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:05:09][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'2CoqXWTmt2zocZus', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:05:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:05:10][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0

Re: [Plugin Tiers] Xiaomi Home

Publié : 24 mars 2018, 12:11
par Swr
Swr a écrit :
24 mars 2018, 08:11
Bonjour,

Depuis environ 1 semaine, je n'ai plus de réponse du SWITCH / CUBE / GATEWAY, il semble que les remontées de température fonctionnent, car j'ai bien l'historique

J'ai tenté de changer le password, supprimer et réinsérer : mais sans résultat

Dépendances et démon sont au vert

nota : la yeelight est débranchée (donc normal d'avoir une erreur sur cette ligne)


Voici les logs, merci d'avance de vos éclairages :idea:


[2018-03-24 08:01:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:01:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:01:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:02:04] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:02:04] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:02:07] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'H2eJAfg2NY4kiJ4N', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'H2eJAfg2NY4kiJ4N', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:23][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'0KMyheK4t3gmNiEy', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'G2Td8Cr7AHtQR0oI', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'fNWTLCfbf3hL6mKJ', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'tpOp2wMTp6EiU67J', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'vcDuYWhx7LjVUXbo', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:23][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:02:23][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'vcDuYWhx7LjVUXbo', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:23][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:24][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:02:31][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'PbT2pn7WOzUA8Fr8', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:31][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'PbT2pn7WOzUA8Fr8', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:31][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:31][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:02:40][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'vwVOcFFdteGrQXeb', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:02:40][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'vwVOcFFdteGrQXeb', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:02:40][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:02:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:03:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:03:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:03:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:04:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:04:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:04:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:04:37] xiaomihome.DEBUG: execute : action aquara rgb-set [] []
[2018-03-24 08:04:37][DEBUG] : Client connected to [127.0.0.1:53364]
[2018-03-24 08:04:37][DEBUG] : Message read from socket: {"apikey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx","type":"aquara","cmd":"send","dest":"192.168.1.19","password":"f7wnqafhtvnlwj4v","model":"gateway","sidG":"286c078881bf","sid":"286c078881bf","short_id":"0","switch":"rgb","request":838893632,"vol":""}
[2018-03-24 08:04:37][DEBUG] : Client disconnected from [127.0.0.1:53364]
[2018-03-24 08:04:38][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2018-03-24 08:04:38][DEBUG] : Received command from jeedom : send
[2018-03-24 08:04:38][DEBUG] : Executing action on : gateway
[2018-03-24 08:04:38][DEBUG] : executing {u'apikey': u'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx', u'short_id': u'0', u'dest': u'192.168.1.19', u'cmd': u'send', u'request': 838893632, u'vol': u'', u'switch': u'rgb', u'sid': u'286c078881bf', u'model': u'gateway', u'password': u'f7wnqafhtvnlwj4v', u'type': u'aquara', u'sidG': u'286c078881bf'}
[2018-03-24 08:04:38][DEBUG] : {u'cmd': u'write_ack', u'data': u'{"error":"Invalid key"}', u'sid': u'286c078881bf'}
[2018-03-24 08:04:42] xiaomihome.DEBUG: execute : action aquara on [] []
[2018-03-24 08:04:42][DEBUG] : Client connected to [127.0.0.1:53414]
[2018-03-24 08:04:42][DEBUG] : Message read from socket: {"apikey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx","type":"aquara","cmd":"send","dest":"192.168.1.19","password":"f7wnqafhtvnlwj4v","model":"gateway","sidG":"286c078881bf","sid":"286c078881bf","short_id":"0","switch":"rgb","request":838893632,"vol":""}
[2018-03-24 08:04:42][DEBUG] : Client disconnected from [127.0.0.1:53414]
[2018-03-24 08:04:42][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2018-03-24 08:04:42][DEBUG] : Received command from jeedom : send
[2018-03-24 08:04:42][DEBUG] : Executing action on : gateway
[2018-03-24 08:04:42][DEBUG] : executing {u'apikey': u'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx', u'short_id': u'0', u'dest': u'192.168.1.19', u'cmd': u'send', u'request': 838893632, u'vol': u'', u'switch': u'rgb', u'sid': u'286c078881bf', u'model': u'gateway', u'password': u'f7wnqafhtvnlwj4v', u'type': u'aquara', u'sidG': u'286c078881bf'}
[2018-03-24 08:04:43][DEBUG] : {u'cmd': u'write_ack', u'data': u'{"error":"Invalid key"}', u'sid': u'286c078881bf'}
[2018-03-24 08:05:05] xiaomihome.DEBUG: Rafraîchissement de Yeelight : Yeelight [] []
[2018-03-24 08:05:05] xiaomihome.DEBUG: execute : action yeelight refresh [] []
[2018-03-24 08:05:06] xiaomihome.DEBUG: Rafraîchissement de Aqara : Gateway [] []
[2018-03-24 08:05:08] xiaomihome.DEBUG: Equipement Yeelight déconnecté : Yeelight [] []
[2018-03-24 08:05:09][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'B6ExJ2AK4UU0qD3X', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:05:09][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'B6ExJ2AK4UU0qD3X', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:05:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:05:09][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'fZh2Fz3FMvI41ZWK', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:05:09][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'2CoqXWTmt2zocZus', u'sid': u'286c078881bf', u'model': u'gateway', u'data': u'{"ip":"192.168.1.19"}'}
[2018-03-24 08:05:09][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
[2018-03-24 08:05:09][DEBUG] : Send to jeedom : {u'devices': {u'aquara_286c078881bf': {'short_id': u'0', 'cmd': u'heartbeat', 'source': '192.168.1.19', 'token': u'2CoqXWTmt2zocZus', 'sid': u'286c078881bf', 'model': u'gateway', 'data': {u'ip': u'192.168.1.19'}}}}
[2018-03-24 08:05:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-24 08:05:10][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx HTTP/1.1" 200 0
une idée? une piste?

Re: [Plugin Tiers] Xiaomi Home

Publié : 24 mars 2018, 12:17
par lunarok
4h et on relance, un weekend le matin .... pour un pb qui est là depuis une semaine en mode je met les logs et on va médire quoi faire...

Envoyé de mon ONEPLUS A5010 en utilisant Tapatalk


Re: [Plugin Tiers] Xiaomi Home

Publié : 24 mars 2018, 13:12
par Swr
lunarok a écrit :
24 mars 2018, 12:17
4h et on relance, un weekend le matin .... pour un pb qui est là depuis une semaine en mode je met les logs et on va médire quoi faire...

Envoyé de mon ONEPLUS A5010 en utilisant Tapatalk
je ne sais pas si ce message m'est destiné?
Relax, je demande de l'aide, sur un plugin qui a fonctionné pendant longtemps et qui d'un coup bloque.
Par ailleurs, j'ai essayé plusieurs pistes sans succès.

Re: [Plugin Tiers] Xiaomi Home

Publié : 25 mars 2018, 01:49
par galaksy2001
Pour les possesseurs de yeelights, je partage un enchaînement de type "disco arc en ciel" :

Code : Tout sélectionner

0 recover rgb,255,0,0,5000,100-rgb,255,255,0,5000,100-rgb,255,255,255,5000,100-rgb,0,255,0,5000,100-rgb,0,255,255,5000,100-rgb,0,0,255,5000,100-rgb,255,0,255,5000,100
Pour changer la vitesse de transition entre chaque couleur -> modifier la valeur "5000"

Bonne teuf 8-)

Re: [Plugin Tiers] Xiaomi Home

Publié : 25 mars 2018, 01:59
par znation
Je reste ça demain merci ;-)

Envoyé de mon SM-G930F en utilisant Tapatalk


Re: [Plugin Tiers] Xiaomi Home

Publié : 27 mars 2018, 16:57
par mikey1869
Bonjour

Depuis l'installation de la nouvelle version stable du plugin xiaomi home tous mes capteurs xiaomi ne fonctionnent plus.après vérification le demon est arrété avec dans l'onglet configuration le message dépendances non installé. Lorsque je relance l'install des dépendances il n'arrive pas à les installer .voici les messages erreur dans le log des dépendances. Tout fonctionnait bien avant cette MAJ

.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qpixml8f-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-kgwg13l5/pycrypto/


build/temp.linux-aarch64-3.4/src/MD2.o
src/MD2.c:31:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-kgwg13l5/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qpixml8f-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-kgwg13l5/pycrypto/
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the
  • section) to disable this warning.
    DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the
    • section) to disable this warning.
      ********************************************************
      * Installation terminée *
      ********************************************************

      Pour info je suis sur un box jeedom smart.
      Merci pour vos conseils pour m'en sortir

Re: [Plugin Tiers] Xiaomi Home

Publié : 27 mars 2018, 19:21
par f6dmn
Bonjour,
j ai eu la meme chose (voir page 244) j ai du réinstaller ma smart en recovery ...je n ai pas trouvé de commande en ssh pour réparer Domadoo me disait de voir avec @Lunarok et ce denier m'a indiqué que le plug ni était pour rien .
..j ai contacté Jeedom ...pas eu de réponse !!!!

Re: [Plugin Tiers] Xiaomi Home

Publié : 27 mars 2018, 20:31
par mikey1869
Re-bonjour
Cela ne vient pas du plugin par lui même car j'ai le meme soucis avec le plugin blea et broadlink. il à désinstallé les dépendances et ne peut les reinstaller avec la meme erreur pour les 3 plugin. Je vais faire un recovery de ma box. Je vais quand meme essayer d'ouvrir un ticket aupres de jeedom. J'ai l'impression qu'il ne trouve pas un fichier pour l'install de python.
Merci pour ton aide

Re: [Plugin Tiers] Xiaomi Home

Publié : 28 mars 2018, 14:21
par adizanni
Bonjour,

je reviens avec un témoignage suite a des multiples problèmes que j'ai eu sur le plugin Xiaomi. J’espère que ça puisse aider d'autres a résoudre leurs problèmes. Tout d'abord je voudrais dire que le plugin est de très bonne qualité et qu'il vaut l'argent qu'il coûte. L'effort de maintenir une intégration avec une plateforme aux APIs assez opaques mérite tous nos applaudissements. Aussi le matériel est de très bonne conception et Xiaomi fait suffisamment d'effort pour ouvrir la plateforme.

Ceci dit, suite a des problèmes sur mes détecteurs de présence et mouvement (toutes génération confondues), j'ai fait mes analyses pour arriver a ces conclusions (qui restent empiriques et probablement liés a la configuration de ma domotique):
  • Le plugin Jeedom est plus stable du moment ou on bloque la communication entre la Gateway et le cloud Xiaomi par le biais du parental contrôle sur le routeur. Mes motion sensors, par exemple, ne communiquaient pas régulièrement le 'no_motion' évent alors que depuis le blocage réseau, le no_motion est communique sans faille. Ceci est peut être du au fait que le trafic réseau généré par la Gateway est multiplié par le dialogue avec le cloud et, au passage, des paquet s'y perdent
  • Il est préférable d'avoir un Access point WiFi (AP) unique et performant pour la Gateway. Il est vrai que je n'ai pas chez moi un équipement réseau de haute qualité, mais la présence de 2 AP visibles par la Gateway, génère du roaming qui se répercute sur la stabilité du trafic
Malheuresement, j'ai remarqué que, le blocage de l’accès au Cloud Xiaomi n'est pas sans frais. J'ai par exemple perdu sur Jeedom des info comme la Puissance Consomme' par les plug, qui en revanche, est remontée lorsque le Cloud est accessible.

Il y a beaucoup de facteurs qui influencent le comportement du materiel et du plugin (qualité radio entre capteurs et gateway, qualite' wifi entre Gateway et Routeur, qualité de l’équipement réseau, versions du matériel et des firmwares, version des plugins, capacité et encombrement de la box Jeedom) que je n'ai pas l'ambition de généraliser. Globalement le rapport qualité/prix de l'ensemble est stupéfiant, mais il faut se préparer a faire du tuning; aucun des problèmes mentionnés n'est blocant.

S'il y a des choses déjà connues parmi celle que j'ai dit, je vous prie de m'excuser.

adz

Re: [Plugin Tiers] Xiaomi Home

Publié : 28 mars 2018, 14:26
par mikey1869
mon pb à été résolu par le support jeedom il faut installer la python3-dev
sudo apt-get install python-dev
sudo apt-get install python3-dev
Apres cette commande les dépendances se sont bien installée, et j'ai retrouvé le plugin xiaomi ok il à put installer les dépendances
Merci à tous

Re: [Plugin Tiers] Xiaomi Home

Publié : 28 mars 2018, 15:49
par f6dmn
Merci du retour "Mikey1869"
si j'avais eu seulement cette info la semaine derniere ....j'aurais des cheveux en plus...

Re: [Plugin Tiers] Xiaomi Home

Publié : 31 mars 2018, 11:04
par team18fr
Salut je viens de recevoir ma lampe de bureau xiaomi et l'intégration avec Jeedom c'est très bien passé mais depuis j'ai un message d'erreur dans les log :

Code : Tout sélectionner

[2018-03-31 10:49:29][ERROR] : Exception on socket : {u'message': u'invalid command', u'code': -1}
j'ai vu que d'autres personnes avaient eu ce message et je n'ai pas trouvé la solution. Ce que j'ai remarqué c'est qu'il revient toute les minutes et que la seule chose qui ne fonctionne pas c'est le status.
Si ça peut aider.

Re: [Plugin Tiers] Xiaomi Home

Publié : 31 mars 2018, 16:59
par kike.herrera
J'ai le même problème. Dans mon cas, la lampe met à jour l'état à 15 ou 20 minutes. avec l'autre plugin avec lequel vous pouvez gérer cette lampe, wifilight2, cela fonctionne sans problème

Re: [Plugin Tiers] Xiaomi Home

Publié : 10 avr. 2018, 08:58
par stanthewizzard
Hello

Depuis 48h, mes click ne fonctionnent plus.
Il y a bien une action dans le log de l'app mais aucun effet sur jeedom qui ne voit rien.
Aucune comm

Merci pour l'aide que pourriez m'apporter dans la resolution de mon pb
:)


{"apikey":"xxxxxxxxxxx","type":"aquara","model":"read","cmd":"refresh","dest":"192.168.0.85","password":"","sidG":"34ce008ae057","sid":"34ce008ae057"}
[2018-04-10 07:44:53][DEBUG] : Client disconnected from [127.0.0.1:38747]
[2018-04-10 07:44:53][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2018-04-10 07:44:53][DEBUG] : Received command from jeedom : refresh
[2018-04-10 07:44:53][DEBUG] : Refreshing : read
[2018-04-10 07:44:53][DEBUG] : executing {u'apikey': xxxxxxxx', u'dest': u'192.168.0.85', u'cmd': u'refresh', u'sid': u'34ce008ae057', u'model': u'read', u'password': u'', u'type': u'aquara', u'sidG': u'34ce008ae057'}
[2018-04-10 07:44:53][ERROR] : Exception on socket : Key cannot be the null string
[2018-04-10 07:45:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 07:50:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 07:55:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:00:34][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:05:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:10:34][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:15:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:20:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:25:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:30:34][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:35:32][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:40:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:45:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:50:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi
[2018-04-10 08:55:33][DEBUG] : Rafraîchissement de Aqara : Gateway Xiaomi