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.4.0.tar.gz (10.2 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.4.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aliste-2.4.0.tar.gz
  • Upload date:
  • Size: 10.2 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.4.0.tar.gz
Algorithm Hash digest
SHA256 a8bebf341d0508c3e585c0f1de8727bcbfa3a84230aaedc6a3fa204c9319b4c7
MD5 43c02eb8afd0992ea9765c48637bfe4a
BLAKE2b-256 7194d5f2f053af9e3887b32a5f886cf9ff576d7c101721cd62a15b2d1353a531

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aliste-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d1a6253880d2e940b7cb73b89aa723a53ca4e004c95019eb80c482238c5aff7
MD5 e0d06580ba49b278096bc34e003b1109
BLAKE2b-256 9d683ffb5ab9ae3bd098dc691d2693c40f07e84f34e9443334653fef7f552ade

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