This project has been decommissioned. Please use py-air-control instead.
Python API for monitoring and controlling Philips air purifiers.
Tested with:
- Philips AC3256/60
pip install philips-air-purifier
Get and set the status of the air purifier:
from philips_air_purifier import status
status.put_status(air_purifier_host="192.168.1.12", status={"pwr": "1"})
current_status = status.get_status(air_purifier_host="192.168.1.12")
Connect your air purifier to your WiFi network:
- Set your air purifier to "pairing mode" (look online for instructions).
- Connect your computer to the WiFi network created by the air purifier.
- Run this:
At this point the air purifier will leave "pairing mode" and connect to your WiFi network.
from philips_air_purifier import wifi wifi.put_wifi(air_purifier_host="192.168.1.1", ssid="your wifi's name", pwd="your wifi's password")
- Re-connect to your WiFi network and find the IP address of the air purifier (by inspecting your router).
- session-based API (to avoid the need to repeat DH key exchange for every call--to support more complicated use cases)
- custom HTTP request API (to support features not covered by the functional and session-based API)