evohome-async


Nameevohome-async JSON
Version 0.4.20 PyPI version JSON
download
home_pageNone
SummaryAn async client for connecting to Honeywell's TCC RESTful API.
upload_time2024-06-24 15:45:18
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords evohome honeywell resideo round thermostat tcc vision pro
VCS
bugtrack_url
requirements aiohttp voluptuous
Travis-CI No Travis.
coveralls test coverage No coveralls.
            evohome-async
==============

Python client to _asynchronously_ access the [Total Connect Comfort](https://international.mytotalconnectcomfort.com/Account/Login) RESTful API.

It is intended to be a faithful port of https://github.com/watchforstock/evohome-client, but async-aware.  That is, it exposes a superset of the **evohome-client** schema (same namespace, same JSON), but with some notable differences between the two (see below).

It provides support for Honeywell/Resideo TCC-based systems, such as **Evohome**, **Round Thermostat**, **VisonPro** and others:
 - it supports _only_ EU/EMEA-based systems, please use [somecomfort](https://github.com/mkmer/AIOSomecomfort) for US-based systems
 - it provides Evohome support for Home Assistant (and other automation platforms), see https://www.home-assistant.io/integrations/evohome

This client requires the [aiohttp](https://pypi.org/project/aiohttp/) library. If you prefer a non-async client, [evohome-client](https://github.com/watchforstock/evohome-client) uses [requests](https://pypi.org/project/requests/) instead.

Please contact me (e.g. open an issue) if you would like to help extending the functionality of **evohome-async** to include cooling, as support for such is minimal currently.

### CLI for schedules

If you download the git repo you can use a basic CLI for backup/restore of schedules (incl. DHW, if any), for example:
```
python client.py -u username@gmail.com -p password get-schedules --loc-idx 2 > schedules.json
```
... and to restore:
```
python client.py -u username@gmail.com -p password set-schedules --loc-idx 2 -f schedules.json
```

To avoid exceeding the vendor's API rate limit, you can cache the access tokens via the `--cache-tokens` switch.

> Beware that the above switch will save your tokens to **.evo-cache.tmp**: this presents a security concern.

### Differences from non-async version
The difference between the **evohomeasync** and **evohomeclient** libraries have been kept to the minimum, and it is planned for exisiting docs to be useful.  Thus, it should be relatively easy to port your code over to this async library should you wish.

The non-async documentation (from **evohomeclient**) is available at http://evohome-client.readthedocs.org/en/latest/

#### Technical differences
Some additional functionality has been added to the methods that wrap the vendor APIs (e.g. restore schedules by name, as an alternative to by id). Note that this library is not able to expose more _core_ functionality than it's non-async cousin (i.e. they both use the same vendor API).

Note that since **0.4.0**, some attributes have been renamed, and a few have been deprecated altogether (when required, an informative exception will be thrown).

In both cases (`evohomeclient2` and `evohomeclient`):
 - requires **aiohttp** instead of **requests**:
 - added a new instantiation argument, `session` to allow the client to utilize the consumer's **aiohttp** session
 ```python
    self._session = kwargs.get('session', aiohttp.ClientSession(
        timeout=aiohttp.ClientTimeout(total=30)
    ))
```

For the newer evohome API (evohomeclient2):
 - `import evohomeasync2` instead of `import evohomeclient2`
 - must invoke `await client.login()` after instntiating `EvohomeClient`
 - gerneric `Exceptions` have changed...
    `requests.ConnectionError` becomes: `aiohttp.ClientConnectionError`
    `requests.HTTPError` becomes `aiohttp.ClientResponseError`
 - but in most case, exceptions are no longer generic (since **0.4.0**)...
    `RateLimitExceeded`, and `AuthenticationFailed` (among others)

For the older evohome API (evohomeclient):
 - `import evohomeasync` instead of `import evohomeclient`
 - Exceptions change similar to the above

Other minor changes:
 - some attrs/methods have been renamed (invoking the old name will advise the new name)
 - `Hotwater.zoneId` is deprecated (can use `.dhwId`, or `_id`)
 - `ZoneBase.zone_type` is deprecated (use `.TYPE`))
 - some sentinel values are now `None`

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "evohome-async",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "David Bonnes <zxdavb@bonnes.me>",
    "keywords": "evohome, honeywell, resideo, round thermostat, tcc, vision pro",
    "author": null,
    "author_email": "David Bonnes <zxdavb@bonnes.me>, Andrew Stock <evohome@andrew-stock.com>",
    "download_url": "https://files.pythonhosted.org/packages/10/16/78fc260f3f8af5fded8a321eaeb09c7a9e21f54ab5bcc8ddd674a93f905b/evohome_async-0.4.20.tar.gz",
    "platform": null,
    "description": "evohome-async\n==============\n\nPython client to _asynchronously_ access the [Total Connect Comfort](https://international.mytotalconnectcomfort.com/Account/Login) RESTful API.\n\nIt is intended to be a faithful port of https://github.com/watchforstock/evohome-client, but async-aware.  That is, it exposes a superset of the **evohome-client** schema (same namespace, same JSON), but with some notable differences between the two (see below).\n\nIt provides support for Honeywell/Resideo TCC-based systems, such as **Evohome**, **Round Thermostat**, **VisonPro** and others:\n - it supports _only_ EU/EMEA-based systems, please use [somecomfort](https://github.com/mkmer/AIOSomecomfort) for US-based systems\n - it provides Evohome support for Home Assistant (and other automation platforms), see https://www.home-assistant.io/integrations/evohome\n\nThis client requires the [aiohttp](https://pypi.org/project/aiohttp/) library. If you prefer a non-async client, [evohome-client](https://github.com/watchforstock/evohome-client) uses [requests](https://pypi.org/project/requests/) instead.\n\nPlease contact me (e.g. open an issue) if you would like to help extending the functionality of **evohome-async** to include cooling, as support for such is minimal currently.\n\n### CLI for schedules\n\nIf you download the git repo you can use a basic CLI for backup/restore of schedules (incl. DHW, if any), for example:\n```\npython client.py -u username@gmail.com -p password get-schedules --loc-idx 2 > schedules.json\n```\n... and to restore:\n```\npython client.py -u username@gmail.com -p password set-schedules --loc-idx 2 -f schedules.json\n```\n\nTo avoid exceeding the vendor's API rate limit, you can cache the access tokens via the `--cache-tokens` switch.\n\n> Beware that the above switch will save your tokens to **.evo-cache.tmp**: this presents a security concern.\n\n### Differences from non-async version\nThe difference between the **evohomeasync** and **evohomeclient** libraries have been kept to the minimum, and it is planned for exisiting docs to be useful.  Thus, it should be relatively easy to port your code over to this async library should you wish.\n\nThe non-async documentation (from **evohomeclient**) is available at http://evohome-client.readthedocs.org/en/latest/\n\n#### Technical differences\nSome additional functionality has been added to the methods that wrap the vendor APIs (e.g. restore schedules by name, as an alternative to by id). Note that this library is not able to expose more _core_ functionality than it's non-async cousin (i.e. they both use the same vendor API).\n\nNote that since **0.4.0**, some attributes have been renamed, and a few have been deprecated altogether (when required, an informative exception will be thrown).\n\nIn both cases (`evohomeclient2` and `evohomeclient`):\n - requires **aiohttp** instead of **requests**:\n - added a new instantiation argument, `session` to allow the client to utilize the consumer's **aiohttp** session\n ```python\n    self._session = kwargs.get('session', aiohttp.ClientSession(\n        timeout=aiohttp.ClientTimeout(total=30)\n    ))\n```\n\nFor the newer evohome API (evohomeclient2):\n - `import evohomeasync2` instead of `import evohomeclient2`\n - must invoke `await client.login()` after instntiating `EvohomeClient`\n - gerneric `Exceptions` have changed...\n    `requests.ConnectionError` becomes: `aiohttp.ClientConnectionError`\n    `requests.HTTPError` becomes `aiohttp.ClientResponseError`\n - but in most case, exceptions are no longer generic (since **0.4.0**)...\n    `RateLimitExceeded`, and `AuthenticationFailed` (among others)\n\nFor the older evohome API (evohomeclient):\n - `import evohomeasync` instead of `import evohomeclient`\n - Exceptions change similar to the above\n\nOther minor changes:\n - some attrs/methods have been renamed (invoking the old name will advise the new name)\n - `Hotwater.zoneId` is deprecated (can use `.dhwId`, or `_id`)\n - `ZoneBase.zone_type` is deprecated (use `.TYPE`))\n - some sentinel values are now `None`\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "An async client for connecting to Honeywell's TCC RESTful API.",
    "version": "0.4.20",
    "project_urls": {
        "Bug Tracker": "https://github.com/zxdavb/evohome-async/issues",
        "Homepage": "https://github.com/zxdavb/evohome-async",
        "Wiki": "https://github.com/zxdavb/evohome-async/wiki"
    },
    "split_keywords": [
        "evohome",
        " honeywell",
        " resideo",
        " round thermostat",
        " tcc",
        " vision pro"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bfdd23f94333213323fd6319a63f7def0055168f595b864b3f55177c2a4a9516",
                "md5": "37843a42b7299371f86c7b50980b4b98",
                "sha256": "64c674f4686bb06befc7935d28e61ab5edb8f706a70f23b580486a3bab2924e0"
            },
            "downloads": -1,
            "filename": "evohome_async-0.4.20-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "37843a42b7299371f86c7b50980b4b98",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 49866,
            "upload_time": "2024-06-24T15:45:20",
            "upload_time_iso_8601": "2024-06-24T15:45:20.155249Z",
            "url": "https://files.pythonhosted.org/packages/bf/dd/23f94333213323fd6319a63f7def0055168f595b864b3f55177c2a4a9516/evohome_async-0.4.20-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "101678fc260f3f8af5fded8a321eaeb09c7a9e21f54ab5bcc8ddd674a93f905b",
                "md5": "0544bd59408d85f05cf2cce580667b2a",
                "sha256": "021988baa2761335223c888a2cd4f4e9fd2eb5cc97a944cf5d2bab8b2c66af57"
            },
            "downloads": -1,
            "filename": "evohome_async-0.4.20.tar.gz",
            "has_sig": false,
            "md5_digest": "0544bd59408d85f05cf2cce580667b2a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 82831,
            "upload_time": "2024-06-24T15:45:18",
            "upload_time_iso_8601": "2024-06-24T15:45:18.753175Z",
            "url": "https://files.pythonhosted.org/packages/10/16/78fc260f3f8af5fded8a321eaeb09c7a9e21f54ab5bcc8ddd674a93f905b/evohome_async-0.4.20.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-24 15:45:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zxdavb",
    "github_project": "evohome-async",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "aiohttp",
            "specs": [
                [
                    ">=",
                    "3.9.5"
                ]
            ]
        },
        {
            "name": "voluptuous",
            "specs": [
                [
                    ">=",
                    "0.13.1"
                ]
            ]
        }
    ],
    "lcname": "evohome-async"
}
        
Elapsed time: 0.29269s