Local-first energy tariff engine for Home Assistant (Community Edition)

Hi everyone,

I’m sharing a small local-first energy tariff engine for Home Assistant.

:point_right: It computes the current electricity price (€/kWh) based on:

  • contract type
  • time windows (HC / HP / HSC)
  • Tempo day type (Blue / White / Red)

:warning: 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 sensor with 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.

:link: GitHub repository (MIT license, Community Edition):

Feedback and suggestions welcome :+1: