[Custom Component] PGE DataHub (Poland) - Dynamic Electricity Prices

Hi everyone!

I have developed a custom integration for Home Assistant that fetches electricity prices directly from the PGE DataHub API (Polish Balancing Market - TGE Fix_1). This is particularly relevant for users in Poland preparing for the upcoming rollout of dynamic tariffs.

My goal was to create a reliable, direct-to-source tool that provides the high-resolution data needed for smart energy management (EV charging, battery storage, heat pumps).

Key Features:

  • Official Data Source: Fetches prices directly from PGE DataHub (Fix_1 contract) without any third-party intermediaries.
  • Auto-Conversion: Automatically converts MWh prices to PLN/kWh for easy tracking in the Energy Dashboard.
  • 24-Hour Schedule: Provides 24 individual sensors (one for each hour) plus a “Current Price” sensor for real-time automation.
  • HA Best Practices: Built with DataUpdateCoordinator for efficiency and features a full Config Flow (UI-based setup – no YAML required).

Future Development & Feedback: This project is in its early stages, and I plan to develop it actively. I am very open to community feedback—if you have suggestions for additional sensors (e.g., daily average, cheapest price window, or price thresholds), please let me know. I want to build this based on actual user needs for energy optimization.

Installation: You can add the repository to HACS as a “Custom Repository”. :link: GitHub: GitHub - AllonGit/ha_pge_dynamic: Ceny dynamiczne PGE/TGE dla Home Assistant. 25 sensorów (24h + aktualna cena) do inteligentnego ładowania magazynów energii i EV.

I have included the apexcharts-card configuration in the README to help you set up a visualization identical to the one in the screenshot.

I look forward to your feedback and ideas!

#HomeAssistant #EnergyManagement #DynamicTariffs


#Poland #SolarEnergy

3 Likes