- Install this component by copying the files to your
- Add this to your
configuration.yamlusing the config options below example.
- 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
||yes||The API_KEY from Tankerkönig (descibed below)|
||[e5, e10, diesel, state]||no||What should be monitored|
||yes||The ID of the station (descibed below)|
||tankerkoenig_[ID]||no||Custom name of the station, used for the sensors|
||no||Street of the station|
||no||Brand of the station|
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:
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.