rgavril / homebridge-xiaomi-air-purifier3

Homebridge plugin for controlling Xiaomi Air Purifier 3/3H
46 stars 7 forks source link

Idle Status #21

Open adamrzanek opened 3 years ago

adamrzanek commented 3 years ago

My Xiaomi 3H is showing Idle Status then it's on... Is it possible to show "on" staus instead?

paqpaqpaq commented 3 years ago

I am looking into this too. Although sometimes it does show "active" (or inactive...idle?) Maybe it's not on idle when it is doing some cleaning, e.g. pm value over 20 or so?

paqpaqpaq commented 3 years ago

@adamrzanek I just tripped the purifier with a candle.

There does indeed seem to be a threshold in order to show "on". As soon as it is below the threshold again, it will show "idle". According to the given breakpoints, it is probably value 12. Maybe if you lower these you could see a change in what it will show, but also behavior.

adamrzanek commented 3 years ago

I think this plugin is too buggy right now. I’ve switched to this one https://github.com/github9984/homebridge-xiaomi-purifier-3#readme

On 30 Nov 2020, at 21:40, paqpaqpaq notifications@github.com wrote:

 @adamrzanek I just tripped the purifier with a candle.

There does indeed seem to be a threshold in order to show "on". As soon as it is below the threshold again, it will show "idle". According to the given breakpoints, it is probably value 12. Maybe if you lower these you could see a change in what it will show, but also behavior.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

paqpaqpaq commented 3 years ago

Well I had the same with the one you are referring to, and think this one actually works better.

paqpaqpaq commented 3 years ago

I think this plugin is too buggy right now. I’ve switched to this one https://github.com/github9984/homebridge-xiaomi-purifier-3#readme

I installed https://github.com/github9984/homebridge-xiaomi-purifier-3#readme at the same time. Actually, I like the idle mode. It will show idle (or inactive according to language/app) whenever the PM2.5 value is below the set first threshold. Meaning the air quality is addressed as being 'excellent', and thus the purifier can 'idle'. Now, the other plugin does not have the idle mode, and it took me some time to actually show a working tile of an air purifier on the home screen. After that, it does work perfect indeed. And no error when switched off.

I am going to do some code digging to see if the idle mode is an easy thing to copy. The issue here with the other plugin is, that when on Automatic, it will always take the set rotation speed as 100%, and so it will never 'idle' (at "0%")