Salut
L’un de vous saurait il m’aider?
J’ai commencé par modifier le niveau de python pour en arriver la car ca plantait (Exception socket read).
J’ai ensuite suivi les instructions plus haut (modif co2
dans airmonitorb1.json
) mais je n’obtiens toujours pas de valeurs
Voila la log:
[2021-06-14 15:30:26][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 Zdtny1Yvn2gfvVT1QbwCs9QXHC3lGcxn --cycle 0.05 --pid /tmp/jeedom/xiaomihome/deamon.pid
[2021-06-14 15:30:29.219][INFO] : Start xiaomihomed
[2021-06-14 15:30:29.220][INFO] : Log level : debug
[2021-06-14 15:30:29.220][INFO] : Socket port : 55019
[2021-06-14 15:30:29.221][INFO] : Socket host : 127.0.0.1
[2021-06-14 15:30:29.221][INFO] : PID file : /tmp/jeedom/xiaomihome/deamon.pid
[2021-06-14 15:30:29.221][INFO] : Apikey : Zdtny1Yvn2gfvVT1QbwCs9QXHC3lGcxn
[2021-06-14 15:30:29.221][INFO] : Callback : http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php
[2021-06-14 15:30:29.222][INFO] : Cycle : 0.05
[2021-06-14 15:30:29.222][DEBUG] : Writing PID 9321 to /tmp/jeedom/xiaomihome/deamon.pid
[2021-06-14 15:30:29.224][DEBUG] : Init request module v2.12.4
[2021-06-14 15:30:29.262][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2021-06-14 15:30:29][DEBUG] : Format Invalide
[2021-06-14 15:30:29.289][DEBUG] : http://127.0.0.1:80 "GET /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=Zdtny1Yvn2gfvVT1QbwCs9QXHC3lGcxn HTTP/1.1" 200 0
[2021-06-14 15:30:29.294][DEBUG] : Socket interface started
[2021-06-14 15:30:29.296][DEBUG] : LoopNetServer Thread started
[2021-06-14 15:30:29.296][INFO] : Start listening...
[2021-06-14 15:30:29.297][DEBUG] : Listening on: [127.0.0.1:55019]
[2021-06-14 15:30:29.300][DEBUG] : Read Socket Thread Launched
[2021-06-14 15:30:29.301][DEBUG] : Aquara Thread Launched
[2021-06-14 15:31:03][DEBUG] : execute : action wifi refresh
[2021-06-14 15:31:04][DEBUG] : Envoi : {"apikey":"Zdtny1Yvn2gfvVT1QbwCs9QXHC3lGcxn","type":"wifi","cmd":"refresh","model":"airmonitorb1","dest":"192.168.1.4","token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","devtype":"08f3","serial":"00df"}
[2021-06-14 15:31:04.356][DEBUG] : Client connected to [127.0.0.1:42282]
[2021-06-14 15:31:04.357][DEBUG] : Message read from socket: {"apikey":"Zdtny1Yvn2gfvVT1QbwCs9QXHC3lGcxn","type":"wifi","cmd":"refresh","model":"airmonitorb1","dest":"192.168.1.4","token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","devtype":"08f3","serial":"00df"}
[2021-06-14 15:31:04.358][DEBUG] : Client disconnected from [127.0.0.1:42282]
[2021-06-14 15:31:04.453][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-06-14 15:31:04.454][DEBUG] : SOCKET-READ------Received command from jeedom : refresh
[2021-06-14 15:31:04.454][DEBUG] : SOCKET-READ------Refreshing : airmonitorb1
[2021-06-14 15:31:04.462][DEBUG] : {"params": [], "id": 46908, "method": "get_air_data"}
[2021-06-14 15:31:09.466][ERROR] : SOCKET-READ------Exception on socket : tuple index out of range
[2021-06-14 15:35:05][DEBUG] : Rafraîchissement de XiaomiWifi : Air Monitor
[2021-06-14 15:35:05][DEBUG] : Envoi : {"apikey":"Zdtny1Yvn2gfvVT1QbwCs9QXHC3lGcxn","type":"wifi","cmd":"refresh","model":"airmonitorb1","dest":"192.168.1.4","token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","devtype":"08f3","serial":"00df"}
[2021-06-14 15:35:05.752][DEBUG] : Client connected to [127.0.0.1:42794]
[2021-06-14 15:35:05.753][DEBUG] : Message read from socket: {"apikey":"Zdtny1Yvn2gfvVT1QbwCs9QXHC3lGcxn","type":"wifi","cmd":"refresh","model":"airmonitorb1","dest":"192.168.1.4","token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","devtype":"08f3","serial":"00df"}
[2021-06-14 15:35:05.754][DEBUG] : Client disconnected from [127.0.0.1:42794]
[2021-06-14 15:35:05.912][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-06-14 15:35:05.912][DEBUG] : SOCKET-READ------Received command from jeedom : refresh
[2021-06-14 15:35:05.913][DEBUG] : SOCKET-READ------Refreshing : airmonitorb1
[2021-06-14 15:35:05.917][DEBUG] : {"params": [], "id": 54304, "method": "get_air_data"}
[2021-06-14 15:35:10.923][ERROR] : SOCKET-READ------Exception on socket : tuple index out of range
[EDIT] d’après mes recherches sur le forum ca pourrait être un pb de token invalide mais je suis sûr de mon token pour 2 raisons:
d’abord parce que le bouton « récupérer les infos » me renvoie une clé de 32 caractères hexa
ensuite parce que je suis allé lire les datas stockées dans le backup de mon iPad avec cette méthode et que la clé est identique.
J’ai bien sûr refait les dépendances et redémarré plusieurs fois…
Je suis en v3.3.35, dernier niveau de plugin et mon CGS1 est au dernier niveau de fw 3.4.5_0168
Une suggestion?