- Install this component by copying the
tankerkoenig-card.js
to your/www/
folder. - Add this to your Lovelace-Configuration using the config options below example.
- Put the icons as
*.png
for the brands in the/www/gasstation_logos/
folder.
resources:
- url: /local/tankerkoenig-card.js?v=0.0.1
type: js
views:
- cards:
type: 'custom:tankerkoenig-card'
show_header: false
show:
- diesel
- opcl
stations:
- name: M1 Vollbüttel
straße: Hauptstr. 2
brand: M1
diesel: sensor.m1_ribbesbuttel_diesel
opcl: binary_sensor.m1_ribbesbuttel_state
- name: Raiffeisen Meinersen
straße: Auf der Schafweide
brand: Raiffeisen
diesel: sensor.raiffeisen_waren_gmbh_diesel
opcl: binary_sensor.raiffeisen_waren_gmbh_state
key | values | required | description |
---|---|---|---|
name |
String | yes | Name of the card that should be shown in the frontend |
show |
[e5, e10, diesel] | yes | What should be shown |
stations |
List of stations | yes | List of stations |
... |
key | value | required | description |
---|---|---|---|
name |
String | yes | The name of the station (for example the street) |
brand |
String | yes | The brand of the station used for the icon |
e5 |
Sensor | no* | Sensor for the E5 price |
e10 |
Sensor | no* | Sensor for the E10 price |
diesel |
Sensor | no* | Sensor for the diesel price |
..... |
*only required if it should be shown
To use the icons you have to use uppercase names, which has to be the same as in the brand
settings. The icons must be in *.png
format.
For the brand ARAL there has to be an icon with the following path(lower case):
/www/gasstation_logos/aral.png