Skip to main content

Provides 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.5.4.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

heatzypy-2.5.4-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.5.4.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for heatzypy-2.5.4.tar.gz
Algorithm Hash digest
SHA256 270be7d6a0516faa8d5d8dd31d16ebc543c36aad6c55860de530fcfe365664d3
MD5 30b4aabf6c6e036c9af89105674ba7c9
BLAKE2b-256 89eb3449063be968f92faf68ab046948811e5f2ded3af41e65264b6bd909dd48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.5.4-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for heatzypy-2.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 746ee7332c9143db78e09f300b806acb3f4bbdb01dbe5ae1229a735d3f2db0bc
MD5 351bbb8620b88f7634624a65bc9ae1c6
BLAKE2b-256 18c2fa7b99db00a7703db911107081edbe4d7abf778defe6f7d1a8e1c057e8c4

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