pyEnergieDock
An asynchronous Python client for the EnergieDock API. It is intended as a small API layer for applications and integrations such as Home Assistant.
Install
pip install pyEnergieDock
Usage
Provide the account credentials username and password when creating the client. It authenticates on the first data request and refreshes the access token when the API rejects it.
Optional: Pass your Home Assistant Client Session with the session parameter*. The api_name parameter selects the API endpoint (default: "ED").
import asyncio
from pyenergiedock import DynamiT
async def main() -> None:
async with DynamiT(
username="<username>",
password="<password>",
session=ClientSession(),
api_name="WWS",
) as client:
prices = await client.async_get_latest_prices()
measurements = await client.async_get_latest_measurements()
asyncio.run(main())
*If the session is passed by the Home Assistant integration, it retains ownership.
Client API
async_login()authenticates explicitly. Data requests log in automatically when needed.async_refresh_login()refreshes the access token, or logs in if no refresh token is available.async_get_latest_prices()returns today's tariff periods as a list of dictionaries, including the previous or next day, depending on the publication time (around 14:00 UTC), using theEurope/Berlinaggregation timezone.async_get_latest_measurements()requests quarter-hour data for the last 24 hours and 15 minutes, using theEurope/Berlinaggregation timezone.close()closes only a session created by this client.
Metadata
Release files for pyEnergieDock 0.2.0
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 |
|---|---|---|---|---|
| pyenergiedock-0.2.0.tar.gz | 9.5 kB | With provenance | Details for pyenergiedock-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyenergiedock-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pyenergiedock-0.2.0-py3-none-any.whl |
Total release size: 18.8 kB
Release files / pyenergiedock-0.2.0.tar.gz
| Download URL | pyenergiedock-0.2.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12126c19096d7a948cec104dfbf662526e8599bb7ea63dce682a5f01545f7538
|
|
BLAKE2b-256 checksum How to use checksums |
47be57b7c6ad619338d33412c345141cba13cb684339b5161e84397a8d000edb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / pyenergiedock-0.2.0-py3-none-any.whl
| Download URL | pyenergiedock-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5d85424351205a0062179938e5e1373eac350aca92c01e88beb7a5176ca8c0a
|
|
BLAKE2b-256 checksum How to use checksums |
56d43ceae3d2e845ebc05d2c7f6342d3662dea3d2f55240fe73421a0cec54f4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for pyEnergieDock 0.2.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pyenergiedock-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA 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.