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.23.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.23-py3-none-any.whl (134.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heiman_connect-1.0.23.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.23.tar.gz
Algorithm Hash digest
SHA256 0b92a22e6f2c3d235809bf6b9b5a7798cad30541e9368c362a24c843030f741f
MD5 3e9b6430724ca905898a17a28ef77baf
BLAKE2b-256 a449e76e33e95d99807642c97859000ba6f79306adb31539ae85800ef3ba7d7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heiman_connect-1.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 55978614952b2430f8f5022db89501261aeebdfe292c40ee27beb7a3bb1f07e8
MD5 15a1e779793f31f7f524f4337f04388e
BLAKE2b-256 b822854c5359f343e795b795bcf7faabd7bd9907984a0dc3c2f3626a06b70551

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

This release

1.0.23 This release

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