Pumperly Fuel Prices for Home Assistant

April 14, 2026 · View on GitHub

Pumperly for Home Assistant banner

Pumperly Fuel Prices for Home Assistant

HACS Validation Tests codecov hacs_badge License: GPL-3.0 listed on awesome-europe

A Home Assistant custom integration that tracks fuel and EV charging prices from a Pumperly instance. Get real-time price data for 16 fuel types across 36 countries, directly in your smart home dashboard.

Features

  • Track cheapest, nearest, and average prices for any fuel type
  • Support for gasoline, diesel, LPG, CNG, LNG, hydrogen, EV charging, and AdBlue
  • Configurable search radius (1-50 km)
  • Multi-step config flow with location picker
  • Works with the public instance (pumperly.com) or self-hosted
  • Diagnostic sensors for instance-wide statistics

Prerequisites

  • A running Pumperly instance, or use the public instance at https://pumperly.com
  • Home Assistant 2024.1.0 or later
  • HACS installed

Installation

  1. Open HACS in Home Assistant
  2. Click the three dots in the top-right corner and select Custom repositories
  3. Add https://github.com/GeiserX/pumperly-ha with category Integration
  4. Search for "Pumperly" and install it
  5. Restart Home Assistant

Manual

  1. Copy the custom_components/pumperly folder to your Home Assistant custom_components directory
  2. Restart Home Assistant

Configuration

  1. Go to Settings > Devices & Services > Add Integration
  2. Search for Pumperly
  3. Follow the multi-step setup:
    • Step 1: Enter your Pumperly instance URL (default: https://pumperly.com)
    • Step 2: Select the location to search around (defaults to your Home zone)
    • Step 3: Choose which fuel types to track
    • Step 4: Set the search radius in kilometers

Entities

For each configured fuel type, three sensors are created:

SensorDescriptionIcon
sensor.pumperly_cheapest_{fuel}Lowest price among nearby stationsFuel-specific
sensor.pumperly_nearest_{fuel}Price at the closest stationmdi:map-marker-radius
sensor.pumperly_average_{fuel}Average price across fetched stationsmdi:chart-line

Each fuel sensor includes these extra attributes:

  • station_name, brand, address, city
  • distance_km, reported_at
  • latitude, longitude

Two diagnostic sensors are always created:

SensorDescription
sensor.pumperly_total_stationsTotal stations in the Pumperly instance
sensor.pumperly_total_pricesTotal price records in the Pumperly instance

Supported Fuel Types

CodeDescription
E5Gasoline E5 (95)
E5_PREMIUMGasoline E5 Premium
E10Gasoline E10
E5_98Gasoline E5 98
E98_E10Gasoline E98/E10
B7Diesel B7
B7_PREMIUMDiesel B7 Premium
B_AGRICULTURALAgricultural Diesel
HVOHVO (Renewable Diesel)
B10Diesel B10
LPGLPG (Autogas)
CNGCNG (Compressed Natural Gas)
LNGLNG (Liquefied Natural Gas)
H2Hydrogen
EVEV Charging
ADBLUEAdBlue

Example Automations

Fuel price drop notification

automation:
  - alias: "Fuel price drop alert"
    trigger:
      - platform: numeric_state
        entity_id: sensor.pumperly_cheapest_diesel_b7
        below: 1.30
    action:
      - service: notify.mobile_app
        data:
          title: "Cheap Diesel!"
          message: >
            Diesel dropped to {{ states('sensor.pumperly_cheapest_diesel_b7') }}
            {{ state_attr('sensor.pumperly_cheapest_diesel_b7', 'currency') }}
            at {{ state_attr('sensor.pumperly_cheapest_diesel_b7', 'station_name') }}
            ({{ state_attr('sensor.pumperly_cheapest_diesel_b7', 'distance_km') }} km away)

Dashboard card

type: entities
title: Fuel Prices
entities:
  - entity: sensor.pumperly_cheapest_diesel_b7
    name: Cheapest Diesel
    secondary_info: last-updated
  - entity: sensor.pumperly_nearest_diesel_b7
    name: Nearest Diesel
  - entity: sensor.pumperly_average_diesel_b7
    name: Average Diesel
  - entity: sensor.pumperly_cheapest_gasoline_e5_95
    name: Cheapest Gasoline

Data Refresh

Prices are polled every 30 minutes. Fuel prices rarely change more frequently than this, and it keeps API load reasonable.

Other Home Assistant Integrations by GeiserX

ProjectDescription
PumperlyOpen-source fuel and EV route planner with real-time prices
Pumperly-androidOfficial Android app for Pumperly fuel and EV route planner
pumperly-mcpMCP Server for Pumperly real-time fuel and EV charging prices
n8n-nodes-pumperlyn8n community node for Pumperly fuel and EV charging data