nt0xa / homebridge-mi-humidifier

A Xiaomi Mi humidifier plugin for Homebridge
MIT License
64 stars 24 forks source link

Fail to get device properties. SocketError: Timeout #109

Open paqpaqpaq opened 2 years ago

paqpaqpaq commented 2 years ago

I get this off and on, but lately more on. If I unplug the humidifier, plug it in again, restart HB, I can use it a while, and after it goes back to the error.

{ "devices": [ { "disabled": false, "name": "Humidifier", "token": "token here", "address": "192.168.108.233", "model": "zhimi.humidifier.cb1", "updateInterval": 30, "autoSwitchToHumidityMode": true, "disableTargetHumidity": false, "temperatureSensor": { "enabled": true, "name": "Temperature Humidifier" }, "humiditySensor": { "enabled": true, "name": "Humidity Humidifier" }, "ledBulb": { "enabled": false, "name": "Led" }, "buzzerSwitch": { "enabled": false, "name": "Buzzer" }, "cleanModeSwitch": { "enabled": false, "name": "Clean Mode" } } ], "platform": "MiHumidifier" },

paqpaqpaq commented 2 years ago

when I delete it, reboot HB, re-add it, reboot HB, it seems to be working for a bit longer.

paqpaqpaq commented 2 years ago

It worked for a few hours, and then suddenly, out of the blue: [07/02/2022, 19:59:43] [Airmega] Found AIRMEGA 400S [07/02/2022, 19:59:59] [Yeelighter] [0x0000000007767c6f#background] set brightness [ 70 ] [07/02/2022, 19:59:59] [Yeelighter] [0x0000000007767c6f] set brightness 70 (translated to 70) [] [07/02/2022, 20:01:47] [MiHumidifier] [192.168.108.233] Fail to get device properties. SocketError: Timeout [07/02/2022, 20:02:17] [MiHumidifier] [192.168.108.233] Fail to get device properties. SocketError: Timeout [07/02/2022, 20:02:47] [MiHumidifier] [192.168.108.233] Fail to get device properties. SocketError: Timeout [07/02/2022, 20:03:17] [MiHumidifier] [192.168.108.233] Fail to get device properties. SocketError: Timeout

it slows homebridge down too, a lot!

when I run a token scan, the token is still the same:

   NAME:     Smartmi Evaporative Humidifier
   ID:       312978129
   IP:       192.168.108.233
   TOKEN:    [same token]
   MODEL:    zhimi.humidifier.cb1

so HB reboot, works again... for now....

mirunamd commented 2 years ago

Did you find any solution?

MoienBowen commented 2 years ago

Same here Fail to get device properties. SocketError: Timeout and This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. zhimi.humidifier.ca4 with new firmware 2.2.4.0017 Even with this error message, I can still turn on/off the humidifier, and the humidity, water level, fan speed are all correct.