Folks, so due to current weather i did got the DWD pollen forecast integrated into the HA frontend.
Works fine
Entitys even pulling the atributes for tomorrow and day after tomorrow.
type: entities
entities:
- entity: sensor.pollenflug_ambrosia_112
name: Ambrosia heute
- type: attribute
entity: sensor.pollenflug_ambrosia_112
attribute: state_tomorrow
name: Ambrosia morgen
- type: attribute
entity: sensor.pollenflug_ambrosia_112
attribute: state_in_2_days
name: Ambrosia übermorgen
- type: divider
- entity: sensor.pollenflug_beifuss_112
name: Beifuss heute
- type: attribute
entity: sensor.pollenflug_beifuss_112
attribute: state_tomorrow
name: Beifuss morgen
- type: attribute
entity: sensor.pollenflug_beifuss_112
attribute: state_in_2_days
name: Beifuss übermorgen
- type: divider
- entity: sensor.pollenflug_birke_112
name: Birke heute
- type: attribute
entity: sensor.pollenflug_birke_112
attribute: state_tomorrow
name: Birke morgen
- type: attribute
entity: sensor.pollenflug_birke_112
attribute: state_in_2_days
name: Birke übermorgen
- type: divider
- entity: sensor.pollenflug_erle_112
name: Erle heute
- type: attribute
entity: sensor.pollenflug_erle_112
attribute: state_tomorrow
name: Erle morgen
- type: attribute
entity: sensor.pollenflug_erle_112
attribute: state_in_2_days
name: Erle übermorgen
- type: divider
- entity: sensor.pollenflug_esche_112
name: Esche heute
- type: attribute
entity: sensor.pollenflug_esche_112
attribute: state_tomorrow
name: Esche morgen
- type: attribute
entity: sensor.pollenflug_esche_112
attribute: state_in_2_days
name: Esche übermorgen
- type: divider
- entity: sensor.pollenflug_graeser_112
name: Graeser heute
- type: attribute
entity: sensor.pollenflug_graeser_112
attribute: state_tomorrow
name: Graeser morgen
- type: attribute
entity: sensor.pollenflug_graeser_112
attribute: state_in_2_days
name: Graeser übermorgen
- type: divider
- entity: sensor.pollenflug_hasel_112
name: Hasel heute
- type: attribute
entity: sensor.pollenflug_hasel_112
attribute: state_tomorrow
name: Hasel morgen
- type: attribute
entity: sensor.pollenflug_hasel_112
attribute: state_in_2_days
name: Hasel übermorgen
- type: divider
- entity: sensor.pollenflug_roggen_112
name: Roggen heute
- type: attribute
entity: sensor.pollenflug_roggen_112
attribute: state_tomorrow
name: Roggen morgen
- type: attribute
entity: sensor.pollenflug_roggen_112
attribute: state_in_2_days
name: Roggen übermorgen
title: DWD Pollen Prognose
Well that is so fare so awesome, but I would like to have it on condition, only show when value is not zero…
take a look at this, its not tablet usable:
I can do it with the today, but I miserably fail to do it with the attribute values…
anybody any suggesions?
the code for the gauges left is:
square: false
columns: 2
type: grid
cards:
- type: gauge
entity: sensor.pollenflug_ambrosia_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Ambrosia
- type: gauge
entity: sensor.pollenflug_beifuss_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Beifuss
- type: gauge
entity: sensor.pollenflug_birke_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Birke
- type: gauge
entity: sensor.pollenflug_erle_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Erle
- type: gauge
entity: sensor.pollenflug_esche_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Esche
- type: gauge
entity: sensor.pollenflug_graeser_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Graeser
- type: gauge
entity: sensor.pollenflug_hasel_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Hasel
- type: gauge
entity: sensor.pollenflug_roggen_112
min: 0
max: 3
needle: true
severity:
green: 0
yellow: 0.5
red: 2
name: Roggen
and the code for the right gauges need the custom card double gauges from hacs and it is:
square: false
columns: 2
type: grid
cards:
- type: custom:dual-gauge-card
title: Ambrosia
inner:
entity: sensor.pollenflug_ambrosia_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_ambrosia_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false
- type: custom:dual-gauge-card
title: Beifuss
inner:
entity: sensor.pollenflug_beifuss_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_beifuss_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false
- type: custom:dual-gauge-card
title: Birke
inner:
entity: sensor.pollenflug_birke_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_birke_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false
- type: custom:dual-gauge-card
title: Erle
inner:
entity: sensor.pollenflug_erle_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_erle_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false
- type: custom:dual-gauge-card
title: Esche
inner:
entity: sensor.pollenflug_esche_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_esche_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false
- type: custom:dual-gauge-card
title: Graeser
inner:
entity: sensor.pollenflug_graeser_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_graeser_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false
- type: custom:dual-gauge-card
title: Hasel
inner:
entity: sensor.pollenflug_hasel_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_hasel_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false
- type: custom:dual-gauge-card
title: Roggen
inner:
entity: sensor.pollenflug_roggen_112
label: Today
outer:
type: attribute
entity: sensor.pollenflug_roggen_112
attribute: state_tomorrow
label: TMW
min: 0
max: 3
colors:
- color: var(--label-badge-green)
value: 0
- color: var(--label-badge-yellow)
value: 1.5
- color: var(--label-badge-red)
value: 2.5
cardwidth: 210
shadeInner: false