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

Uploaded Source

Built Distribution

wsheatzypy-1.1.8-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wsheatzypy-1.1.8.tar.gz
  • Upload date:
  • Size: 23.3 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.8.tar.gz
Algorithm Hash digest
SHA256 0240846d3f99eb6fffbbe60aa8b06dc6a4814e20904e8e9c2818a82526a76787
MD5 c713821d9facd82325e0ec5d4472f732
BLAKE2b-256 add77a3872a05cf7357c6bb086c78d7b03f37c33e85edb36069eda9d9ac8e989

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wsheatzypy-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e2ab1f1f62fffad548a8667bcb9900b0a20a4804f04460c516cd7c6b5560b1b4
MD5 347dcef0acdb1e7584b1aef1790b2d79
BLAKE2b-256 25aebb5463b5b549041388006547d7facab7437a60ff5b2a4c8c419fb2a495f7

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