Closed romontei closed 1 year ago
Your device works fine up until some point, that might indicate that it simply gets overloaded by requests, hence that is why i mentioned that the hardware of your air purifier might be weak or has some issues. What exactly i cannot tell because i do not own that device, but as confirmed by someone in the other post, the air purifier works fine with the plugin.
I would recommend to first reset your device to get it back to work with the plugin, afterwards consider setting a high pollingInterval
like at least 20 seconds. You can also use the propertyChunkSize
setting to reduce the number of properties which are beieng synced at once with the device to a low value like 3-4, which drastically reduces load on the device.
Other then that you can try to manually send commands to the device with various property amount to sync. For that you can use the miot cli tools
Command for all properties is as follows:
miot send yourIp get_properties '[{"did":"314254012","siid":2,"piid":2},{"did":"314254012","siid":2,"piid":5},{"did":"314254012","siid":2,"piid":1},{"did":"314254012","siid":2,"piid":4},{"did":"314254012","siid":3,"piid":6},{"did":"314254012","siid":3,"piid":7},{"did":"314254012","siid":3,"piid":8},{"did":"314254012","siid":4,"piid":3},{"did":"314254012","siid":4,"piid":5},{"did":"314254012","siid":5,"piid":1},{"did":"314254012","siid":6,"piid":6},{"did":"314254012","siid":6,"piid":1},{"did":"314254012","siid":7,"piid":1},{"did":"314254012","siid":10,"piid":10}]'
As a last resort you might want to switch to micloud by setting the forceMiCloud
flag to true and specifying your micloud credentials. MiCloud can be a little bit slower when sending commands but should be more stable and also reduce the load on the device.
Since you closed the previous issue, I want to add some information and be as detailed as possible. So here we are.
Homebridge Server :
homebridge-miot configuration :
After a fresh installation, everything starts fine, but after random period of running time, the air purifier begins to be inaccessible. The purifier does not respond from Homekit, homebridge-miot fails to poll and even from the Xiaomi app the device cannot be accessed. I have to physically unplug the device to bring it back online. I tried for a long time period (2 months) to get the device working without connecting to homebridge-miot, it appears that it never disconnects and was reachable every time, working perfectly fine. Reconnecting the purifier to the plugin causes the device to fail again.
After enabling the deep debup log and the homebridge debug mode, it seems that the plugin overloads the device with requests, multiplies per second and chains new handshakes in a loop, without respecting the polling interval of 10 seconds. Checking the fan logs shows a quiet sollicitation to the device.
The behavior ends up breaking the device and making it inaccessible to anyone.
Still, with only the fan connected to the plugin, everything works fine, no queries overloading the device, and a decent polling interval is respected every 10 seconds.