pyeconet
Python3 interface to the unofficial EcoNet API.
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())
Metadata
Release files for pyeconet 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyeconet-0.3.1.tar.gz | 15.4 kB | Without provenance | Details for pyeconet-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyeconet-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pyeconet-0.3.1-py3-none-any.whl |
Total release size: 32.0 kB
Release files / pyeconet-0.3.1.tar.gz
| Download URL | pyeconet-0.3.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdc1741dc93bf642ef2b892c9c1bb2cd512cb75e896296f13df88db971ea31ac
|
|
BLAKE2b-256 checksum How to use checksums |
4b09e21282e4c9953412babad88e1f8d3460b8394641c5081889942fe4a6a520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pyeconet-0.3.1-py3-none-any.whl
| Download URL | pyeconet-0.3.1-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95d37b46d8c3f7264d4f7e04c89432c31780cb1e1034037a49ddfd1d5e1e8303
|
|
BLAKE2b-256 checksum How to use checksums |
aee919ddb94764f5a7eab567ff87bb7b5625e140ab3d011bfa8d6a350eb46b33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for pyeconet 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.