Skip to main content

Async Python SDK for Aliste Smart Home devices.

Project description

Aliste Smart Home SDK for Python

aliste 2.0 is an async-first SDK for discovering and controlling Aliste smart home devices from Python.

Requirements

  • Python 3.11 or newer
  • An Aliste account with at least one configured home

Install

uv add aliste

For a plain pip install:

pip install aliste

Development

uv sync --group dev
uv run ruff check .
uv run mypy aliste
uv build --no-sources

Quickstart

import asyncio

from aliste import AlisteHub


async def main() -> None:
    async with AlisteHub() as hub:
        await hub.connect("+91xxxxxxxxxx", "your-password")

        if hub.home is None:
            return

        print(f"Connected to {hub.home.name}")

        living_room_light = hub.home.get_device("device-id")
        if living_room_light is not None:
            await living_room_light.turn_on()


asyncio.run(main())

Live Smoke Test

List the first few devices on a real account:

ALISTE_USERNAME="+91xxxxxxxxxx" ALISTE_PASSWORD="your-password" \
uv run python scripts/test_live.py --action list

Toggle a specific device:

ALISTE_USERNAME="+91xxxxxxxxxx" ALISTE_PASSWORD="your-password" \
uv run python scripts/test_live.py --action toggle --device-id your-device-id

2.0 Migration Notes

  • The minimum supported Python version is now 3.11.
  • Packaging and local development use uv instead of Poetry.
  • await hub.connect(username, password) replaces hub.init(...).
  • async with AlisteHub() or await hub.close() now manages HTTP and MQTT lifecycle cleanly.

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

aliste-2.3.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

aliste-2.3.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file aliste-2.3.0.tar.gz.

File metadata

  • Download URL: aliste-2.3.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aliste-2.3.0.tar.gz
Algorithm Hash digest
SHA256 4fa9b8fc8014f888b320f83821b279d080abd4e652f9a6a868acbdd68cdafb07
MD5 abdfb1f8b0c743091711b18e4c9b2253
BLAKE2b-256 392499c18cafcbc139954ddb33d677877627d25a71e91308bcd0c96310161b56

See more details on using hashes here.

File details

Details for the file aliste-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: aliste-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aliste-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 047fd1a3891e5ae0f5d04739fd700b620032ce470d063ab7b7c5aa9c8565e746
MD5 97eda47b5633936884e6eba37d94ec74
BLAKE2b-256 c2d87c451f194587f7a36becbbf570e51858d19ef963f31b47713fca6bbceb91

See more details on using hashes here.

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