Async client for the HiFiBerry OS / HBOS NG AudioControl REST API
Project description
aiohifiberry
Async Python client for the HiFiBerry OS / HBOS NG AudioControl REST API.
This package is intended to hold the device communication layer used by a Home Assistant Core integration. It does not import Home Assistant.
Example
from aiohttp import ClientSession
from aiohifiberry import AudioControlClient
async with ClientSession() as session:
client = AudioControlClient(session, "hifiberry.local")
await client.async_update()
print(client.now_playing)
await client.async_command("pause")
Supported API Areas
- Connection validation.
- Now-playing and player discovery.
- Active-player capability detection.
- Play, pause, stop, next, and previous commands.
- Volume state and volume commands.
- HBOS NG cover-art lookup.
HBOS NG normally exposes AudioControl through the public web UI route:
http://<device>/api/audiocontrol/
Some builds also expose backend services on custom ports. The client defaults
to port 80 and falls back to the public route for proxied endpoints when a
non-80 port is supplied.
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 aiohifiberry-0.1.0.tar.gz.
File metadata
- Download URL: aiohifiberry-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ae74635c3caa809cd9b28ab71d8d5849e21833be087e4c057dfb75ebe0bc7e6
|
|
| MD5 |
efac90b9b120a96808d0dfa5ce80c6a9
|
|
| BLAKE2b-256 |
8f77b7295aff5c500f4ccdba4b1bd0a36609c54dba51a318e7bca63b3aed2730
|
File details
Details for the file aiohifiberry-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aiohifiberry-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
610e700bbb28c6a0b49ac58f86128f889118b4738cd316b4e53a2c6ec0933472
|
|
| MD5 |
5eff29bbadc422e719bc7e4f4479a617
|
|
| BLAKE2b-256 |
3fa3acc1bc0a889425734252ea389eb7f24ac6b0d046ce2ff6d301823f234e01
|