Skip to main content

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

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.21.tar.gz (61.2 kB view details)

Uploaded Source

Built Distribution

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

heiman_connect-1.0.21-py3-none-any.whl (135.2 kB view details)

Uploaded Python 3

File details

Details for the file heiman_connect-1.0.21.tar.gz.

File metadata

  • Download URL: heiman_connect-1.0.21.tar.gz
  • Upload date:
  • Size: 61.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for heiman_connect-1.0.21.tar.gz
Algorithm Hash digest
SHA256 cb743675dc0eeb8e11c3026de7c428fd1d4bb13f9ab3e71341c01d4c1a132f47
MD5 561a9d6ad2951ea1faaeca3e9e4233e8
BLAKE2b-256 0ea74cbb624585a73159669800a1ad4c7481906c63e0127d45b946cb991efeb6

See more details on using hashes here.

File details

Details for the file heiman_connect-1.0.21-py3-none-any.whl.

File metadata

File hashes

Hashes for heiman_connect-1.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 5f38a0d613760c8a2be2f0557bd9f29a78129a027346b4df927e68641a955597
MD5 a2e334f5f83f41c2924c8a09e6eced88
BLAKE2b-256 10b8c3cb948f97b98f06867766d832496bdb129da3ed84f90aa7312f7cce8868

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.28

2 files

1.0.27

2 files

1.0.26

2 files

1.0.25

2 files

1.0.24

2 files

1.0.23

2 files

1.0.22

2 files

This release

1.0.21 This release

2 files

1.0.20

2 files

1.0.19

2 files

1.0.18

2 files

1.0.17

2 files

1.0.16

2 files

1.0.15

2 files

1.0.14

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

1 file

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page