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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 8b4e3ede34fa229f441b403d3a3e1683759f171c1688c8b16238d63114396538
MD5 69461d12f7dd05914a39870590887069
BLAKE2b-256 01378391089a13e793198f0e3fd70bd994ee45c55b82b333d854b9a26fff9b9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6b1da93f6019d2443d2b9753aa6a745b5dc5dbd92b11ffb751ce2cd056ed9a61
MD5 858722935c8baf832d289944abac2132
BLAKE2b-256 f48ea1300f35b30bca93339ffd82641c25e548090fd4e2f3f77dae523c85baff

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