Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- square: false
- type: custom:stack-in-card
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:layout-card
- layout_type: custom:grid-layout
- cards:
- - type: custom:mushroom-entity-card
- entity: sensor.shell_neusser_str_55_super
- secondary_info: name
- icon_type: none
- tap_action:
- action: more-info
- fill_container: true
- primary_info: none
- name: Shell
- layout: vertical
- card_mod:
- style: |
- ha-card {
- --card-primary-font-size: 18px;
- --card-secondary-font-size: 16px;
- }
- - type: custom:mushroom-template-card
- layout: vertical
- icon: mdi:gas-station
- icon_color: |-
- {% if states('sensor.shell_neusser_str_55_super') != 'unknown' %}
- {% set benzinpreis = states('sensor.shell_neusser_str_55_super') | float %}
- {% if benzinpreis <= (states('input_number.benzinpreis_schwellwert_gelb')) | float(0) %}
- #00ff00
- {% elif benzinpreis <= (states('input_number.benzinpreis_schwellwert_rot')) | float(0) %}
- #FFA500
- {% else %}
- #ff0000
- {% endif %}
- {% else %}
- #000000
- {% endif %}
- entity: sensor.shell_neusser_str_55_super
- tap_action:
- action: more-info
- multiline_secondary: true
- fill_container: true
- secondary: >-
- {% set benzinpreis = states('sensor.shell_neusser_str_55_super')
- %} {% if benzinpreis == 'unknown' %}
- Geschlossen
- {% elif benzinpreis == 'False' %}
- -,-- €
- {% else %}
- {{ '%.2f' | format(benzinpreis | float(0)) }} €
- {% endif %}
- card_mod:
- style: |
- ha-card {
- margin-top: -20px;
- padding: 0;
- --icon-size: 60px;
- --card-primary-font-size: 18px;
- }'
- layout:
- width: 50
- - type: custom:layout-card
- layout_type: custom:grid-layout
- layout:
- width: 50
- cards:
- - type: custom:mushroom-entity-card
- entity: sensor.shell_bahnstr_27_super
- secondary_info: name
- icon_type: none
- layout: vertical
- tap_action:
- action: more-info
- fill_container: true
- primary_info: none
- name: Shell
- card_mod:
- style: |
- ha-card {
- --card-primary-font-size: 18px;
- --card-secondary-font-size: 16px;
- }
- - type: custom:mushroom-template-card
- layout: vertical
- icon: mdi:gas-station
- icon_color: |-
- {% if states('sensor.shell_bahnstr_27_super') != 'unknown' %}
- {% set benzinpreis = states('sensor.shell_bahnstr_27_super') | float %}
- {% if benzinpreis <= (states('input_number.benzinpreis_schwellwert_gelb')) | float(0) %}
- #00ff00
- {% elif benzinpreis <= (states('input_number.benzinpreis_schwellwert_rot')) | float(0) %}
- #FFA500
- {% else %}
- #ff0000
- {% endif %}
- {% else %}
- #000000
- {% endif %}
- entity: sensor.shell_bahnstr_27_super
- tap_action:
- action: more-info
- multiline_secondary: true
- fill_container: true
- secondary: >-
- {% set benzinpreis = states('sensor.shell_bahnstr_27_super') %} {%
- if benzinpreis == 'unknown' %}
- Geschlossen
- {% elif benzinpreis == 'False' %}
- -,-- €
- {% else %}
- {{ '%.2f' | format(benzinpreis | float(0)) }} €
- {% endif %}
- card_mod:
- style: |
- ha-card {
- margin-top: -20px;
- padding: 0;
- --icon-size: 60px;
- --card-primary-font-size: 18px;
- }'
- - type: custom:layout-card
- layout_type: custom:grid-layout
- layout:
- width: 50
- cards:
- - type: custom:mushroom-entity-card
- entity: sensor.freie_tankstelle_e_wippenhohn_e_k_robert_bosch_str_2_super
- secondary_info: name
- icon_type: none
- layout: vertical
- tap_action:
- action: more-info
- fill_container: true
- primary_info: none
- name: Freie
- card_mod:
- style: |
- ha-card {
- --card-primary-font-size: 18px;
- --card-secondary-font-size: 16px;
- }
- - type: custom:mushroom-template-card
- layout: vertical
- icon: mdi:gas-station
- icon_color: >-
- {% if
- states('sensor.freie_tankstelle_e_wippenhohn_e_k_robert_bosch_str_2_super')
- != 'unknown' %}
- {% set benzinpreis = states('sensor.freie_tankstelle_e_wippenhohn_e_k_robert_bosch_str_2_super') | float %}
- {% if benzinpreis <= (states('input_number.benzinpreis_schwellwert_gelb')) | float(0) %}
- #00ff00
- {% elif benzinpreis <= (states('input_number.benzinpreis_schwellwert_rot')) | float(0) %}
- #FFA500
- {% else %}
- #ff0000
- {% endif %}
- {% else %}
- #000000
- {% endif %}
- entity: sensor.freie_tankstelle_e_wippenhohn_e_k_robert_bosch_str_2_super
- tap_action:
- action: more-info
- multiline_secondary: true
- fill_container: true
- secondary: >-
- {% set benzinpreis =
- states('sensor.freie_tankstelle_e_wippenhohn_e_k_robert_bosch_str_2_super')
- %} {% if benzinpreis == 'unknown' %}
- Geschlossen
- {% elif benzinpreis == 'False' %}
- -,-- €
- {% else %}
- {{ '%.2f' | format(benzinpreis | float(0)) }} €
- {% endif %}
- card_mod:
- style: |
- ha-card {
- margin-top: -20px;
- padding: 0;
- --icon-size: 60px;
- --card-primary-font-size: 18px;
- }'
- - type: custom:layout-card
- layout_type: custom:grid-layout
- layout:
- width: 50
- cards:
- - type: custom:mushroom-entity-card
- entity: sensor.avex_glescher_str_126_super
- secondary_info: name
- icon_type: none
- layout: vertical
- tap_action:
- action: more-info
- fill_container: true
- primary_info: none
- name: Avex
- card_mod:
- style: |
- ha-card {
- --card-primary-font-size: 18px;
- --card-secondary-font-size: 16px;
- }
- - type: custom:mushroom-template-card
- layout: vertical
- icon: mdi:gas-station
- icon_color: |-
- {% if states('sensor.avex_glescher_str_126_super') != 'unknown' %}
- {% set benzinpreis = states('sensor.avex_glescher_str_126_super') | float %}
- {% if benzinpreis <= (states('input_number.benzinpreis_schwellwert_gelb')) | float(0) %}
- #00ff00
- {% elif benzinpreis <= (states('input_number.benzinpreis_schwellwert_rot')) | float(0) %}
- #FFA500
- {% else %}
- #ff0000
- {% endif %}
- {% else %}
- #000000
- {% endif %}
- entity: sensor.avex_glescher_str_126_super
- tap_action:
- action: more-info
- multiline_secondary: true
- fill_container: true
- secondary: >-
- {% set benzinpreis = states('sensor.avex_glescher_str_126_super')
- %} {% if benzinpreis == 'unknown' %}
- Geschlossen
- {% elif benzinpreis == 'False' %}
- -,-- €
- {% else %}
- {{ '%.2f' | format(benzinpreis | float(0)) }} €
- {% endif %}
- card_mod:
- style: |
- ha-card {
- margin-top: -20px;
- padding: 0;
- --icon-size: 60px;
- --card-primary-font-size: 18px;
- }'
- columns: 1
Advertisement
Add Comment
Please, Sign In to add comment