NSW Fuel Station Price

The NSW Fuel Station Price integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] uses the NSW Fuel Check App data as a source for current fuel price data.

Setup

To get the station ID for any NSW fuel station you will need to:

  • Visit the Fuel Check App.
  • Open the developer console of your browser (for Chrome, click View -> Developer -> Developer Tools). Click the “Network” tab in the developer console.
  • In the Fuel Check App, search for your postcode or click “Fuel Near Me”.
  • In the developer console, you should see a request to /FuelCheckApp/v1/fuel/prices/bylocation. Open this request and preview the response. Find the station you wish to add, and copy down the ServiceStationID field.

Alternatively:

  • Select a station you wish to find the ID for.
  • Select “Report this Station”.
  • In the URL of the new page opened, locate serviceStationId.

Configuration

To add the NSW fuel station price sensor to your installation, add the following to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file:

sensor:
  - platform: nsw_fuel_station
    station_id: 291

To track more than one station, add a separate nsw_fuel_station entry for each station. You can also specify several fuel types for each station. The following example requests six fuel types for each of four stations. A sensor is created only when price data is available for that station and fuel type.

The station IDs in this example are illustrative. Replace them with the IDs of the stations you want to monitor, using the steps above.

sensor:
  - platform: nsw_fuel_station
    station_id: 2069
    fuel_types:
      - "E10"
      - "U91"
      - "P95"
      - "P98"
      - "DL"
      - "PDL"
  - platform: nsw_fuel_station
    station_id: 101
    fuel_types:
      - "E10"
      - "U91"
      - "P95"
      - "P98"
      - "DL"
      - "PDL"
  - platform: nsw_fuel_station
    station_id: 1539
    fuel_types:
      - "E10"
      - "U91"
      - "P95"
      - "P98"
      - "DL"
      - "PDL"
  - platform: nsw_fuel_station
    station_id: 20246
    fuel_types:
      - "E10"
      - "U91"
      - "P95"
      - "P98"
      - "DL"
      - "PDL"

Configuration Variables

station_id string Required

The ID of the station to track

fuel_types list (Optional)

A list of fuel types to track for the station. Must be one of ["E10", "U91", "E85", "P95", "P98", "DL", "PDL", "B20", "LPG", "CNG", "EV"]. Descriptions of fuel types can be found here.

Default:

['E10', 'U91']