Talk to the Afero API asynchronously
Project description
Async Python library for the Hubspace / Afero IoT cloud API. Discover devices, poll state, and send commands through typed controllers on AferoBridgeV1.
Documentation: https://aioafero.readthedocs.io/
Installation
pip install aioafero
For Home Assistant, use the Hubspace integration, which installs this library from PyPI.
Quick start
Examples assume an asyncio REPL (python -m asyncio).
from aioafero import v1
bridge = v1.AferoBridgeV1("user@example.com", "password")
await bridge.initialize()
await bridge.async_block_until_done()
light = bridge.lights.get_device("<device_id>")
print(light.on)
await bridge.lights.turn_on("<device_id>")
await bridge.close()
See the user guide for architecture, configuration, controllers, subscribe callbacks, and troubleshooting.
Contributing
Bug reports and pull requests are welcome on GitHub. See CONTRIBUTING.md and the contributing docs.
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 aioafero-7.0.5.tar.gz.
File metadata
- Download URL: aioafero-7.0.5.tar.gz
- Upload date:
- Size: 327.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2d62ddc1d5ac12937c50be890a9b1489c32e91d33f92231b914578c09a2b74d
|
|
| MD5 |
26504fbaa3997388e47bdb8924cd8692
|
|
| BLAKE2b-256 |
ec5f2d38e4e26268b1ce8e89c768c3def2e82fe784efc5e32c52e2a6752af4ff
|
Provenance
The following attestation bundles were made for aioafero-7.0.5.tar.gz:
Publisher:
release.yaml on Expl0dingBanana/aioafero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioafero-7.0.5.tar.gz -
Subject digest:
f2d62ddc1d5ac12937c50be890a9b1489c32e91d33f92231b914578c09a2b74d - Sigstore transparency entry: 1872906718
- Sigstore integration time:
-
Permalink:
Expl0dingBanana/aioafero@7cc4bf85a1a22543bdafc1568a2159b84618aa21 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Expl0dingBanana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@7cc4bf85a1a22543bdafc1568a2159b84618aa21 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file aioafero-7.0.5-py3-none-any.whl.
File metadata
- Download URL: aioafero-7.0.5-py3-none-any.whl
- Upload date:
- Size: 80.0 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 |
9f04811d34689e759278e4e9d267bd8b7564ea75410ae500b3e113d150ba7481
|
|
| MD5 |
52359e8a627db006a16fcde03179e4cc
|
|
| BLAKE2b-256 |
a577f9708c58e93c38ed02347f2b036fb2a0809bfb04347ae3679832891d1c73
|
Provenance
The following attestation bundles were made for aioafero-7.0.5-py3-none-any.whl:
Publisher:
release.yaml on Expl0dingBanana/aioafero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioafero-7.0.5-py3-none-any.whl -
Subject digest:
9f04811d34689e759278e4e9d267bd8b7564ea75410ae500b3e113d150ba7481 - Sigstore transparency entry: 1872906848
- Sigstore integration time:
-
Permalink:
Expl0dingBanana/aioafero@7cc4bf85a1a22543bdafc1568a2159b84618aa21 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Expl0dingBanana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@7cc4bf85a1a22543bdafc1568a2159b84618aa21 -
Trigger Event:
workflow_dispatch
-
Statement type: