merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
391 stars 61 forks source link

Air Quality sensor problem #583

Closed ktahatastan closed 6 months ago

ktahatastan commented 6 months ago

Air Quality sensor not visible on air purifier devices, when I enable "Show main accessory only" the sensor disappears from the home app. This setting must be made in the general settings of the device, just like the temperature and humidity sensor settings. I can't see anything about air quality right now. I would be very happy if it is developed.

merdok commented 6 months ago

The main accessory on a fan device is obviously the fan, that means when you use "Show main accessory only" it will only show the fan. If you want to keep it that way then you can use propertyControl to expose the air quality manually.

ktahatastan commented 6 months ago

The main accessory on a fan device is obviously the fan, that means when you use "Show main accessory only" it will only show the fan. If you want to keep it that way then you can use propertyControl to expose the air quality manually.

I couldn't find any resources on how to do this and I have no idea, can you help?

merdok commented 6 months ago

Just have a look at the README, you have the property documented and examples there.

ktahatastan commented 6 months ago

Sadece README'ye bir göz atın, orada belgelenmiş özelliğiniz ve örnekleriniz var.

I think I discovered how to do it with a few tries. It would be great if a select box was developed where we can choose the sensor type instead of a fixed light sensor. thank you for your help.

merdok commented 6 months ago

There is some auto logic to determine the type of the accessory but that is not always perfect.