Hi everyone,
I’m sharing a small local-first energy tariff engine for Home Assistant.
It computes the current electricity price (€/kWh) based on:
- contract type
- time windows (HC / HP / HSC)
- Tempo day type (Blue / White / Red)
What it does NOT do:
- no consumption measurement
- no Linky reading
- no cloud / API dependency
The engine relies only on helpers (input_select, input_number) and exposes:
- a
sensorwith the current price - binary sensors for HC / HSC states
It’s meant to be used as a building block for automations, dashboards, or energy logic.
GitHub repository (MIT license, Community Edition):
Feedback and suggestions welcome ![]()