Metadata-Version: 2.4
Name: heatzypy
Version: 2.6.1
Summary: Provides authentication and access to Heatzy module
Author-email: Cyr-ius <cyr-ius@ipocus.net>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/cyr-ius/heatzypy
Keywords: heatzy,websocket,async,climate
Platform: any
Classifier: Programming Language :: Python
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Topic :: Home Automation
Requires-Python: >=3.11.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.8.1
Provides-Extra: dev
Requires-Dist: prek; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-asyncio; extra == "dev"
Requires-Dist: python-typing-update; extra == "dev"
Requires-Dist: yamllint; extra == "dev"
Dynamic: license-file

# heatzypy

Manage your Heatzy in Python

Check your config, enable or disable heater, change preset mode.

## Install

Use the PIP package manager

```bash
$ pip install heatzypy
```

Or manually download and install the last version from github

```bash
$ git clone https://github.com/cyr-ius/heatzypy.git
$ python setup.py install
```

## Get started

```python
# 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](https://github.com/cyr-ius/heatzypy/blob/master/example.py) for a more complete overview.

## Notes on HTTPS

Not implemented
