Python library for Heiman smart home devices
Project description
Heiman Connect Library
Python library for communicating with Heiman smart home devices.
Installation
pip install heiman-connect
Usage
import asyncio
from heimanconnect import HeimanHttpClient, HeimanCloudClient
async def main():
# Initialize HTTP client with access token
http_client = HeimanHttpClient(
api_url="https://api.heiman.cn",
access_token="your_access_token",
)
# Create cloud client
cloud_client = HeimanCloudClient(http_client)
# Get homes
homes = await cloud_client.async_get_homes()
# Get devices
devices = await cloud_client.async_get_devices(home_id=homes[0].home_id)
# Control device
await cloud_client.async_control_device(
device_id=device_id,
property_identifier="Switch",
value=True,
)
asyncio.run(main())
Features
- HTTP API client
- MQTT real-time communication
- Device management
- Property control
- Simplified authentication (bring your own token)
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
heiman_connect-1.0.14.tar.gz
(56.7 kB
view details)
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 heiman_connect-1.0.14.tar.gz.
File metadata
- Download URL: heiman_connect-1.0.14.tar.gz
- Upload date:
- Size: 56.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ebc04a4bf1bfc187595988a105ad7c1c583f8d9358b4f44598ec5f95988722c
|
|
| MD5 |
958f5ff9c0e32cda86be8e6ab5a2bd65
|
|
| BLAKE2b-256 |
11df9a97674ab8082e222b0386340c6376667ac58abcbd9db4707e1bde6374a7
|
File details
Details for the file heiman_connect-1.0.14-py3-none-any.whl.
File metadata
- Download URL: heiman_connect-1.0.14-py3-none-any.whl
- Upload date:
- Size: 131.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2af0f8e13abdcae9e2ad8fa552041a19bf2e1adf819ba862a80c82bb3ecf33b9
|
|
| MD5 |
72c69ff580e883954465721cd8d1e2f8
|
|
| BLAKE2b-256 |
7bf9eebb3daf0576aed86c6bdc768f3a55827d77e57c233137c8d0324e70a73d
|