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.0.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

heatzypy-2.0.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.0.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for heatzypy-2.0.2.tar.gz
Algorithm Hash digest
SHA256 2a5e72b672db68daab0cc0851eb33c1ea42ee19bda301a0f9c759941c21af397
MD5 e2cef96e12290d7163e344f17d6a8428
BLAKE2b-256 f421b3442805e6c0cdf6147a42b0f75b947f6bbcc7ee8a9a42a6151be61b444d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for heatzypy-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3cba3183babbfc78d9530c6953ab0adc614076144d105a5ec17ab2ba04224a9
MD5 e257998c4465a49be8f6ce128616e499
BLAKE2b-256 620620c161e3c1498b956d5c011524c19db032eec2eda12a3d57571de9beaff8

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