mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-16 16:08:58 +00:00

* NSW Fuel Station Price Sensor * . * . * update doc * update doc * quote correctly * Update doc * Add headings and minimize configuration sample
1.7 KiB
1.7 KiB
layout, title, description, date, sidebar, comments, sharing, footer, ha_category, ha_release, ha_iot_class
layout | title | description | date | sidebar | comments | sharing | footer | ha_category | ha_release | ha_iot_class |
---|---|---|---|---|---|---|---|---|---|---|
page | NSW Fuel Station Price Sensor | Instructions on how to integrate NSW fuel station prices into Home Assistant. | 2018-06-02 18:00 | true | false | true | true | Fuel | 0.72 | Cloud Polling |
The nsw_fuel_station
sensor platform uses the NSW Fuel Check App data as a source for current fuel price data.
{% linkable_title 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 theServiceStationID
field.
{% linkable_title Configuration %}
To add the NSW fuel station price sensor to your installation, add the following to your configuration.yaml
file:
sensor:
- platform: nsw_fuel_station
station_id: 291
{% configuration %}
station_id:
description: The ID of the station to track
required: true
type: string
fuel_types:
description: 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.
required: false
default: "['E10', 'U91']
"
type: list
{% endconfiguration %}