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.22.tar.gz (60.7 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.22-py3-none-any.whl (134.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heiman_connect-1.0.22.tar.gz
  • Upload date:
  • Size: 60.7 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.22.tar.gz
Algorithm Hash digest
SHA256 7a477c403282499c7e77331f12c2906540c6dc7305fa8e7e7e21049491c227c1
MD5 926ab0f13fe4ba9b629797d4a61fd75c
BLAKE2b-256 000bc37ded5e63f89e0a76c08a144fe9644bcba0befb58e4425e50c98f0ef302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heiman_connect-1.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 4d6bd6f5f7e42354fb3eb8a710a89522c249070bba5a4d065927a6105524f766
MD5 b704e3a59b0dcbcadb1f962c617f21bb
BLAKE2b-256 f76dedd2cd8e7ad90ac239357ea5a5cf4d448b197fe21f29d8e889cddd6103b7

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

This release

1.0.22 This release

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