heatzypy


Nameheatzypy JSON
Version 2.5.4 PyPI version JSON
download
home_pageNone
SummaryProvides authentication and access to Heatzy module
upload_time2024-05-02 10:58:07
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11.0
licenseGPL-3
keywords heatzy websocket async climate
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "heatzypy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11.0",
    "maintainer_email": null,
    "keywords": "heatzy, websocket, async, climate",
    "author": null,
    "author_email": "Cyr-ius <cyr-ius@ipocus.net>",
    "download_url": "https://files.pythonhosted.org/packages/89/eb/3449063be968f92faf68ab046948811e5f2ded3af41e65264b6bd909dd48/heatzypy-2.5.4.tar.gz",
    "platform": "any",
    "description": "# heatzypy\n\nManage your Heatzy in Python\n\nCheck your config, enable or disable heater, change preset mode.\n\n## Install\n\nUse the PIP package manager\n\n```bash\n$ pip install heatzypy\n```\n\nOr manually download and install the last version from github\n\n```bash\n$ git clone https://github.com/cyr-ius/heatzypy.git\n$ python setup.py install\n```\n\n## Get started\n\n```python\n# Import the heatzypy package.\nimport asyncio\nfrom heatzypy import HeatzyClient\n\nasync def main():\n    api = HeatzyClient(\"username\", \"password\")\n    devices = await api.async_get_devices()\n    for device in devices:\n        name = device.get(\"dev_alias\")\n        data = await api.async_get_device(device[\"did\"])\n        mode = data.get(\"attr\").get(\"mode\")\n        logger.info(\"Heater : {} , mode : {}\".format(name, mode))\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\n```\n\nHave a look at the [example.py](https://github.com/cyr-ius/heatzypy/blob/master/example.py) for a more complete overview.\n\n## Notes on HTTPS\n\nNot implemented\n",
    "bugtrack_url": null,
    "license": "GPL-3",
    "summary": "Provides authentication and access to Heatzy module",
    "version": "2.5.4",
    "project_urls": null,
    "split_keywords": [
        "heatzy",
        " websocket",
        " async",
        " climate"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "18c2fa7b99db00a7703db911107081edbe4d7abf778defe6f7d1a8e1c057e8c4",
                "md5": "351bbb8620b88f7634624a65bc9ae1c6",
                "sha256": "746ee7332c9143db78e09f300b806acb3f4bbdb01dbe5ae1229a735d3f2db0bc"
            },
            "downloads": -1,
            "filename": "heatzypy-2.5.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "351bbb8620b88f7634624a65bc9ae1c6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11.0",
            "size": 20863,
            "upload_time": "2024-05-02T10:58:06",
            "upload_time_iso_8601": "2024-05-02T10:58:06.081332Z",
            "url": "https://files.pythonhosted.org/packages/18/c2/fa7b99db00a7703db911107081edbe4d7abf778defe6f7d1a8e1c057e8c4/heatzypy-2.5.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89eb3449063be968f92faf68ab046948811e5f2ded3af41e65264b6bd909dd48",
                "md5": "30b4aabf6c6e036c9af89105674ba7c9",
                "sha256": "270be7d6a0516faa8d5d8dd31d16ebc543c36aad6c55860de530fcfe365664d3"
            },
            "downloads": -1,
            "filename": "heatzypy-2.5.4.tar.gz",
            "has_sig": false,
            "md5_digest": "30b4aabf6c6e036c9af89105674ba7c9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11.0",
            "size": 24377,
            "upload_time": "2024-05-02T10:58:07",
            "upload_time_iso_8601": "2024-05-02T10:58:07.839459Z",
            "url": "https://files.pythonhosted.org/packages/89/eb/3449063be968f92faf68ab046948811e5f2ded3af41e65264b6bd909dd48/heatzypy-2.5.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-02 10:58:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "heatzypy"
}
        
Elapsed time: 0.26262s