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

Uploaded Python 3

File details

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

File metadata

  • Download URL: heiman_connect-1.0.20.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.20.tar.gz
Algorithm Hash digest
SHA256 2ef3bcadbeea6039441709bcf0fe3c8bab723c8cce6baf4c3f06369d2f40eda8
MD5 63a660a514ba5272638ca78c3c44d41a
BLAKE2b-256 da16a5ec626834bf7cf7cfb4568109614b2f3be5cf63e81648e6f90f41c58258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heiman_connect-1.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 cd5481b0487d0999c7b5a1a132a95e57b4283eb8590d90269232ca6c50ab305a
MD5 9962320e0af56222c7a034039387a73b
BLAKE2b-256 b500da44f5736c23fec54768a8966d21f35c0c13bd36673cd62f44bfeaa41286

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

1.0.21

2 files

This release

1.0.20 This release

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