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

Uploaded Source

Built Distribution

wsheatzypy-1.0.6-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wsheatzypy-1.0.6.tar.gz
  • Upload date:
  • Size: 19.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.0.6.tar.gz
Algorithm Hash digest
SHA256 15ee9c8da15de86d182e38e00fb749b979b9f3be7afcc43b4edd808c778a63b9
MD5 8afab6ca29bf5af285bdf3454b9ba033
BLAKE2b-256 476d53765fb9d869c8096946bb6d1319929976b94db505d11a5919d29b43e60d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wsheatzypy-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1de1d0d54700ed969f67ed83e09fb088f88649b3a1dbb9e7a297a0e01e8a8bfa
MD5 470561e70839b82d9a2e5035420b932a
BLAKE2b-256 04e10623fd2065dcb460a1942ef75049a72639084a6d3b9625f2709b516faf1f

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