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.17.tar.gz
(59.0 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.17.tar.gz.
File metadata
- Download URL: heiman_connect-1.0.17.tar.gz
- Upload date:
- Size: 59.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91452515f9da48bc3cb0f1e00af7b8c54ae2396cdd6fc4a77056b5d9ddeb938f
|
|
| MD5 |
a95fe0916a75dc42df52d372a940393f
|
|
| BLAKE2b-256 |
0139fe01a1835a098e9f553513dfbe474d5f4ec1a8f7312a6c2e8c5fae692405
|
File details
Details for the file heiman_connect-1.0.17-py3-none-any.whl.
File metadata
- Download URL: heiman_connect-1.0.17-py3-none-any.whl
- Upload date:
- Size: 133.1 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 |
9c38a739244f0d9d774acae2d42810dba8cfbd1dc98b781ff4abc27a5028ba11
|
|
| MD5 |
1db9d1809063ceec94fedaa238db7fc1
|
|
| BLAKE2b-256 |
bc0f7f45990afbb847dbc2c15ecde5d91a7da057ba45b44e4ff515c7ea758623
|