Skip to content

Latest commit

 

History

History
68 lines (53 loc) · 3.12 KB

README.md

File metadata and controls

68 lines (53 loc) · 3.12 KB

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