Haitec / tankerkoenig-card

Lovelace-Card for Tankerkoenig-Component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tankerkoenig Lovelace Card

Version mantained hacs_badge

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=1.0.0
    type: js
views:
  - cards:
      - type: 'custom:tankerkoenig-card'
        name: Benzinpreise
        show:
          - e5
          - e10
        show_closed: true
        show_header: false
        stations:
          - name: Kölner Str.
            brand: ARAL
            e5: sensor.aral_kolner_str_e5
            e10: sensor.aral_kolner_str_e10
          - name: Untergath
            brand: ARAL
            e5: sensor.aral_untergath_e5
            e10: sensor.aral_untergath_e10

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
show_closed Boolean no Show closed stations (default: false)
show_header Boolean no Show card-header (default: true)
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 lowercase 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:

/www/gasstation_logos/aral.png

Support me / Follow me

Web Facebook Twitter Instagram YouTube

About

Lovelace-Card for Tankerkoenig-Component

License:MIT License


Languages

Language:JavaScript 100.0%