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

Uploaded Source

Built Distribution

heatzypy-2.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for heatzypy-2.1.0.tar.gz
Algorithm Hash digest
SHA256 94a1143b68d54859933b98b420a58a90a0871585a5779c30530bafd979f2f09f
MD5 e8dfe466c13c25c66795b44dec73a754
BLAKE2b-256 5b4bbfa44d1721b989b727ce7ee1a5d49d2e42e11ca61d1dbc573306f911266e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb7e8ab4db8eaecb7e4338bf67f59c9ae6f8c13966a3a051de7b2fcf10e754b
MD5 a26964e7e7abd76fdcc5485c75a08593
BLAKE2b-256 9e37b6d33e984554bcbfe7ba5d89bd7a71192b34128c309c97d3c48040dae4d0

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