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.2.0.tar.gz (54.1 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.2.0-py3-none-any.whl (51.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyhems-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e1f59af53c4b5ba38ddbde9f34d8d19398bdfa890499f8b6787bffd6e8a5866a
MD5 7cef85bd5b921105e9b508063a4bdd41
BLAKE2b-256 5e92c2bb0c76ac8cd1425c7d96d375414faf56e8f4e4f4d969ff01ad1913b76e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyhems-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 51.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 660aabbbcac11402d25530f0e2a7f0fddd2e60e14dd5cf2c5f6015fc79af3ba5
MD5 5cd79729f06a794fa054fb8335775043
BLAKE2b-256 aa404cf68e4068e7c41fba0404a7ca860a0b1b04a4c6b5a1e001ec8becc8da41

See more details on using hashes here.

Provenance

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