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
bleakandbleak-retry-connector
Support Status
B100 and M532 have been live-validated 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
aiohttpsessions, 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:
- builds the sdist and wheel
- creates a GitHub release on
v*tags using the matchingCHANGELOG.mdsection as the release body - publishes to PyPI using Trusted Publishing
To publish a release, merge a PR that updates pyproject.toml,
src/pyairbnk/__init__.py, and CHANGELOG.md, then tag the merged main
commit:
git switch main
git pull --ff-only
git tag v1.1.0
git push origin v1.1.0
The workflow validates that the tag matches the package version. For example,
v1.1.0 must match [project].version = "1.1.0", and CHANGELOG.md must
contain a ## 1.1.0 section.
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
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
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 pyairbnk-1.1.0.tar.gz.
File metadata
- Download URL: pyairbnk-1.1.0.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6625f10332a356d0f60652817ad56008f373d0318be33f643232690fcd82e304
|
|
| MD5 |
2a788556934813420f5830a34e6d6516
|
|
| BLAKE2b-256 |
8c54acfd49875a513dda2c14cb5a6e415b46ab7b29dfc5486a9ba81dd3cff9b2
|
Provenance
The following attestation bundles were made for pyairbnk-1.1.0.tar.gz:
Publisher:
release.yml on Moballo-LLC/pyairbnk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyairbnk-1.1.0.tar.gz -
Subject digest:
6625f10332a356d0f60652817ad56008f373d0318be33f643232690fcd82e304 - Sigstore transparency entry: 2002121235
- Sigstore integration time:
-
Permalink:
Moballo-LLC/pyairbnk@70388d2dc9158e036dc959569b653a2843ffd27c -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Moballo-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@70388d2dc9158e036dc959569b653a2843ffd27c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyairbnk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pyairbnk-1.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd2043d21717ffe393b4da6fc9b8dc39d62cd117e26062225089bedd0b6aa646
|
|
| MD5 |
54b577e1c716d4c6d2b9690393a0e199
|
|
| BLAKE2b-256 |
14ee1d00b4d97e95ab4cd284ec6887cc51c0339ac72b560925dad8a14558882d
|
Provenance
The following attestation bundles were made for pyairbnk-1.1.0-py3-none-any.whl:
Publisher:
release.yml on Moballo-LLC/pyairbnk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyairbnk-1.1.0-py3-none-any.whl -
Subject digest:
dd2043d21717ffe393b4da6fc9b8dc39d62cd117e26062225089bedd0b6aa646 - Sigstore transparency entry: 2002121297
- Sigstore integration time:
-
Permalink:
Moballo-LLC/pyairbnk@70388d2dc9158e036dc959569b653a2843ffd27c -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Moballo-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@70388d2dc9158e036dc959569b653a2843ffd27c -
Trigger Event:
push
-
Statement type: