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
  • Entity definitions based on MRA data
  • 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.3.0.tar.gz (56.0 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.3.0-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

Details for the file pyhems-0.3.0.tar.gz.

File metadata

  • Download URL: pyhems-0.3.0.tar.gz
  • Upload date:
  • Size: 56.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyhems-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e6f11d8f96290aecb3a43ced533f1acf34f982d75198ba5a55b0919643caf27d
MD5 4e1dac334dec6d188901a2de776ede40
BLAKE2b-256 ed3412a66d1e96352edcb582b6b2529e7f57d45070baff9643768217788e0826

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhems-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: pyhems-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 52.0 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ddc4d5dec34db3d602aea272339f78eaaeb5aa9568b1ce38c9db55bfd610b5
MD5 80af5ab36679ec8c1358d138ed1c416c
BLAKE2b-256 de0258bc424ab8abf32f48e800eca8ba157194d8957702c8bf207e14e230b5b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhems-0.3.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