wsheatzypy


Namewsheatzypy JSON
Version 1.2.3 PyPI version JSON
download
home_page
SummaryProvides authentication and access to Websocket Heatzy module
upload_time2024-01-14 16:32:46
maintainer
docs_urlNone
author
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 with websocket

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": "",
    "name": "wsheatzypy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11.0",
    "maintainer_email": "",
    "keywords": "heatzy,websocket,async,climate",
    "author": "",
    "author_email": "Cyr-ius <cyr-ius@ipocus.net>",
    "download_url": "https://files.pythonhosted.org/packages/fb/9f/9a2268c935fa8dcfb3f4c4543efeac0b2a025747305aabdc1d742ee89533/wsheatzypy-1.2.3.tar.gz",
    "platform": "any",
    "description": "# heatzypy\n\nManage your Heatzy in Python with websocket\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 Websocket Heatzy module",
    "version": "1.2.3",
    "project_urls": null,
    "split_keywords": [
        "heatzy",
        "websocket",
        "async",
        "climate"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "70442d2d98a8fef2956775ddc5ed238e31ee3569682f91513a924f815d73f39a",
                "md5": "51039b1a8d466ea8ec63b593f2cf7750",
                "sha256": "3071a0f7130008491311f452e93b40f7dc8ec3f763e1dc0a60b1aa024e40c951"
            },
            "downloads": -1,
            "filename": "wsheatzypy-1.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "51039b1a8d466ea8ec63b593f2cf7750",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11.0",
            "size": 20655,
            "upload_time": "2024-01-14T16:32:45",
            "upload_time_iso_8601": "2024-01-14T16:32:45.131269Z",
            "url": "https://files.pythonhosted.org/packages/70/44/2d2d98a8fef2956775ddc5ed238e31ee3569682f91513a924f815d73f39a/wsheatzypy-1.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb9f9a2268c935fa8dcfb3f4c4543efeac0b2a025747305aabdc1d742ee89533",
                "md5": "09ca9aec09b1d4ad6d9dfc772b555cee",
                "sha256": "85bd48b4ab9565aa13c891d52b74d6735b0ae2041eae4871fecaeca4bd440a38"
            },
            "downloads": -1,
            "filename": "wsheatzypy-1.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "09ca9aec09b1d4ad6d9dfc772b555cee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11.0",
            "size": 23478,
            "upload_time": "2024-01-14T16:32:46",
            "upload_time_iso_8601": "2024-01-14T16:32:46.188567Z",
            "url": "https://files.pythonhosted.org/packages/fb/9f/9a2268c935fa8dcfb3f4c4543efeac0b2a025747305aabdc1d742ee89533/wsheatzypy-1.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-14 16:32:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "wsheatzypy"
}
        
Elapsed time: 0.17686s