rgerganov / py-air-control

Command line app for controlling Philips air purifiers
MIT License
257 stars 52 forks source link

[Enhancement] Home Assistant component #15

Open GorkaMM opened 5 years ago

GorkaMM commented 5 years ago

It would be really great to have this script turned into a Home Assistant component as there is a huge community there and it would make it very easy to setup and automate Philips Air Purifiers in the Smart Home environment.

https://www.home-assistant.io

ekeih commented 5 years ago

Agreed! :)

The proper way to do this would be to move the functionality of py-air-control into its own library. Then the CLI and the Home Assistant component could use the library.

r41d commented 5 years ago

Could be, but since __name__ is checked in py-air-control it can also directly be used I suppose

rgerganov commented 5 years ago

Could be, but since __name__ is checked in py-air-control it can also directly be used I suppose

Exactly. There is nothing that prevents you from importing the airctrl package and using the AirClient class in 3rd party solutions.

c-kr commented 5 years ago

I've done this for a nagios compatible monitoring plugin. Maybe this helpes someone else to integrate in other monitoring / smart home tools:

https://github.com/c-kr/check_air_purifier

mdrobniu commented 4 years ago

I'm up for this. Somebody do something :)

jmtatsch commented 3 years ago

There is this https://github.com/syreel/philips-airpurifier