Skip to content

jressel01/tankerkoenig-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tankerkoenig Lovelace Card

Version mantained

maintainer

Installation

  1. Install this component by copying the tankerkoenig-card.js to your /www/ folder.
  2. Add this to your Lovelace-Configuration using the config options below example.
  3. 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

layout-card

Options

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
...

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

Additional

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.

Example

For the brand ARAL there has to be an icon with the following path(lower case):

/www/gasstation_logos/aral.png

Support me / Follow me

Web Facebook Twitter Instagram YouTube

About

Lovelace-Card for Tankerkoenig-Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%