Skip to main content

Python client for Homismart WebSocket API

Project description

Homismart Client

This repository contains an unofficial Python library for controlling Homismart smart home devices via their WebSocket API. It provides asynchronous helpers to log in with your Homismart account, discover devices and send commands such as turning switches on or off.

Installation

  1. Clone this repository.
  2. (Optional) create and activate a virtual environment.
  3. Install the package from the project root:
pip install .

Dependencies listed in requirements.txt will be installed automatically.

How to Run

Set your Homismart credentials in environment variables:

export HOMISMART_USERNAME="your_email@example.com"
export HOMISMART_PASSWORD="your_password"

You can then run the example script included in the project:

python homismart_client/examples/basic_usage.py

The example connects to the Homismart service, lists devices and performs a simple action. Use HomismartClient in your own scripts to build custom automations.

License

This project is licensed under the MIT License.

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

homismart_client-0.1.1.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

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

homismart_client-0.1.1-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file homismart_client-0.1.1.tar.gz.

File metadata

  • Download URL: homismart_client-0.1.1.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for homismart_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 59c7b6454ccafafa9820aafecfa31a8ff3f366c0396e80c2ad57b970f0ee1602
MD5 9c7453136e53d8d3f2fcd63f3f471a40
BLAKE2b-256 9b6f8ba694942d727f5483328a74e8cf7f2d9bd892007d807e601c1eaae13eb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for homismart_client-0.1.1.tar.gz:

Publisher: python-publish.yml on Krafman/homismart-client

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

File details

Details for the file homismart_client-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for homismart_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a9c960caf8be3968e7b4286a992f7eb5fa5b9119e04119f04dbda93158ad21c
MD5 1e6ac5bf4bc8e764f230204879dc6894
BLAKE2b-256 4587d874bab5c23b92faef9136892a01f380eda5df8e962478256e35635202b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for homismart_client-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on Krafman/homismart-client

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