merdok / homebridge-miot

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

Air Quality display bug?? on zhimi.airp.mb5, zhimi.airp.cpa4 #490

Closed Jern777 closed 1 year ago

Jern777 commented 1 year ago

Hi,

First of all, appreciate your work really. πŸ™

I have no Air Quality shown when "Show only the main accessory service" is ticked (preferred this to be ticked) while the only way for it to be shown is to untick the "Show only the main accessory service" but unfortunately will bring up 3 other controls for Screen - Brightness (Bright, Brightest, Close) which I do not want and can't figure out how to remove them.

The goal here is to show only the main accessory service + Air Quality / Humidity / Temp. That's it!

Thank you.

merdok commented 1 year ago

Hi, Air Quality is not part of the main service for air purifiers, but is an additional service. I probably would need to offer an easy way to manually add it to the device whenever only the main accessory is enabled. But i guess your issue about the Screen Brightness control can be solved easy. Did you had a look at the air purifier docs here? https://github.com/merdok/homebridge-miot/blob/main/docs/airpurifier.md There is a screenControl configuration property which per default is on, you should set that to false and the screen control should disappear.

Jern777 commented 1 year ago

Hi again, so basically setting the "screenControl" to false worked!

But unfortunately setting the "fanLevelControl" to false does not remove the fan level slider switch, any way to remove this as well? or may be I'm doing sth wrong. Thanks!

** This fanLevelControl seems to only have an effect on zhimi.airp.meb1 but not on zhimi.airp.mb5, zhimi.airp.cpa4 (I have these 3 models in the house)

merdok commented 1 year ago

Fan level control is not the same as fan slider. The rotation speed control is part of the main service for air purifiers.

Jern777 commented 1 year ago

Got it! All is working fine though. Thanks a lot for Al the quick response. πŸ™πŸΌπŸ‘πŸΌ