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

Metadata

Release files for heiman-connect 1.0.30

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heiman-connect 1.0.30
File Size Uploaded Provenance
heiman_connect-1.0.30.tar.gz 61.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for heiman-connect 1.0.30
File Interpreter ABI Platform
heiman_connect-1.0.30-py3-none-any.whl Python 3 none any Details

Total release size: 198.1 kB

Release files / heiman_connect-1.0.30.tar.gz

Download URL heiman_connect-1.0.30.tar.gz
Size 61.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ae90a1d82e8b037b45bc579ad82d79a3fd79cff377993bfd1b785494630c4336
BLAKE2b-256 checksum
How to use checksums
e7b02ba28cbce08b15d139f47f643da23789da89fd043eac9139ba892774127a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / heiman_connect-1.0.30-py3-none-any.whl

Download URL heiman_connect-1.0.30-py3-none-any.whl
Size 136.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d72a6f2b642c0bd67ad35a3e0cac0b71069d737aebed0bb9c460e937a7acdbcf
BLAKE2b-256 checksum
How to use checksums
ad00419f46c3b0b1b7fcb99155fc72d28b1bbd101c38cd97ba60f98c37be840e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for heiman-connect 1.0.30

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.30 This release

2 release files No provenance

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