Skip to main content

Blueair Api Wrapper

Project description

GitHub Release GitHub Activity License

Project Maintenance BuyMeCoffee

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 detectionmood_brightness_max and fan_speed_count adapt 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.2.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blueair_api-1.50.2-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file blueair_api-1.50.2.tar.gz.

File metadata

  • Download URL: blueair_api-1.50.2.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for blueair_api-1.50.2.tar.gz
Algorithm Hash digest
SHA256 b428e7ea6ae44e707a3aa1917111c0de43f4b4b7449d8db6b614dfc3f412dd24
MD5 2db6a06adadbc01633d12391856f2c69
BLAKE2b-256 d3efe33d8dbc4f4f1793cf5d09ad20aa86fa986c59e71ef818033e8016fd2a3f

See more details on using hashes here.

File details

Details for the file blueair_api-1.50.2-py3-none-any.whl.

File metadata

  • Download URL: blueair_api-1.50.2-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for blueair_api-1.50.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af4bf9ab9feeffc845f9e67fe526e64ec750e60c916e4c66fe648962a1cc1813
MD5 09d158c15d12782ac9b7ce0bb208f87b
BLAKE2b-256 2fb2dd72d379bf6bf05621995647e5d05088fbd454b2db5fea5a5472920dd457

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page