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.0.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.0-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for homismart_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 762ee0b91da2fa8079b8a122a8925bd3ebbf1d34c3c0a5af93377ef77e0d7c35
MD5 52e82b3a7bcd5d46084ba47309d00593
BLAKE2b-256 8e6e23fd979b1d4006f13c5b5518baa0ceb4a252f8d97bd2b6326e8da275965f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for homismart_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8fe7b3f76e4c68b11eaeaa318222837e8c0899a2b8df59a61c08907650809e
MD5 f289b1bfec5d67e4a58846f97af50b52
BLAKE2b-256 928339ab47fa98de96a66199cfebc531e028762c6c318320d4fc6012b71a400d

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