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

Uploaded Source

Built Distribution

heatzypy-2.1.8-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.1.8.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for heatzypy-2.1.8.tar.gz
Algorithm Hash digest
SHA256 f3dc0a6c1fa4c18ba5695a9b177c0f01cd7849ca7b5e78e11b72cfeed2e1c6d9
MD5 263f5bcf4d478e812911969be65aff8e
BLAKE2b-256 b2de53c10fafe0aaa1d35476ac6683d5808b312df8ca31f61288b149b5c8abca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.1.8-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for heatzypy-2.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc91b3f70d9844ee50f3660a5a07844e3a81171e4b770fe9bb9cd657f03f595
MD5 1d6dd5e898d0d128e082ea39f1b0e25e
BLAKE2b-256 114e019c0baf7e741dc291eb3645d6e468a420b916f589baebdd955be22d2d0a

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