Skip to main content

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/

https://github.com/Expl0dingBanana/aioafero/actions/workflows/cicd.yaml/badge.svg?branch=main https://codecov.io/github/Expl0dingBanana/aioafero/graph/badge.svg?token=NP2RE4I4XK

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


Download files

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

Source Distribution

aioafero-7.0.5.tar.gz (327.5 kB view details)

Uploaded Source

Built Distribution

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

aioafero-7.0.5-py3-none-any.whl (80.0 kB view details)

Uploaded Python 3

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

Hashes for aioafero-7.0.5.tar.gz
Algorithm Hash digest
SHA256 f2d62ddc1d5ac12937c50be890a9b1489c32e91d33f92231b914578c09a2b74d
MD5 26504fbaa3997388e47bdb8924cd8692
BLAKE2b-256 ec5f2d38e4e26268b1ce8e89c768c3def2e82fe784efc5e32c52e2a6752af4ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioafero-7.0.5.tar.gz:

Publisher: release.yaml on Expl0dingBanana/aioafero

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

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

Hashes for aioafero-7.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9f04811d34689e759278e4e9d267bd8b7564ea75410ae500b3e113d150ba7481
MD5 52359e8a627db006a16fcde03179e4cc
BLAKE2b-256 a577f9708c58e93c38ed02347f2b036fb2a0809bfb04347ae3679832891d1c73

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioafero-7.0.5-py3-none-any.whl:

Publisher: release.yaml on Expl0dingBanana/aioafero

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