Xiaomi Home - Exception on socket

Bonjour,

Depuis quelques temps déjà je remarque que le plugin renvoi une erreur de socket. Celle ci ne semble, à priori, pas liée à un envoi ou réception de commande / info.

[2020-04-21 07:46:07][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-04-21 07:46:07][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXX HTTP/1.1" 200 0
[2020-04-21 07:46:08][ERROR] : Exception on socket : A socket error occurred when sending the command.
[2020-04-21 07:46:17][DEBUG] : {u'short_id': u'0', u'cmd': u'heartbeat', u'token': u'EErgW8DEBPL4cr1G', u'sid': u'04cf8c744aca', u'model': u'gateway', u'data': u'{"ip":"192.168.8.100"}'}
[2020-04-21 07:49:06][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=XXXX HTTP/1.1" 200 0
[2020-04-21 07:49:09][ERROR] : Exception on socket : A socket error occurred when sending the command.
[2020-04-21 07:49:11][DEBUG] : {u'model': u'sensor_ht', u'cmd': u'report', u'data': u'{"temperature":"1990"}', u'short_id': 5881, u'sid': u'158d00040f58b2'}

Quelqu’un reconnait il ce problème ?

Idem, j’ai cherché j’ai rien trouvé… Du coup j’ai arrêté de chercher… C’est ma petite erreur du jour… everyday :sweat_smile:

Ça n’a pas l’air d’avoir d’impacts visibles sur mon installation. Mais j’ai l’impression que c’est lié à la Gateway. De fait j’imagine qu’une fonction ne marche pas. Quid du jour ou je vais l’utiliser ? héhé :slight_smile:

Un peu le même soucis ici mais uniquement sur les prises wifi :

2020-04-26 15:25:15][ERROR] : Exception on socket : tuple index out of range
[2020-04-26 17:25:16][DEBUG] : Status Array ( [status] => Array ( [temperature] => 36 [power] => off ) [ip] => 192.168.31.137 [model] => socket )
[2020-04-26 15:25:21][ERROR] : Exception on socket : local variable ‹ d › referenced before assignment
[2020-04-26 17:25:21][DEBUG] : Status Array ( [status] => Array ( [temperature] => 46 [power] => off ) [ip] => 192.168.31.192 [model] => socket )