Skip to main content

Provides asynchronous authentication and access to Heatzy module

Project description

heatzypy

Manage your Heatzy in Python

Check your config, enable or disable heater, change preset mode.

Install

Use the PIP package manager

$ pip install heatzypy

Or manually download and install the last version from github

$ git clone https://github.com/cyr-ius/heatzypy.git
$ python setup.py install

Get started

# Import the heatzypy package.
import asyncio
from heatzypy import HeatzyClient

async def main():
    api = HeatzyClient("username", "password")
    devices = await api.async_get_devices()
    for device in devices:
        name = device.get("dev_alias")
        data = await api.async_get_device(device["did"])
        mode = data.get("attr").get("mode")
        logger.info("Heater : {} , mode : {}".format(name, mode))
loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Have a look at the example.py for a more complete overview.

Notes on HTTPS

Not implemented

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heatzypy-2.2.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

heatzypy-2.2.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file heatzypy-2.2.0.tar.gz.

File metadata

  • Download URL: heatzypy-2.2.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for heatzypy-2.2.0.tar.gz
Algorithm Hash digest
SHA256 07c92e8d51a3f24af0eec899b15f95e2f91f89d9be62fa55b2fe7cae7627070a
MD5 0429ff299752aad2216faac079a1cc83
BLAKE2b-256 2a45a9f933ddece301231d87ef9c1e5e90f362f7f5ab5a1802096f44f06eeb37

See more details on using hashes here.

File details

Details for the file heatzypy-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: heatzypy-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for heatzypy-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 208cf8cf8ceee97f981175f70b0f06071b8a7e0d4f183e38ba2ad6fc65ab6b7c
MD5 d77d8f9d209341c95f7819b9f2608c3b
BLAKE2b-256 f38ea21e2378c1a71713c102efff4334b46a5441e3053c053f504307b53bd08c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page