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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.5.2.tar.gz
  • Upload date:
  • Size: 24.5 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.2.tar.gz
Algorithm Hash digest
SHA256 96a8e5f4a890af9209eac0b25aad48e69e7dc0e4a44f01af89f211f2913e5e46
MD5 81fb55f9ee368ebe32af9ee9ca7af486
BLAKE2b-256 b6c8431f85e2a266965aa42c9dafa593a77a90b8cf4b72e4be1ba89a2efba9a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.5.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71afac28dbf33a4a2f793353cc42ea21ae717e351c31b5d2eca5e66f1ce0a4d6
MD5 4578caf6251bc4ae3bca55c0e144ad39
BLAKE2b-256 7650a172f59d335269898033330861855e7fa456036a79766e9a418063332613

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