ECHONET Lite library for Home Energy Management System (HEMS)
Project description
pyhems
ECHONET Lite library for Home Energy Management System (HEMS).
Features
- ECHONET Lite frame encoding/decoding
- UDP multicast device discovery
- Async runtime client with event subscription
- MRA (Machine Readable Appendix) data fetcher
- Full type hints (
py.typed)
Requirements
- Python 3.13+
- bidict>=0.23.0
License
MIT License
Installation
pip install pyhems
Quick Start
import asyncio
from pyhems.runtime import HemsClient, HemsInstanceListEvent
async def main():
client = HemsClient(interface="0.0.0.0")
await client.start()
def on_event(event):
if isinstance(event, HemsInstanceListEvent):
print(f"Node: {event.node_id}, Instances: {event.instances}")
unsubscribe = client.subscribe(on_event)
await asyncio.sleep(60)
unsubscribe()
await client.stop()
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhems-0.1.0.tar.gz.
File metadata
- Download URL: pyhems-0.1.0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
187a32e10caa747be0176b41527af6b74285f195b87ce542b35863cdf32ee625
|
|
| MD5 |
11ab767d5c9ebb9c05bf8452cadfe467
|
|
| BLAKE2b-256 |
2e3c00a248b425b106d347eca17efe87d36e3818073135bc87254961091da5f5
|
Provenance
The following attestation bundles were made for pyhems-0.1.0.tar.gz:
Publisher:
release.yml on sayurin/pyhems
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyhems-0.1.0.tar.gz -
Subject digest:
187a32e10caa747be0176b41527af6b74285f195b87ce542b35863cdf32ee625 - Sigstore transparency entry: 780746670
- Sigstore integration time:
-
Permalink:
sayurin/pyhems@94848b6849c18883b359dd86db2b5294b7b6702a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sayurin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@94848b6849c18883b359dd86db2b5294b7b6702a -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyhems-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyhems-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be8d65a15195e21fa0ffd3be5fb5bcf0d98b707a60639e6e72f87ce5735edc0a
|
|
| MD5 |
bfa2313c69bdc79a4da76eb7ca08c349
|
|
| BLAKE2b-256 |
e08f8c488dada1dcb8d6c9b8788aa3a39ecb3118caaea3aa7b17b6aa3d73675a
|
Provenance
The following attestation bundles were made for pyhems-0.1.0-py3-none-any.whl:
Publisher:
release.yml on sayurin/pyhems
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyhems-0.1.0-py3-none-any.whl -
Subject digest:
be8d65a15195e21fa0ffd3be5fb5bcf0d98b707a60639e6e72f87ce5735edc0a - Sigstore transparency entry: 780746671
- Sigstore integration time:
-
Permalink:
sayurin/pyhems@94848b6849c18883b359dd86db2b5294b7b6702a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sayurin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@94848b6849c18883b359dd86db2b5294b7b6702a -
Trigger Event:
push
-
Statement type: