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

Uploaded Source

Built Distribution

heatzypy-2.0.5-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.0.5.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for heatzypy-2.0.5.tar.gz
Algorithm Hash digest
SHA256 5ee736effdbc071674b61f7aabcb146aa36c3c25e255d2261ce15e528e773948
MD5 a6003729db3550c2b68162d036a3d2cb
BLAKE2b-256 1c52cc87761a84f346a840daa775da1616655b6a159a0fda115608709ca51ab0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for heatzypy-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 06de189c8b010789ce2bd1c3445a79895e0c4c670c0a86a6f01f8b8a5a2fd506
MD5 e078d56869913200739f5f51a7e022f4
BLAKE2b-256 af834228eb238684be034f02368b7b5d86140202dd9bd2fd8408450a9f8c4fb5

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