Skip to main content

Provides authentication and access to Websocket Heatzy module

Project description

heatzypy

Manage your Heatzy in Python with websocket

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

wsheatzypy-1.0.5.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

wsheatzypy-1.0.5-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file wsheatzypy-1.0.5.tar.gz.

File metadata

  • Download URL: wsheatzypy-1.0.5.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for wsheatzypy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 9965a3a204a02fd80caa771a8cd2c1f67ddf9a7c61e86ace8835f17fb5e8d4f0
MD5 047682ccd36a65c613e7fa7927272769
BLAKE2b-256 8b3b8274105e3c173a1c64533d1e0ef1ff5b18076a2719b3689798bc882862f9

See more details on using hashes here.

File details

Details for the file wsheatzypy-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: wsheatzypy-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for wsheatzypy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dcab694e2524cd1ca353210acd219278f20729b302a6113bbac9d20f3cd5df71
MD5 b1864b52e7e2416920ea2f8c39486be6
BLAKE2b-256 42c75686bf8b29ea52f38b4ef485ec58bcf97f3c00947377947d30614e60312d

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