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.25.tar.gz (61.0 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.25-py3-none-any.whl (135.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heiman_connect-1.0.25.tar.gz
  • Upload date:
  • Size: 61.0 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.25.tar.gz
Algorithm Hash digest
SHA256 963e8e8a8339704208a074412db0f531100f34485e3c16d446ed3c040fe1fd24
MD5 0b6a9c2761901fc4e87b7889a99d055a
BLAKE2b-256 80bcf741525614f40d3ffe2de7be347980a946253ddd6efb5976f6da0e72a42b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heiman_connect-1.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 bf044ee9a0d86c694b23895154e4e6a8037db9d07bb77e8c9de8370db8de0808
MD5 4c875259aeacb00c64699847201edf28
BLAKE2b-256 b120dc2f16c477b533987ba969f391692db8c93c4d9c6c6ebe2832d714c1446f

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

This release

1.0.25 This release

2 files

1.0.24

2 files

1.0.23

2 files

1.0.22

2 files

1.0.21

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