ich hab die mir so angelegt damals.
type: vertical-stack
cards:
- type: conditional
conditions:
- entity: sensor.pollenflug_ambrosia_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_ambrosia_102
icon_color: red
icon: mdi:tree-outline
primary: Ambrosia
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false
badge_color: green
- type: conditional
conditions:
- entity: sensor.pollenflug_beifuss_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_beifuss_102
icon_color: red
icon: mdi:tree-outline
primary: Beifuss
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false
badge_color: ''
- type: conditional
conditions:
- entity: sensor.pollenflug_birke_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_birke_102
icon_color: red
icon: mdi:tree-outline
primary: Birke
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false
badge_color: green
- type: conditional
conditions:
- entity: sensor.pollenflug_erle_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_erle_102
icon_color: red
icon: mdi:tree-outline
primary: Erle
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false
badge_color: ''
- type: conditional
conditions:
- entity: sensor.pollenflug_esche_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_esche_102
icon_color: red
icon: mdi:tree-outline
primary: Esche
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false
- type: conditional
conditions:
- entity: sensor.pollenflug_graeser_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_graeser_102
icon_color: red
icon: mdi:tree-outline
primary: Gräser
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false
- type: conditional
conditions:
- entity: sensor.pollenflug_hasel_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_hasel_102
icon_color: red
icon: mdi:tree-outline
primary: Haselnuss
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false
- type: conditional
conditions:
- entity: sensor.pollenflug_roggen_102
state_not: '0'
card:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.pollenflug_roggen_102
icon_color: red
icon: mdi:tree-outline
primary: Roggen
secondary: |
{% set d ={
'0': 'keine Belastung',
'0.5': 'keine bis geringe Belastung',
'1': 'geringe Belastung',
'1.5': 'geringe bis mittlere Belastung',
'2': 'mittlere Belastung',
'2.5': 'mittlere bis hohe Belastung',
'3': 'hohe Belastung',
} %}
{{ d.get(states(entity)) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: false
fill_container: false