Skip to content

Integration for Home Assistant to implement a fuel tracking system.

License

Notifications You must be signed in to change notification settings

JGAguado/Fuel_Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs GitHub Release License

Project Maintenance BuyMeCoffee

Fuel Tracker

This integration parse the information from TankBillig, that covers fuel prices information from Austria, Spain, Germany, Switzerland and France.

You can use it to track the price of fuel (Diesel, Super95 or CNG) from the closest fuel station to the entered latitude and longitude.

Configuration

Please before configuring the integration look for the coordinates in format 48.211459, 16.401445 closest to the fuel station you want to track.

The script will take the fuel station with the minimum distance to the enter location.

To activate this extension you can put this in your configuration file "configuration.yml", with the following (required) parameters:

Parameter Value
latitude XX.XXXXXX
longitude YY.YYYYYY
fuel Diesel, Super95 or CNG

Example

On the configuration.yml :

sensor:
  - platform: fuel_tracker
    name: Hofer
    latitude: !secret latitude_hofer
    longitude: !secret longitude_hofer
    fuel: "Diesel"

  - platform: fuel_tracker
    name: Jet
    latitude: !secret latitude_jet
    longitude: !secret longitude_jet
    fuel: "Diesel"

Example

For visualizing such cool graph, use the mini-graph-card custom integration!

- type: custom:mini-graph-card
        name: Fuel
        icon: mdi:fuel
        entities:
          - entity: sensor.hofer
          - entity: sensor.jet
        decimals: 3
        show:
          labels: true
        hours_to_show: 168
        color_thresholds:
          - value: 1.5
            color: "#d35400"
          - value: 1.4
            color: "#f39c12"
          - value: 1.3
            color: "#2bc039"

About

Integration for Home Assistant to implement a fuel tracking system.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages