heatzypy


Nameheatzypy JSON
Version 2.5.6 PyPI version JSON
download
home_pageNone
SummaryProvides authentication and access to Heatzy module
upload_time2024-12-10 12:45:33
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11.0
licenseGPL-3
keywords heatzy websocket async climate
VCS
bugtrack_url
requirements aiohttp
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/c5/5c/e42c572c3954af2e985a18f9f5e6f02d9df3ab68ea3023aca300463c7f83/heatzypy-2.5.6.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.6",
    "project_urls": {
        "Homepage": "https://github.com/cyr-ius/heatzypy"
    },
    "split_keywords": [
        "heatzy",
        " websocket",
        " async",
        " climate"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "745f926748f1f3d132096908439e02b0893ae10a75ce8227056a86176aad3431",
                "md5": "f064844acf2a94a5900d380d30544723",
                "sha256": "86350f48849cb09dbd32bca7f5849344d3b6ceb107792e658903519cafdd4dfe"
            },
            "downloads": -1,
            "filename": "heatzypy-2.5.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f064844acf2a94a5900d380d30544723",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11.0",
            "size": 21064,
            "upload_time": "2024-12-10T12:45:31",
            "upload_time_iso_8601": "2024-12-10T12:45:31.051219Z",
            "url": "https://files.pythonhosted.org/packages/74/5f/926748f1f3d132096908439e02b0893ae10a75ce8227056a86176aad3431/heatzypy-2.5.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c55ce42c572c3954af2e985a18f9f5e6f02d9df3ab68ea3023aca300463c7f83",
                "md5": "e40b90c31c8f048bfaa08effc00df3ff",
                "sha256": "2116977d731b63dc7e2862d94ae5316d8742ab2459a9c9a05093ac81e9904131"
            },
            "downloads": -1,
            "filename": "heatzypy-2.5.6.tar.gz",
            "has_sig": false,
            "md5_digest": "e40b90c31c8f048bfaa08effc00df3ff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11.0",
            "size": 30708,
            "upload_time": "2024-12-10T12:45:33",
            "upload_time_iso_8601": "2024-12-10T12:45:33.578218Z",
            "url": "https://files.pythonhosted.org/packages/c5/5c/e42c572c3954af2e985a18f9f5e6f02d9df3ab68ea3023aca300463c7f83/heatzypy-2.5.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-10 12:45:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cyr-ius",
    "github_project": "heatzypy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "aiohttp",
            "specs": [
                [
                    ">=",
                    "3.8.1"
                ]
            ]
        }
    ],
    "lcname": "heatzypy"
}
        
Elapsed time: 0.37297s