Skip to content

Instantly share code, notes, and snippets.

@garbast
Created June 20, 2025 15:15
Show Gist options
  • Save garbast/75c6217b238658e44596a7ab84dcacde to your computer and use it in GitHub Desktop.
Save garbast/75c6217b238658e44596a7ab84dcacde to your computer and use it in GitHub Desktop.
polleninformation eu card
square: true
type: grid
columns: 4
cards:
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_grass
primary: Gras
icon: mdi:grass
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_ambrosia
primary: Ambrosia
icon: mdi:flower-pollen
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_mugwort
primary: Beifuss
icon: mdi:flower-pollen
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_rye
primary: Roggen
icon: mdi:grain
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_birch
primary: Birke
icon: mdi:flower-pollen
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_hazel
primary: Hasel
icon: mdi:flower-pollen
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_alder
primary: Erle
icon: mdi:flower-pollen
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_ash
primary: Esche
icon: mdi:flower-pollen
layout: vertical
icon_color: |-
{%- set level = state_attr(config.entity, 'numeric_state') -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_air_quality
primary: Luft
icon: mdi:cloud
layout: vertical
icon_color: |-
{%- set level = states(config.entity)|int -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_asthma_weather
primary: Asthma
icon: mdi:stethoscope
layout: vertical
icon_color: |-
{%- set level = states(config.entity)|int -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_ozone
primary: Ozon
icon: mdi:molecule
layout: vertical
icon_color: |-
{%- set level = states(config.entity)|int -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
- type: custom:mushroom-template-card
entity: sensor.polleninformation_essen_particulate_matter
primary: Feinstaub
icon: mdi:blur
layout: vertical
icon_color: |-
{%- set level = states(config.entity)|int -%}
{%- if level == 0 -%}
#e9ff9d
{%- elif level == 1 -%}
#ffe99d
{%- elif level == 2 -%}
#fcc449
{%- elif level == 3 -%}
#f79f23
{%- elif level == 4 -%}
#ef7f00
{%- elif level == 5 -%}
#e73f10
{%- elif level > 5 -%}
#bf3211
{%- endif -%}
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
secondary: ""
title: Pollenbelastung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment