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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heatzypy-2.5.9-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heatzypy-2.5.9.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for heatzypy-2.5.9.tar.gz
Algorithm Hash digest
SHA256 8d5d7755c190b5f2b24c07c9d6537f240bc467e92bcb58c063e2df84a29f8347
MD5 f6e04f7e59365fa7d683cfadda3a8c13
BLAKE2b-256 67b6b40497f9eab10f260cd13493b036dd946febb594b0ac4c76cbdc7939fbd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for heatzypy-2.5.9.tar.gz:

Publisher: python-publish.yml on cyr-ius/heatzypy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: heatzypy-2.5.9-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for heatzypy-2.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b0164ff04c723159692248c439065e8498f3fb51f0a2569f5ad3c4612b17aea7
MD5 ac4e2e620021aac6496f338f1e3094a1
BLAKE2b-256 3c012fea396a99aadc885ff73717284039f00638a0e001c339279213d0e3d2ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for heatzypy-2.5.9-py3-none-any.whl:

Publisher: python-publish.yml on cyr-ius/heatzypy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page