Component to integrate with GasBuddy fuel price tracker.
This component will set up the following platforms.
Platform | Description |
---|---|
sensor |
Show info from an GasBuddy listed station. |
- Follow the link here
- Use the custom repo link https://github.com/firstof9/ha-gasbuddy
- Select the category type
integration
- Then once it's there (still in HACS) click the INSTALL button
- Restart Home Assistant
- Once restarted, in the HA UI go to
Configuration
(the ⚙️ in the lower left) ->Devices and Services
click+ Add Integration
and search forGasBuddy
Instructions
You probably do not want to do this! Use the HACS method above unless you know what you are doing and have a good reason as to why you are installing manually
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledgasbuddy
. - Download all the files from the
custom_components/gasbuddy/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- Once restarted, in the HA UI go to
Configuration
(the ⚙️ in the lower left) ->Devices and Services
click+ Add Integration
and search forGasBuddy
Since May 2025, GasBuddy implemented Cloudflare which may lead to blocking of requests to GasBuddy, and cause timeout and log errors. This would lead to the occasional missed data update to obtain the lastest gas prices, along with log errrors.
To circumvent this, FlareSolverr can be used to bypass Cloudflare protection. FlareSolverr can be installed as a standalone docker container on your network here or as an addon in Home Assistant here. Once your FlareSolverr instance is up and running, you can re-configure your existing GasBuddy entries by clicking the 3 dots of EACH gas station entry, and entering your FlareSolverr URL, ie. http://ip:port/v1

Future changes to your FlareSolverr instance can be edited the same way.
If you want to contribute to this please read the Contribution guidelines
- Add tests