Skip to main content

Async Airbnk and WeHere cloud plus BLE client library

Project description

pyairbnk

pyairbnk is the standalone async communication library behind the Airbnk BLE Home Assistant integration.

Disclaimer

pyairbnk is an unofficial community-maintained library. It is not made by, sponsored by, endorsed by, or otherwise affiliated with Airbnk, WeHere, or their vendors in any way.

Use this library at your own discretion and risk. You are responsible for how you use it, where you deploy it, and what devices, accounts, or systems you connect it to.

It provides:

  • Airbnk / WeHere cloud onboarding helpers for verification codes, auth, lock listing, and battery-profile lookup
  • Local BLE protocol helpers for bootstrap decryption, advert parsing, status parsing, and operation-code generation
  • A generic async BLE command client built on bleak and bleak-retry-connector

Support Status

B100 is the only model that has been live-validated end to end on real hardware so far. The protocol/profile surface also includes M300, M500, M510, M530, and M531, but those are currently covered through shared logic and sanitized fixtures rather than equivalent field testing.

Installation

pip install pyairbnk

For local development:

python -m venv .venv
source .venv/bin/activate
pip install -e ".[test]"

Design Notes

  • The library is async-first so it can be consumed cleanly by Home Assistant.
  • HTTP clients accept injected aiohttp sessions, which matches Home Assistant's dependency guidance.
  • No Home Assistant imports are used anywhere in the package.

Releasing

The repository includes a GitHub Actions release workflow that:

  1. builds the sdist and wheel
  2. creates a GitHub release on v* tags
  3. publishes to PyPI using Trusted Publishing

One manual setup step is still required on PyPI: add Moballo-LLC/pyairbnk as a Trusted Publisher for the .github/workflows/release.yml workflow. PyPI documents that setup here: Adding a Trusted Publisher.

After that PyPI-side setup is complete, enable the repository variable PYPI_PUBLISH_ENABLED=true so tagged releases also publish to PyPI.

Credits

This library was built from the local BLE work in Airbnk BLE and informed by the earlier GPLv3 reverse-engineering efforts in rospogrigio/airbnk_mqtt and rospogrigio/airbnk_cloud.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyairbnk-1.0.1.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

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

pyairbnk-1.0.1-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file pyairbnk-1.0.1.tar.gz.

File metadata

  • Download URL: pyairbnk-1.0.1.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyairbnk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 168d72cc0e174d9af5ebfadfc1684c12328e03889c6b35d8d02378da14c611aa
MD5 f17a252858262e16930cdef1cc06bd2b
BLAKE2b-256 6cf5e11d5a6939a5a3df1474a28c777a77ab0397241a9528015683873f889431

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyairbnk-1.0.1.tar.gz:

Publisher: release.yml on Moballo-LLC/pyairbnk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyairbnk-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyairbnk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyairbnk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 910774a8509582e0fb5991767fa5c58557455a45043a03081969236628f51601
MD5 84e86b48d96d7ca2a3584d809954dc40
BLAKE2b-256 248683b5ce9bd75f9b27bee052b682fed03f6bf4eba35164781b41b10ca696fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyairbnk-1.0.1-py3-none-any.whl:

Publisher: release.yml on Moballo-LLC/pyairbnk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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