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

Uploaded Source

Built Distribution

wsheatzypy-1.1.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wsheatzypy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b46d58ccb7150732eeda0360169b174f2cb99c0c4ea57d936e4b451f50702890
MD5 1e54bf477b7b6db0f111195349d004cf
BLAKE2b-256 09494dc36e741f88d116827a779a64eab08f6babbc9966e0df5e6241b3d78588

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wsheatzypy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f68f1d5aaf6425ba2be93200e3d7aef75c6d42edbc35fa1dad9f871c48015f7e
MD5 096c89bf2048528b431f4833ee84b125
BLAKE2b-256 65f96b368df0cbc9846f2b29b66270bab201ca77e78e779b18ccdd71fc637474

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