Voici les infos :
- Jeedom master 4.4.18
- Version OS debian 11.11
- VM sous PROXMOX Virtual Environment 8.1.4
- NUC10 i7 16Go SSD M2
- Réseau wifi Orange non utilisé car j’ai un réseau Unifi Ubiquiti derrière
- Xiaomi Home (xiaomihome) Stable 2022-06-06 01:02:25
- Appli android à jour
- les lampes sont fonctionnelle via l’application Android
- Token obtenu en créant un compte sur mainland china et en y ajoutant les lampes, ensuite récupéré par Release 1.0.6 version Windows App · Maxmudjon/Get_MiHome_devices_token · GitHub
J’imagine que les token sont propre à l’appareil et ne changent pas.
Oui
voilà les logs, j’ai lancer le démon, fait un On puis un Off.
[2024-10-09 14:05:02] INFO : Lancement démon xiaomihome : /usr/bin/python3 /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 epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3 --cycle 0.05 --pid /tmp/jeedom/xiaomihome/deamon.pid
[2024-10-09 14:05:02.519] INFO : Start xiaomihomed
[2024-10-09 14:05:02.519] INFO : Log level : debug
[2024-10-09 14:05:02.520] INFO : Socket port : 55019
[2024-10-09 14:05:02.520] INFO : Socket host : 127.0.0.1
[2024-10-09 14:05:02.520] INFO : PID file : /tmp/jeedom/xiaomihome/deamon.pid
[2024-10-09 14:05:02.520] INFO : Apikey : epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3
[2024-10-09 14:05:02.520] INFO : Callback : http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php
[2024-10-09 14:05:02.520] INFO : Cycle : 0.05
[2024-10-09 14:05:02.520] DEBUG : Writing PID 4013657 to /tmp/jeedom/xiaomihome/deamon.pid
[2024-10-09 14:05:02.520] DEBUG : Init request module v2.32.3
[2024-10-09 14:05:02.523] DEBUG : Starting new HTTP connection (1): 127.0.0.1:80
[2024-10-09 14:05:02] DEBUG : Format Invalide
[2024-10-09 14:05:02.527] DEBUG : http://127.0.0.1:80 "GET /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3 HTTP/11" 200 0
[2024-10-09 14:05:02.527] DEBUG : Socket interface started
[2024-10-09 14:05:02.528] DEBUG : LoopNetServer Thread started
[2024-10-09 14:05:02.528] INFO : Start listening...
[2024-10-09 14:05:02.528] DEBUG : Listening on: [127.0.0.1:55019]
[2024-10-09 14:05:02.528] DEBUG : Read Socket Thread Launched
[2024-10-09 14:05:02.528] DEBUG : Aquara Thread Launched
[2024-10-09 14:05:20] DEBUG : execute : action yeelight off
[2024-10-09 14:05:20] DEBUG : Envoi : {"apikey":"epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3","type":"yeelight","cmd":"send","dest":"192.168.2.84","model":"bslamp1","sid":"","short_id":"","command":"turn off","option":"","id":"192.168.2.84","sup":""}
[2024-10-09 14:05:20.882] DEBUG : Client connected to [127.0.0.1:59680]
[2024-10-09 14:05:20.882] DEBUG : Message read from socket: b'{"apikey":"epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3","type":"yeelight","cmd":"send","dest":"192.168.2.84","model":"bslamp1","sid":"","short_id":"","command":"turn off","option":"","id":"192.168.2.84","sup":""}'
[2024-10-09 14:05:20.882] DEBUG : Client disconnected from [127.0.0.1:59680]
[2024-10-09 14:05:21.151] DEBUG : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2024-10-09 14:05:21.151] DEBUG : SOCKET-READ------Received command from jeedom : send
[2024-10-09 14:05:21.152] DEBUG : SOCKET-READ------Executing action on : bslamp1
[2024-10-09 14:05:21.152] DEBUG : {'apikey': 'epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3', 'type': 'yeelight', 'cmd': 'send', 'dest': '192.168.2.84', 'model': 'bslamp1', 'sid': '', 'short_id': '', 'command': 'turn off', 'option': '', 'id': '192.168.2.84', 'sup': ''}
[2024-10-09 14:05:21.152] DEBUG : Bulb<192.168.2.84:55443, type=BulbType.Unknown> > {'id': 0, 'method': 'set_power', 'params': ['off', 'smooth', 500]}
[2024-10-09 14:05:21.180] ERROR : SOCKET-READ------Exception on socket : A socket error occurred when sending the command.
[2024-10-09 14:05:24] DEBUG : execute : action yeelight on
[2024-10-09 14:05:24] DEBUG : Envoi : {"apikey":"epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3","type":"yeelight","cmd":"send","dest":"192.168.2.84","model":"bslamp1","sid":"","short_id":"","command":"turn on","option":"","id":"192.168.2.84","sup":""}
[2024-10-09 14:05:24.450] DEBUG : Client connected to [127.0.0.1:42704]
[2024-10-09 14:05:24.450] DEBUG : Message read from socket: b'{"apikey":"epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3","type":"yeelight","cmd":"send","dest":"192.168.2.84","model":"bslamp1","sid":"","short_id":"","command":"turn on","option":"","id":"192.168.2.84","sup":""}'
[2024-10-09 14:05:24.450] DEBUG : Client disconnected from [127.0.0.1:42704]
[2024-10-09 14:05:24.484] DEBUG : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2024-10-09 14:05:24.485] DEBUG : SOCKET-READ------Received command from jeedom : send
[2024-10-09 14:05:24.485] DEBUG : SOCKET-READ------Executing action on : bslamp1
[2024-10-09 14:05:24.485] DEBUG : {'apikey': 'epyTupM86UXPfIX4Ac9wOcJy5PbAtIQ3', 'type': 'yeelight', 'cmd': 'send', 'dest': '192.168.2.84', 'model': 'bslamp1', 'sid': '', 'short_id': '', 'command': 'turn on', 'option': '', 'id': '192.168.2.84', 'sup': ''}
[2024-10-09 14:05:24.485] DEBUG : Bulb<192.168.2.84:55443, type=BulbType.Unknown> > {'id': 0, 'method': 'set_power', 'params': ['on', 'smooth', 500]}
[2024-10-09 14:05:24.509] ERROR : SOCKET-READ------Exception on socket : A socket error occurred when sending the command.