whatisgithub

What is polska-faktura-za-prad?

lukaszkurowskilbn/polska-faktura-za-prad — explained in plain English

Analysis updated 2026-05-18

18PythonAudience · generalComplexity · 3/5Setup · moderate

In one sentence

A Home Assistant add-on that recalculates your Polish electricity bill in real time from editable rate entities, matching the roughly dozen line items on a real PGE invoice.

Mindmap

mindmap
  root((Polska faktura))
    What it does
      Calculates electricity bill
      Editable rate entities
      Live recalculation
    Tech stack
      Python
      Home Assistant
      HACS
      ApexCharts
    Use cases
      Home energy dashboard
      Rate change tracking
      CO2 cost estimate
    Audience
      Home Assistant users
      Polish households

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Track a Polish electricity bill inside Home Assistant without manual spreadsheet math.

USE CASE 2

Update tariff rates in the UI whenever the utility changes them, with no restart needed.

USE CASE 3

Compare running costs against a chosen zero-point meter reading for the current billing period.

USE CASE 4

Estimate the share of the bill coming from CO2 emissions allowance costs (ETS).

What is it built with?

PythonHome AssistantHACSYAMLApexCharts

How does it compare?

lukaszkurowskilbn/polska-faktura-za-pradandyuneducated/resolve-aicarriex6/cvpr2026_similarity_as_evidence
Stars181818
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/54/54/5
Audiencegeneraldeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a working Home Assistant instance with HACS, plus the ApexCharts card for the optional dashboard view.

So what is it?

This is a Home Assistant custom integration that calculates a Polish electricity bill from scratch inside your smart home dashboard. Polish electricity invoices are unusually complex: they contain around a dozen separate line items covering active energy, distribution charges, quality fees, capacity fees, OZE (renewable) and cogeneration levies, a subscription fee, and excise tax, each with its own rate and VAT percentage. Those rates also change frequently. The integration models every one of these line items as a separate editable entity in the Home Assistant interface, so when a rate changes you update it in the UI and the bill recalculates immediately without restarting anything. The integration exposes sensors for the total amount due (gross), the net total, the VAT amount, and consumption. It also groups the line items into three subtotals: energy sales, distribution, and taxes. Each individual line item gets its own diagnostic sensor showing the quantity, rate, VAT, and gross amount as attributes. A set of number entities labeled with the Polish rate names lets you override any rate. For consumption data, you can point it at an existing Home Assistant sensor such as a utility meter, or enter kilowatt-hours manually. A zero-point feature lets you set the starting meter reading for a billing period, so the running cost always reflects consumption since the last invoice. There are also modes for pulling historical consumption from the Home Assistant recorder for a specific date range, or entering start and end meter readings directly. A separate optional feature estimates the CO2 emissions cost (ETS) embedded in the energy price. This appears as an overlay with its own sensors and chart, showing what share of your bill comes from carbon allowance costs, without affecting the main bill calculation. A ready-made dashboard YAML file is included, which adds a dedicated sidebar panel showing the total due, a breakdown by category, cost per kilowatt-hour, and daily, weekly, and monthly cost charts powered by the ApexCharts Home Assistant card. Installation is through HACS (the Home Assistant Community Store) by adding the repository as a custom integration, or by manually copying the component folder. Tariff profiles for PGE G11, G12, and G12w are included out of the box.

Copy-paste prompts

Prompt 1
Explain how this Home Assistant integration models each Polish electricity bill line item as its own editable entity.
Prompt 2
Walk me through installing this integration via HACS and setting up a PGE G11 tariff profile.
Prompt 3
Show me how to set a zero-point meter reading so the bill tracks consumption since the last invoice.
Prompt 4
Help me add the included ApexCharts dashboard YAML to my Home Assistant sidebar.

Frequently asked questions

What is polska-faktura-za-prad?

A Home Assistant add-on that recalculates your Polish electricity bill in real time from editable rate entities, matching the roughly dozen line items on a real PGE invoice.

What language is polska-faktura-za-prad written in?

Mainly Python. The stack also includes Python, Home Assistant, HACS.

How hard is polska-faktura-za-prad to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is polska-faktura-za-prad for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.