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

Uploaded Source

Built Distribution

heatzypy-2.0.4-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.0.4.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for heatzypy-2.0.4.tar.gz
Algorithm Hash digest
SHA256 6d79241dffadea4f6786b5ee30dd72cdb23189a4ffed232eb4c13766f965fe38
MD5 711adf62a48b0f2f619772907a1e15f6
BLAKE2b-256 5c32a730a80ea8b52f8c38efdf6158f7671af8e65b0bfe46304ad4e40a5aba27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for heatzypy-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 33ad9c41230299063abae9fb59c3d1c8bb84ac30c51d219f1f2cb7a3e4105c03
MD5 0dc84cb782bcb15f4484fe0afa17ead7
BLAKE2b-256 bd3ffe0ceb57dc0e2f6ed91f09d13d51b44202a441a2459e1e2206705e8de66e

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