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

Uploaded Source

Built Distribution

wsheatzypy-1.2.3-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wsheatzypy-1.2.3.tar.gz
Algorithm Hash digest
SHA256 85bd48b4ab9565aa13c891d52b74d6735b0ae2041eae4871fecaeca4bd440a38
MD5 09ca9aec09b1d4ad6d9dfc772b555cee
BLAKE2b-256 fb9f9a2268c935fa8dcfb3f4c4543efeac0b2a025747305aabdc1d742ee89533

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wsheatzypy-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 20.7 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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3071a0f7130008491311f452e93b40f7dc8ec3f763e1dc0a60b1aa024e40c951
MD5 51039b1a8d466ea8ec63b593f2cf7750
BLAKE2b-256 70442d2d98a8fef2956775ddc5ed238e31ee3569682f91513a924f815d73f39a

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