blueair_api
Api Wrapper for BlueAir API using async in python. This was inspired by this guide to be a lightweight wrapper with simple error handling.
a lot of this is based on hass-blueair.
Features
- REST API — async device discovery, sensor polling, and control commands for both legacy and AWS-based Blueair devices.
- MQTT real-time updates — receive sensor data and device state changes via AWS IoT WebSocket with sub-second latency instead of 5-minute polling.
- Automatic reconnect with credential refresh — MQTT tokens expire after 24 hours; the client refreshes credentials and reconnects with exponential backoff on unexpected disconnects.
- Split AWS regions when needed — keep the normal single
regionsetting for most accounts, or configure separate Gigya account and BlueCloud device-control regions for accounts whose devices are hosted elsewhere. See AWS account and BlueCloud regions. - Data-driven SKU mapping — resolves device SKUs to human-readable product names via a built-in lookup table.
- Per-device hardware detection —
mood_brightness_maxandfan_speed_countadapt automatically based on the device's hardware identifier.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blueair_api-1.56.1.tar.gz
(60.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blueair_api-1.56.1.tar.gz.
File metadata
- Download URL: blueair_api-1.56.1.tar.gz
- Upload date:
- Size: 60.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
070da671a2577677590ebf0c1efda91410dffe7b6c73171b1f32385e8d0bd0b4
|
|
| MD5 |
69b00998c8c54d62d0c735af646752c4
|
|
| BLAKE2b-256 |
3a8d65eefa45977c141416b03c096fb3f433af5e4aae7d082f92ffc32e3fda24
|
File details
Details for the file blueair_api-1.56.1-py3-none-any.whl.
File metadata
- Download URL: blueair_api-1.56.1-py3-none-any.whl
- Upload date:
- Size: 40.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e4a33fcd49308c5441f273432fe1b7236c5b64280559234d363c4e5972a8ac4
|
|
| MD5 |
380874ddc691b87098900dea6b6fe1da
|
|
| BLAKE2b-256 |
7a674bff7cbacb2f159f986d936fead901aeee76c7302f5cc6f447d2d78f918f
|