To install this HACS Integration add-on, follow these steps:
- Navigate to HACS, Integrations tab
- Click on the 3-dots on the top right, and select Custom repositories
- Under repository, write
https://github.com/Red5d/ha-gasbuddy
- Underneath, select the Integration Category
- Click Add
- Click on Explore & Download Repositories and look for the GasBuddy repo.
- Select the repository and click on DOWNLOAD
- Confirm that you want to download the repo.
- Done!
Refer to the usage section below on how to use the GasBuddy integration.
To find the id for the stations you want to check, go to the GasBuddy map here: https://www.gasbuddy.com/gaspricemap
Find a station and click on the price bubble. A "card" about that station with the price, name, address, etc will be displayed at the top of the map. Click on the name of the station to go to its page, and the station id is at the end of the url. (example: https://www.gasbuddy.com/station/1234567)
After installing this component, add stations to your configuration.yaml in the "sensor:" section as shown below:
sensor:
- platform: gasbuddy
stationid: 1234567
- platform: gasbuddy
stationid: 2345678
- platform: gasbuddy
stationid: 3456789
After restarting Home Assistant to reload the configuration, search for "GasBuddy" in your Entities list, and you should have a sensor item for each available fuel type at each configured station.