py-air-control icon indicating copy to clipboard operation
py-air-control copied to clipboard

[Enhancement] Home Assistant component

Open GorkaMM opened this issue 6 years ago • 6 comments

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

GorkaMM avatar May 25 '19 12:05 GorkaMM

Agreed! :)

  • https://community.home-assistant.io/t/philips-air-purifier/53030
  • https://community.home-assistant.io/t/philips-air-purifier-climate-fan-component/109166

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.

ekeih avatar May 25 '19 16:05 ekeih

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

r41d avatar Jun 20 '19 01:06 r41d

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.

rgerganov avatar Jun 20 '19 08:06 rgerganov

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

c-kr avatar Jun 20 '19 14:06 c-kr

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

mdrobniu avatar Aug 07 '19 20:08 mdrobniu

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

jmtatsch avatar Dec 01 '20 19:12 jmtatsch