Blueair Api Wrapper
Project description
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 (fan speed, brightness, child lock, etc.) for both legacy and AWS-based Blueair devices
- MQTT real-time updates — receive sensor data (PM2.5, temperature, humidity, etc.) 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 (5s → 300s max) on unexpected disconnects
- Data-driven SKU mapping — resolves 418+ device SKUs to human-readable product names (e.g.,
111582→ "Blueair Blue Pure 511i Max") via a built-in lookup table - Per-device hardware detection —
mood_brightness_maxandfan_speed_countadapt automatically based on the device's hardware identifier
Project details
Release history Release notifications | RSS feed
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.50.3.tar.gz
(35.4 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.50.3.tar.gz.
File metadata
- Download URL: blueair_api-1.50.3.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5894f44ea96fb5de5f50a72b152c6f4059630fd6ea8a29d65cde3b8ab27ad669
|
|
| MD5 |
74f03cad266f263ba1564c632c313336
|
|
| BLAKE2b-256 |
d03dde31771ee1faeb538f6c568714f7678dafa31c06545293885b23698b9245
|
File details
Details for the file blueair_api-1.50.3-py3-none-any.whl.
File metadata
- Download URL: blueair_api-1.50.3-py3-none-any.whl
- Upload date:
- Size: 28.1 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 |
c87628f28ab2aa642da0a3f96b6c8d1cb574fa43435a535a7a7a0d2bba69a401
|
|
| MD5 |
3bb29e0f6829973d736d8044dc459318
|
|
| BLAKE2b-256 |
9cb26b18d1902306c0c3afac63f522b2d2534e65c82ae48a0a13bab8c6092d4e
|