Open SLAZ666 opened 2 months ago
So a fix that worked for me is to change lines 262 and 265 inside device.py from the value 15 to 10.
This is a nice found I will investigate that, thanks.
Miio protocol has limit of maximum 15 properties at a time for all the devices that are using it but I don't think it is a size issue because vacuum can return raw map data over local protocol when it is mapping and it can grow very huge.
I can confirm that this issue also occurred with my xiaomi_vacuum_c102cn
.
I haven't investigated it deeply yet, but setting it to 10
didn't resolve the problem.
In my case, I had to adjust that value to 5
.
Describe the bug Initialization of the vacuum does not work (Time out). Configuration of the device works, but the integration can not load the device.
To Reproduce Use an L10s Ultra with firmware 4.3.9_3204 like in #482 or #342
Expected behavior The integration should load the device correctly and not time out.
Additional Information (please complete the following information)
I have analysed the problem. The log points to line 262 in device.py, where the properties are requested from the device. The timeout occured in the fourth request inside the loop, so properties 45-60. I tried to get the exact property that causes the timeout, but when I requested less properties, no time out occured. I have changed the code to only request 10 properties at a time and now it initializes the device correctly. I don't really know why this works perhaps the request or response is too big for the exact combination.
So a fix that worked for me is to change lines 262 and 265 inside device.py from the value 15 to 10.