merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
371 stars 62 forks source link

Dehumidifier controllable value is wrong #472

Closed oupeng closed 1 year ago

oupeng commented 1 year ago

The control range of dehumidifier(dmaker.derh.22l) is 40%-70%, in homekit adjustable 1%-100%, can not correspond to the correct value.thanks image image

homebridge-miot v1.6.0 Node.js v18.15.0

merdok commented 1 year ago

This is only a visual limitation. In HomeKit you cannot change the range of the slider, it has to always be 1% to 100%. In the background this is being calculated from the HomeKit value into the actual slider value. I know that this is quite odd, but there is nothing that can be done currently.

oupeng commented 1 year ago

When the dehumidifier set to 40%, home kit shows 25%, does it correspond to this zone? (40%-70%) thanks.good luck!

merdok commented 1 year ago

And what does it show at 70%?

oupeng commented 1 year ago

58%

merdok commented 1 year ago

You would need to post some debug log of that so I can see what the actual values are which you set