Bonjour à tous
Je suis le développeur du plugin Humidificateur sous eedomus.
Comme l’a dit @technoman63, il ne fonctionne plus mais ce n’est pas lié à l’humidificateur lui même car sa prise en charge reste totale notamment sous Home Assistant.
J’avais récupérer des bouts de code à droite à gauche depuis l’api python miio et un autre plugin aspirateur sur eedomus. Pour faite bien il aurait fallu réécrire totalement un plugin XiaomiHome en utilisant la lib Xiamoi miio. Bref la n’est pas le problème…
Etant en train de migrer de eedomus vers Jeedom, je teste tous mes équipements sur jeedom et je tombe donc sur le problème de l’humidificateur.
Celui ci est bien détecté avec le token. Pas de soucis jusqu’à là.
En revanche dans le dashboard tout est à 0 et j’ai des erreurs dans les logs qui se trouvent ci-après.
Je suis en Jeedom v4 et la derniere version du plugin Xiaomi Home installée ce jour.
@lunarok, si tu as besoin d’un coup de main pour debug, je suis dispo.
#plugin-xiaomihome
Merci à tous !
[2020-04-06 09:56:28][ERROR] : Exception on socket : 'result'
[2020-04-06 09:57:00][ERROR] : Exception on socket : 'result'
[2020-04-06 10:00:11][ERROR] : Exception on socket : 'result'
[2020-04-06 10:01:58][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 8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14 --cycle 0.05 --pid /tmp/jeedom/xiaomihome/deamon.pid
[2020-04-06 10:01:58][INFO] : Start xiaomihomed
[2020-04-06 10:01:58][INFO] : Log level : debug
[2020-04-06 10:01:58][INFO] : Socket port : 55019
[2020-04-06 10:01:58][INFO] : Socket host : 127.0.0.1
[2020-04-06 10:01:58][INFO] : PID file : /tmp/jeedom/xiaomihome/deamon.pid
[2020-04-06 10:01:58][INFO] : Apikey : 8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14
[2020-04-06 10:01:58][INFO] : Callback : http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php
[2020-04-06 10:01:58][INFO] : Cycle : 0.05
[2020-04-06 10:01:58][DEBUG] : Writing PID 24720 to /tmp/jeedom/xiaomihome/deamon.pid
[2020-04-06 10:01:58][DEBUG] : Init request module v2.21.0
[2020-04-06 10:01:58][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-04-06 10:01:58][DEBUG] : Format Invalide
[2020-04-06 10:01:58][DEBUG] : http://127.0.0.1:80 "GET /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14 HTTP/1.1" 200 0
[2020-04-06 10:01:58][DEBUG] : Socket interface started
[2020-04-06 10:01:58][INFO] : Start listening...
[2020-04-06 10:01:58][DEBUG] : Read Socket Thread Launched
[2020-04-06 10:01:58][DEBUG] : Aquara Thread Launched
[2020-04-06 10:01:58][DEBUG] : LoopNetServer Thread started
[2020-04-06 10:01:58][DEBUG] : Listening on: [127.0.0.1:55019]
[2020-04-06 10:03:35][DEBUG] : Client connected to [127.0.0.1:43680]
[2020-04-06 10:03:35][DEBUG] : Message read from socket: {"apikey":"8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14","type":"wifi","cmd":"discover","dest":"192.168.2.172","token":"d4224352b10a2bbe7b37ab47ac461af0","model":"humidifier2"}
[2020-04-06 10:03:35][DEBUG] : Client disconnected from [127.0.0.1:43680]
[2020-04-06 10:03:35][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-04-06 10:03:35][DEBUG] : Received command from jeedom : discover
[2020-04-06 10:03:35][DEBUG] : Discovering : humidifier2
[2020-04-06 10:03:35][DEBUG] : Found the device : 192.168.2.172
[2020-04-06 10:03:35][DEBUG] : Send to jeedom : {'devices': {'wifi': {'ip': u'192.168.2.172', 'token': 'd4224352b10a2bbe7b37ab47ac461af0', 'devtype': '12a7', 'found': 1, 'model': u'humidifier2', 'serial': '9fc5'}}}
[2020-04-06 10:03:35][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-04-06 10:03:35][DEBUG] : execute : action wifi refresh
[2020-04-06 10:03:35][DEBUG] : Client connected to [127.0.0.1:43684]
[2020-04-06 10:03:35][DEBUG] : Message read from socket: {"apikey":"8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14","type":"wifi","cmd":"refresh","model":"humidifier2","dest":"192.168.2.172","token":"d4224352b10a2bbe7b37ab47ac461af0","devtype":"12a7","serial":"9fc5"}
[2020-04-06 10:03:35][DEBUG] : Client disconnected from [127.0.0.1:43684]
[2020-04-06 10:03:35][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14 HTTP/1.1" 200 0
[2020-04-06 10:03:35][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-04-06 10:03:35][DEBUG] : Received command from jeedom : refresh
[2020-04-06 10:03:35][DEBUG] : Refreshing : humidifier2
[2020-04-06 10:03:35][DEBUG] : {"params": ["humidity", "depth", "temp_dec", "power", "mode", "led_b", "buzzer", "child_lock", "limit_hum", "trans_level"], "id": 47461, "method": "get_prop"}
[2020-04-06 10:03:39][DEBUG] : {"id":47461,"error":{"code":-9999,"message":"user ack timeout"}}
[2020-04-06 10:03:39][ERROR] : Exception on socket : 'result'
[2020-04-06 10:05:04][DEBUG] : Rafraîchissement de XiaomiWifi : humidifier v2
[2020-04-06 10:05:04][DEBUG] : Client connected to [127.0.0.1:43686]
[2020-04-06 10:05:04][DEBUG] : Message read from socket: {"apikey":"8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14","type":"wifi","cmd":"refresh","model":"humidifier2","dest":"192.168.2.172","token":"d4224352b10a2bbe7b37ab47ac461af0","devtype":"12a7","serial":"9fc5"}
[2020-04-06 10:05:04][DEBUG] : Client disconnected from [127.0.0.1:43686]
[2020-04-06 10:05:04][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-04-06 10:05:04][DEBUG] : Received command from jeedom : refresh
[2020-04-06 10:05:04][DEBUG] : Refreshing : humidifier2
[2020-04-06 10:05:04][DEBUG] : {"params": ["humidity", "depth", "temp_dec", "power", "mode", "led_b", "buzzer", "child_lock", "limit_hum", "trans_level"], "id": 13573, "method": "get_prop"}
[2020-04-06 10:05:09][DEBUG] : {"id":13573,"error":{"code":-9999,"message":"user ack timeout"}}
[2020-04-06 10:05:09][ERROR] : Exception on socket : 'result'
[2020-04-06 10:05:26][DEBUG] : execute : action wifi refresh
[2020-04-06 10:05:26][DEBUG] : Client connected to [127.0.0.1:43692]
[2020-04-06 10:05:26][DEBUG] : Message read from socket: {"apikey":"8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14","type":"wifi","cmd":"refresh","model":"humidifier2","dest":"192.168.2.172","token":"d4224352b10a2bbe7b37ab47ac461af0","devtype":"12a7","serial":"9fc5"}
[2020-04-06 10:05:26][DEBUG] : Client disconnected from [127.0.0.1:43692]
[2020-04-06 10:05:26][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-04-06 10:05:26][DEBUG] : Received command from jeedom : refresh
[2020-04-06 10:05:26][DEBUG] : Refreshing : humidifier2
[2020-04-06 10:05:26][DEBUG] : {"params": ["humidity", "depth", "temp_dec", "power", "mode", "led_b", "buzzer", "child_lock", "limit_hum", "trans_level"], "id": 20401, "method": "get_prop"}
[2020-04-06 10:05:30][DEBUG] : {"id":20401,"error":{"code":-9999,"message":"user ack timeout"}}
[2020-04-06 10:05:30][ERROR] : Exception on socket : 'result'
[2020-04-06 10:06:34][DEBUG] : execute : action wifi refresh
[2020-04-06 10:06:34][DEBUG] : Client connected to [127.0.0.1:43698]
[2020-04-06 10:06:34][DEBUG] : Message read from socket: {"apikey":"8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14","type":"wifi","cmd":"refresh","model":"humidifier2","dest":"192.168.2.172","token":"d4224352b10a2bbe7b37ab47ac461af0","devtype":"12a7","serial":"9fc5"}
[2020-04-06 10:06:34][DEBUG] : Client disconnected from [127.0.0.1:43698]
[2020-04-06 10:06:34][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-04-06 10:06:34][DEBUG] : Received command from jeedom : refresh
[2020-04-06 10:06:34][DEBUG] : Refreshing : humidifier2
[2020-04-06 10:06:34][DEBUG] : {"params": ["humidity", "depth", "temp_dec", "power", "mode", "led_b", "buzzer", "child_lock", "limit_hum", "trans_level"], "id": 30437, "method": "get_prop"}
[2020-04-06 10:06:38][DEBUG] : {"id":30437,"error":{"code":-9999,"message":"user ack timeout"}}
[2020-04-06 10:06:38][ERROR] : Exception on socket : 'result'
[2020-04-06 10:10:05][DEBUG] : Rafraîchissement de XiaomiWifi : humidifier v2
[2020-04-06 10:10:05][DEBUG] : Client connected to [127.0.0.1:43704]
[2020-04-06 10:10:05][DEBUG] : Message read from socket: {"apikey":"8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14","type":"wifi","cmd":"refresh","model":"humidifier2","dest":"192.168.2.172","token":"d4224352b10a2bbe7b37ab47ac461af0","devtype":"12a7","serial":"9fc5"}
[2020-04-06 10:10:05][DEBUG] : Client disconnected from [127.0.0.1:43704]
[2020-04-06 10:10:05][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-04-06 10:10:05][DEBUG] : Received command from jeedom : refresh
[2020-04-06 10:10:05][DEBUG] : Refreshing : humidifier2
[2020-04-06 10:10:05][DEBUG] : {"params": ["humidity", "depth", "temp_dec", "power", "mode", "led_b", "buzzer", "child_lock", "limit_hum", "trans_level"], "id": 16994, "method": "get_prop"}
[2020-04-06 10:10:09][DEBUG] : {"id":16994,"error":{"code":-9999,"message":"user ack timeout"}}
[2020-04-06 10:10:09][ERROR] : Exception on socket : 'result'
[2020-04-06 10:15:06][DEBUG] : Rafraîchissement de XiaomiWifi : humidifier v2
[2020-04-06 10:15:06][DEBUG] : Client connected to [127.0.0.1:43708]
[2020-04-06 10:15:06][DEBUG] : Message read from socket: {"apikey":"8uPyD1nd9kcXS4FsPuQnJeCJEgyGFj14","type":"wifi","cmd":"refresh","model":"humidifier2","dest":"192.168.2.172","token":"d4224352b10a2bbe7b37ab47ac461af0","devtype":"12a7","serial":"9fc5"}
[2020-04-06 10:15:06][DEBUG] : Client disconnected from [127.0.0.1:43708]
[2020-04-06 10:15:06][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-04-06 10:15:06][DEBUG] : Received command from jeedom : refresh
[2020-04-06 10:15:06][DEBUG] : Refreshing : humidifier2
[2020-04-06 10:15:06][DEBUG] : {"params": ["humidity", "depth", "temp_dec", "power", "mode", "led_b", "buzzer", "child_lock", "limit_hum", "trans_level"], "id": 43223, "method": "get_prop"}
[2020-04-06 10:15:10][DEBUG] : {"id":43223,"error":{"code":-9999,"message":"user ack timeout"}}
[2020-04-06 10:15:10][ERROR] : Exception on socket : 'result'