Skip to main content

ECHONET Lite library for Home Energy Management System (HEMS)

Project description

pyhems

Python Version License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhems-0.1.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyhems-0.1.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

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

Hashes for pyhems-0.1.0.tar.gz
Algorithm Hash digest
SHA256 187a32e10caa747be0176b41527af6b74285f195b87ce542b35863cdf32ee625
MD5 11ab767d5c9ebb9c05bf8452cadfe467
BLAKE2b-256 2e3c00a248b425b106d347eca17efe87d36e3818073135bc87254961091da5f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhems-0.1.0.tar.gz:

Publisher: release.yml on sayurin/pyhems

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pyhems-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be8d65a15195e21fa0ffd3be5fb5bcf0d98b707a60639e6e72f87ce5735edc0a
MD5 bfa2313c69bdc79a4da76eb7ca08c349
BLAKE2b-256 e08f8c488dada1dcb8d6c9b8788aa3a39ecb3118caaea3aa7b17b6aa3d73675a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhems-0.1.0-py3-none-any.whl:

Publisher: release.yml on sayurin/pyhems

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page