⛽ Fuel Prices Italy - Custom Integration (MIMIT)

:fuel_pump: Fuel Prices Italy — because knowing where to refuel

shouldn't require opening yet another app

I built this integration after one too many times having passed davanti
a un distributore senza sapere se fosse conveniente o no.
I wanted Home Assistant to know the fuel prices around my house —
and to tell me only when it actually matters.

Italy has something most countries don't: a government ministry (MIMIT)
that publishes every fuel station's prices as open data, updated every
morning at 08:00. Free, official, no scraping required.
It felt like an obvious fit for HA.


The idea is simple: you set a search radius around your home location,
pick which fuel types you care about, and the integration creates sensors.
Each sensor's state is a price — minimum, average, or maximum —
across all stations in your radius. Home Assistant records it over time,
so you get history, trends, and the ability to trigger automations
the moment prices move.

When gasoline drops below your threshold, you get notified —
with the name, address, and distance of the cheapest station nearby.
When prices spike above a warning level, same thing.
How you act on it is entirely up to your setup.

What it tracks:

  • :fuel_pump: Fuel types — Gasoline, Diesel, LPG, Methane (CNG), HVO, Blue Diesel
  • :bar_chart: Statistics — minimum, average, maximum per fuel type
  • :wrench: Modes — self-service and full-service (servito) separately
  • :round_pushpin: Per sensor — cheapest station name, full address,
    distance in km, station count in radius
  • :counterclockwise_arrows_button: Update interval — configurable: 1 / 3 / 6 / 12 h (default 6 h)

Up to 36 sensors total (6 per fuel type × 6 fuel types) —
only gasoline and diesel self-service min/avg are enabled by default.
Everything else can be turned on individually in the entity registry.


No API key. No account. No third-party service in the middle.
Data comes directly from the MIMIT open data portal,
licensed under IODL 2.0 — the same source the fuel price comparison
apps use, just without the middleman.

If your HA home location isn't configured, the setup wizard asks for
an Italian address and resolves it via OpenStreetMap/Nominatim.
Still no API key required.


A few automation ideas to get started:

  • Alert when gasoline drops below €1.75/L within 5 km
  • Daily morning digest at 08:30 with min/max for each fuel type
  • High-price warning when the average in your area crosses €2.00/L

Ready-made blueprints for these are coming in v1.1.0 —
for now the automation examples are in the README.


Installation: HACS (pending official listing —
add the repo manually in the meantime) or manual copy.

GitHub:


Italia-specific, so the audience is narrower than usual —
but if you're an Italian HA user this is probably the most
directly useful integration you'll install this year.
Feedback, station parsing issues, and PRs welcome :folded_hands:

2 Likes