Bluebie / homebridge-miio

Xiaomi Mi Home Plugin for Homebridge
112 stars 26 forks source link

TODO: Add air purifier support? #5

Open Bluebie opened 7 years ago

Bluebie commented 7 years ago

The code's already there in miio library, so, may as well?

wadjj commented 7 years ago

This would be quite awesome, since there is no option available at all if you want to control the Air Purifier via Homekit. (Except an official Xiaomi Router plugin which seems to have been pulled)

syu-lk4b commented 7 years ago

anything we can do about it, i know xiao router somehow can support his, but is there anything stop us enbale this function by part of homebridge-miio? thanks

Bluebie commented 7 years ago

It would be pretty easy for someone who has a purifier to add support. The underlying miio library already has some support for that device.

syu-lk4b commented 7 years ago

can you help point me of some example, newbie at nodejs. but i can try since i have the purifier at home. thanks a lot

syu-lk4b commented 7 years ago

NVM, found it. will check if I can bring it up

syu-lk4b commented 7 years ago

some update here, I have tried the miio module with my zhimi.airpurifier.v1, but looks like the set_power function is not supported with this model. Tried wireshark the package, but somehow it doesn't work for some reason. pretty busy this week, will check this again this weekend if nothing else happen, hopefully someone can work with me together, so we can enable this function in this module for xiaomi airpurifier the issue I have rasied into miio, detail check this link https://github.com/aholstenson/miio/issues/35

Bluebie commented 7 years ago

sure if you can figure out some code that controls the air purifier well, and decide what sort of homekit characteristics would map across well (like how to present it through homekit) then we can work together to integrate it in nicely and put out a new version for sure! <3

bencharlesrhys commented 6 years ago

Found this elsewhere that I’ve had working under a different node version. Anything useful that could help add it to the one plugin? https://www.npmjs.com/package/homebridge-mi-air-purifier