Closed Willian-Zhang closed 4 months ago
That is kind of odd as we assume that filter life level is a value between 0 and 100%. What the heck does 101% mean for the filter life level?😅 I guess we would need to manually adjust the auto generated class and set the property to 100 max, could you test that out and provide a pull request?
What the heck does 101% mean for the filter life level?😅
I think it means "no filter installed"
I guess we would need to manually adjust the auto generated class and set the property to 100 max,
you mean change to "valueRange":[0,100,1]}'
?
I am not sure that's the correct way of doing it, as the raw value 101
would definitely be provided from the device, in my case, no filter is installed.
This is fine in that case, as this is used to generate the ui and validate properties. Changing it too 100 should do the trick. The sliders in homekit anyway cannot go beyond 100% so not even sure how to interpret the 101% value...
"valueRange":[0,100,1]}'
tried this, still spitting the exact warning
Then I would need to have a look and handle that in code.
Should be fixed with version 1.7.2
Describe the bug xiaomi.airc.r24r00 gives invalid value when no filter is installed.
Expected behavior disable filter field or shows N/A while its not applicable
Debug log
Additional context
The range is currently autogenerated, more manual override may be required.