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
- Clone this repository.
- (Optional) create and activate a virtual environment.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59c7b6454ccafafa9820aafecfa31a8ff3f366c0396e80c2ad57b970f0ee1602
|
|
| MD5 |
9c7453136e53d8d3f2fcd63f3f471a40
|
|
| BLAKE2b-256 |
9b6f8ba694942d727f5483328a74e8cf7f2d9bd892007d807e601c1eaae13eb2
|
Provenance
The following attestation bundles were made for homismart_client-0.1.1.tar.gz:
Publisher:
python-publish.yml on Krafman/homismart-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
homismart_client-0.1.1.tar.gz -
Subject digest:
59c7b6454ccafafa9820aafecfa31a8ff3f366c0396e80c2ad57b970f0ee1602 - Sigstore transparency entry: 232173331
- Sigstore integration time:
-
Permalink:
Krafman/homismart-client@f0dd0195bdeb787c489f42f8cc563013953b0fa6 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Krafman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f0dd0195bdeb787c489f42f8cc563013953b0fa6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file homismart_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: homismart_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 41.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a9c960caf8be3968e7b4286a992f7eb5fa5b9119e04119f04dbda93158ad21c
|
|
| MD5 |
1e6ac5bf4bc8e764f230204879dc6894
|
|
| BLAKE2b-256 |
4587d874bab5c23b92faef9136892a01f380eda5df8e962478256e35635202b6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
homismart_client-0.1.1-py3-none-any.whl -
Subject digest:
6a9c960caf8be3968e7b4286a992f7eb5fa5b9119e04119f04dbda93158ad21c - Sigstore transparency entry: 232173332
- Sigstore integration time:
-
Permalink:
Krafman/homismart-client@f0dd0195bdeb787c489f42f8cc563013953b0fa6 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Krafman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f0dd0195bdeb787c489f42f8cc563013953b0fa6 -
Trigger Event:
release
-
Statement type: