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

Uploaded Source

Built Distribution

heatzypy-2.5.3-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.5.3.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.3.tar.gz
Algorithm Hash digest
SHA256 010a279d01338f4a59733c4ba6dd64a92ac1f172b22a9cca38700051f5126e8c
MD5 37803b9cae23c5b81ae275fa6b4766ec
BLAKE2b-256 7e2e22edb1944e150c96503fbdfbc266573c11a493c5d258cd6b8caec79daa7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: heatzypy-2.5.3-py3-none-any.whl
  • Upload date:
  • Size: 21.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65a61b5c35b18838980a7e173fb1696f84612626f4b35dfa5b92f4451e4d01c8
MD5 808f96b80ccc079714406602a42ec5fd
BLAKE2b-256 262469c01944b2f82fb08fc17f65487ace3f98acd254440ff45a1c8f7b729b59

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