Provides asynchronous authentication and access to Heatzy module
Project description
heatzypy
Manage your Heatzy in Python
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.
from heatzypy import HeatzyClient
api = HeatzyClient("username", "password")
async def async_demo():
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))
Have a look at the example.py for a more complete overview.
Notes on HTTPS
Not implemented
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
heatzypy-2.0.0.tar.gz
(16.1 kB
view details)
Built Distribution
heatzypy-2.0.0-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file heatzypy-2.0.0.tar.gz
.
File metadata
- Download URL: heatzypy-2.0.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aacf8cfb01829d583cbfbdb7e3bb2f4433f9cb0b9053abd4119e96adeed387c |
|
MD5 | 7c86823509484418300fab573707cbc1 |
|
BLAKE2b-256 | 06808dcd14be5e1dbd7e2570925b4b0b76181fe920962c2d061f5f6fc163ecd0 |
File details
Details for the file heatzypy-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: heatzypy-2.0.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 774008b119a8d0e337c8fc7c9074c259cac31a78e2f46bcd95086a5b638ca287 |
|
MD5 | 400a911b326d80855c8f6a49fa4eedcc |
|
BLAKE2b-256 | 9ef8f4cac5ddb1b54d46a6efac6ca4d4fa2ec5cfaaba4befa800e15a8d6a3417 |