Custom integration for customers of Polenergia Dystrybucja that pulls monthly meter readings from the moja.polenergia.pl portal API (OAuth2 + PKCE) and feeds them into the Home Assistant Energy Dashboard with optional cost tracking in PLN.
Features:
-
OAuth2 + PKCE authentication — no scraping, secure token flow against the official portal API. -
Energy Dashboard ready — cumulative monthly kWh statistics fed straight into the HA recorder. -
Full historical import — pulls every monthly reading back to your agreement start date. -
Cost calculation — configure a PLN/kWh price, get a cumulative cost statistics sensor for Energy Dashboard cost tracking. -
Multi-meter support — one HA device per measurement point (PPE), per customer account. -
Auto re-authentication — handles token expiry without user intervention. -
Options menu — set price, change credentials, reload history, clear statistics, all from the UI.
Installation
HACS (custom repository)
-
Open HACS → Integrations → ⋮ → Custom repositories.
-
Add
https://github.com/Nigatsu/hass-my-polenergiaas category Integration. -
Find My Polenergia in the list and click Install.
-
Restart Home Assistant.
Manual
-
Download the latest release from Releases.
-
Copy
custom_components/my_polenergia/to yourconfig/custom_components/directory. -
Restart Home Assistant.
Links
- GitHub: https://github.com/Nigatsu/hass-my-polenergia
- Issues/Feature requests: GitHub Issues
Feedback, bug reports, and feature requests are welcome!