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

Uploaded Source

Built Distribution

heatzypy-2.5.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.5.0.tar.gz
  • Upload date:
  • Size: 24.0 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.0.tar.gz
Algorithm Hash digest
SHA256 5bb06837d01e8e4760af7ea915021e3f7ba6b1e5b7f1be19b3c992cc0bdbd035
MD5 0bdc222872e689e383aa50c947a2c672
BLAKE2b-256 08e7c4be4b5f0d990614024f03b1adfaa563bd1647616bc973e3f67b30ed8e37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c63e941d3df40353002ce72b1cef0fb5c3068aaf143a7027c56f8afd899f717c
MD5 5149311521b5dc56249bd4fc4060bad3
BLAKE2b-256 3f8947b4bdf18c8740ac2878bf65f2f9c89d985e711016c24f257692f222286b

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