pyeconet


Namepyeconet JSON
Version 0.1.28 PyPI version JSON
download
home_pagehttps://github.com/w1ll1am23/pyeconet
SummaryInterface to the unofficial EcoNet API
upload_time2025-02-15 15:05:07
maintainerNone
docs_urlNone
authorWilliam Scanlon
requires_python<4,>=3.8
licenseNone
keywords econet rheem api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyeconet
Python3 interface to the unofficial EcoNet API.

> [!NOTE]
> I no longer have a device connect to the Rheem cloud due to migrating to a fully local control option 
> https://github.com/esphome-econet/esphome-econet
> If anyone is interested in taking over ownership for this project please open an issue to discuss.

> [!NOTE]
> This isn't using an official EcoNet API therefore this library could stop working at any time, without warning.



```python
import asyncio
import logging
import time
import getpass

from pyeconet import EcoNetApiInterface
from pyeconet.equipment import EquipmentType
from pyeconet.equipment.water_heater import WaterHeaterOperationMode

logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)


async def main():
    email = input("Enter your email: ").strip()
    password = "" #getpass.getpass(prompt='Enter your password: ')
    api = await EcoNetApiInterface.login(email, password=password)
    all_equipment = await api.get_equipment_by_type([EquipmentType.WATER_HEATER, EquipmentType.THERMOSTAT])
    #api.subscribe()
    #await asyncio.sleep(5)
    for equip_list in all_equipment.values():
        for equipment in equip_list:
            print(f"Name: {equipment.device_name}")
    #        print(f"Set point: {equipment.set_point}")
    #        print(f"Supports modes: {equipment._supports_modes()}")
    #        print(f"Operation modes: {equipment.modes}")
    #        print(f"Operation mode: {equipment.mode}")
            #await equipment._get_energy_usage()
            #equipment.set_set_point(equipment.set_point + 1)
            #equipment.set_mode(OperationMode.ELECTRIC_MODE)
    #await asyncio.sleep(300000)
    #api.unsubscribe()

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/w1ll1am23/pyeconet",
    "name": "pyeconet",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.8",
    "maintainer_email": null,
    "keywords": "econet, rheem, api",
    "author": "William Scanlon",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/ef/8d/f4d645527d42055253f4269a40fb8235de0b8700a9bc8ad4fb5450489287/pyeconet-0.1.28.tar.gz",
    "platform": null,
    "description": "# pyeconet\nPython3 interface to the unofficial EcoNet API.\n\n> [!NOTE]\n> I no longer have a device connect to the Rheem cloud due to migrating to a fully local control option \n> https://github.com/esphome-econet/esphome-econet\n> If anyone is interested in taking over ownership for this project please open an issue to discuss.\n\n> [!NOTE]\n> This isn't using an official EcoNet API therefore this library could stop working at any time, without warning.\n\n\n\n```python\nimport asyncio\nimport logging\nimport time\nimport getpass\n\nfrom pyeconet import EcoNetApiInterface\nfrom pyeconet.equipment import EquipmentType\nfrom pyeconet.equipment.water_heater import WaterHeaterOperationMode\n\nlogging.basicConfig()\nlogging.getLogger().setLevel(logging.DEBUG)\n\n\nasync def main():\n    email = input(\"Enter your email: \").strip()\n    password = \"\" #getpass.getpass(prompt='Enter your password: ')\n    api = await EcoNetApiInterface.login(email, password=password)\n    all_equipment = await api.get_equipment_by_type([EquipmentType.WATER_HEATER, EquipmentType.THERMOSTAT])\n    #api.subscribe()\n    #await asyncio.sleep(5)\n    for equip_list in all_equipment.values():\n        for equipment in equip_list:\n            print(f\"Name: {equipment.device_name}\")\n    #        print(f\"Set point: {equipment.set_point}\")\n    #        print(f\"Supports modes: {equipment._supports_modes()}\")\n    #        print(f\"Operation modes: {equipment.modes}\")\n    #        print(f\"Operation mode: {equipment.mode}\")\n            #await equipment._get_energy_usage()\n            #equipment.set_set_point(equipment.set_point + 1)\n            #equipment.set_mode(OperationMode.ELECTRIC_MODE)\n    #await asyncio.sleep(300000)\n    #api.unsubscribe()\n\nif __name__ == \"__main__\":\n    loop = asyncio.get_event_loop()\n    loop.run_until_complete(main())\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Interface to the unofficial EcoNet API",
    "version": "0.1.28",
    "project_urls": {
        "Bug Reports": "https://github.com/w1ll1am23/pyeconet/issues",
        "Homepage": "https://github.com/w1ll1am23/pyeconet",
        "Source": "https://github.com/w1ll1am23/pyeconet"
    },
    "split_keywords": [
        "econet",
        " rheem",
        " api"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "57b3702cfb7a54b96d0d1231a15732861c64a6977ecbe9ed170da149aeadb597",
                "md5": "2ab6ee56eb628daa00421a88737a0731",
                "sha256": "4a860ab4d518c73a77501d7457e89268e3b48a4a744e60f52e22e5a870b945a0"
            },
            "downloads": -1,
            "filename": "pyeconet-0.1.28-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2ab6ee56eb628daa00421a88737a0731",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.8",
            "size": 14694,
            "upload_time": "2025-02-15T15:05:05",
            "upload_time_iso_8601": "2025-02-15T15:05:05.344827Z",
            "url": "https://files.pythonhosted.org/packages/57/b3/702cfb7a54b96d0d1231a15732861c64a6977ecbe9ed170da149aeadb597/pyeconet-0.1.28-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ef8df4d645527d42055253f4269a40fb8235de0b8700a9bc8ad4fb5450489287",
                "md5": "6c189ea209e3307322bf4b0d9d7749af",
                "sha256": "ad2645953a48a5b5da996dcfc2e779134685e0fb9f02aa9143ea6d23bd46cb29"
            },
            "downloads": -1,
            "filename": "pyeconet-0.1.28.tar.gz",
            "has_sig": false,
            "md5_digest": "6c189ea209e3307322bf4b0d9d7749af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 13523,
            "upload_time": "2025-02-15T15:05:07",
            "upload_time_iso_8601": "2025-02-15T15:05:07.317480Z",
            "url": "https://files.pythonhosted.org/packages/ef/8d/f4d645527d42055253f4269a40fb8235de0b8700a9bc8ad4fb5450489287/pyeconet-0.1.28.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-15 15:05:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "w1ll1am23",
    "github_project": "pyeconet",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyeconet"
}
        
Elapsed time: 1.58517s