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.4.tar.gz (315.6 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.4-py3-none-any.whl (79.0 kB view details)

Uploaded Python 3

File details

Details for the file aioafero-7.0.4.tar.gz.

File metadata

  • Download URL: aioafero-7.0.4.tar.gz
  • Upload date:
  • Size: 315.6 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.4.tar.gz
Algorithm Hash digest
SHA256 0ff6c211ee8938ebac4aed42db631fb9542490d7eae529b66b7f99d4fc758d54
MD5 933ed2fa5665aa2972c6b12118264ca7
BLAKE2b-256 796f078fd8220996a77d097101d40b5057e31be013df9b5d9231989acec98c0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioafero-7.0.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: aioafero-7.0.4-py3-none-any.whl
  • Upload date:
  • Size: 79.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b4a3d1fd7b8997a889a3f0d0e0be8340a356b6e12b6483cd7a8aea2fa9152184
MD5 e629be3ce23f864d07a00a0fc29de4cd
BLAKE2b-256 875e194ca5c232d6f50660c552f8b47e1ced9be7e0acb0fad4a6f01bc74f2a24

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioafero-7.0.4-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