Tankerkoenig Component for Home-Assistant
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
custom_components
.gitignore
LICENSE
README.md

README.md

Tankerkoenig Component

Version mantained

maintainer

Installation

  1. Install this component by copying the files to your /custom_components/ folder
  2. Add this to your configuration.yaml using the config options below example.
  3. You will need to restart for the component to start working
tankerkoenig:
  api_key: YOUR_API_KEY
  monitored_conditions:
    - e5
    - e10
    - diesel
    - state
  stations:
    - id: '11571341-3296-4f16-a363-28b8c188872c'
      name: 'Aral - Kölner_Str.'
      street: 'Kölner Straße'
      brand: ARAL

Options

key default required description
api_key yes The API_KEY from Tankerkönig (descibed below)
monitored_conditions [e5, e10, diesel, state] no What should be monitored

Stations

key default required description
id yes The ID of the station (descibed below)
name tankerkoenig_[ID] no Custom name of the station, used for the sensors
street no Street of the station
brand no Brand of the station

Description

To create the API-KEY and find the IDs of the stations follow the first steps of the blog-post: https://www.panbachi.de/tankerkoenig-preise-in-home-assistant-darstellen-141/

The component will create three sensors and one binary_sensor for each station:

  • sensor.NAME_e5
  • sensor.NAME_e10
  • sensor.NAME_diesel
  • binary_sensor.NAME_state

The sensors are used for the price and the binary_sensor is used for the state if the station is currently open or not and additionally stores the street and brand (if they were set).


Due to how custom_components are loaded, it is normal to see a ModuleNotFoundError error on first boot after adding this, to resolve it, restart Home-Assistant.


Support me / Follow me

Web Facebook Twitter Instagram YouTube