Skip to main content

Async Python library for the Akuvox local HTTP API

Project description

pylocal-akuvox

CI Documentation License Python

Async Python library for the Akuvox local HTTP API.

pylocal-akuvox provides a single AkuvoxDevice object for communicating with Akuvox intercoms and access controllers on the LAN. It supports user/PIN management, relay control, schedule management, and log retrieval over the device's local HTTP API.

Features

  • Async-only — designed for asyncio event loops and Home Assistant
  • Single runtime dependency — only aiohttp
  • Full device management — users, PINs, relays, schedules, and logs
  • Multiple auth modes — None, Allowlist, Basic, and Digest
  • SSL support — including self-signed certificate handling
  • Comprehensive error handling — typed exception hierarchy

Installation

pip install pylocal-akuvox

Quick Start

import asyncio
from pylocal_akuvox import AkuvoxDevice

async def main():
    async with AkuvoxDevice("192.168.1.100") as device:
        info = await device.get_info()
        print(f"{info.model} — FW {info.firmware_version}")

asyncio.run(main())

Manage Users and PINs

import asyncio
from pylocal_akuvox import AkuvoxDevice

async def main():
    async with AkuvoxDevice("192.168.1.100") as device:
        await device.add_user(
            name="Alice",
            user_id="2001",
            web_relay="0",
            schedule_relay="1001-1;",
            lift_floor_num="0",
            private_pin="1234",
        )

        users = await device.list_users()
        for user in users:
            print(f"{user.name} (ID: {user.user_id})")

asyncio.run(main())

Trigger a Door Relay

import asyncio
from pylocal_akuvox import AkuvoxDevice

async def main():
    async with AkuvoxDevice("192.168.1.100") as device:
        await device.trigger_relay(num=1, delay=5)

asyncio.run(main())

Authentication

import asyncio
from pylocal_akuvox import AkuvoxDevice, AuthConfig, AuthMethod

async def main():
    # Basic Auth
    auth = AuthConfig(method=AuthMethod.BASIC, username="admin", password="secret")
    async with AkuvoxDevice("192.168.1.100", auth=auth) as device:
        info = await device.get_info()

asyncio.run(main())

Documentation

Full documentation is available at pylocal-akuvox.readthedocs.io.

Contributing

This project uses uv for dependency management.

# Clone and install
git clone https://github.com/tykeal/pylocal-akuvox.git
cd pylocal-akuvox
uv sync --group dev

# Run tests
uv run pytest tests/ -x -q

# Run linting
uv run ruff check src/ tests/

# Build docs locally
uv run --extra docs sphinx-build -b html docs docs/_build/html

License

Apache-2.0 — see LICENSE for details.

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

pylocal_akuvox-0.2.2.tar.gz (192.0 kB view details)

Uploaded Source

Built Distribution

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

pylocal_akuvox-0.2.2-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file pylocal_akuvox-0.2.2.tar.gz.

File metadata

  • Download URL: pylocal_akuvox-0.2.2.tar.gz
  • Upload date:
  • Size: 192.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pylocal_akuvox-0.2.2.tar.gz
Algorithm Hash digest
SHA256 894937ca53344e7d21caeecc2133a3206e32bc1b956c2214dbafc3d594b07e4e
MD5 e71067819f0a9fb53e4fcfce6bf45d82
BLAKE2b-256 d5da4f4894d00aa8c5dcd3853fdc9a172986fcca7c8a604dfd08a1f0d1c36010

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylocal_akuvox-0.2.2.tar.gz:

Publisher: build-test-release.yaml on tykeal/pylocal-akuvox

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

File details

Details for the file pylocal_akuvox-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pylocal_akuvox-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pylocal_akuvox-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7cc6fabd9ae975f8974514cff9a3e53a0efb403bb7fbd81598b0bfda31841d7
MD5 0940101fec2b8a273501e06ad753095f
BLAKE2b-256 a9f1c1e6fdd118b2ae20c04247789e1bc3a86d01fd92df48ada8139a3502f47b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylocal_akuvox-0.2.2-py3-none-any.whl:

Publisher: build-test-release.yaml on tykeal/pylocal-akuvox

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