Markdown card table dont show data that is "0"

Hi folks,

I use DWD pollenflug in my frontend, i tried out many ways to view its data. gauges, double gauges. graphs. I dont like em all.

Now I am experiemnting with a markdown card table.

looks like this:
grafik

is it possible to prevent rows with all values “0” to show?
Or could I collor the values depending on its value?

I would like to hide all “0”, color 0,5-1 green, 1,5-2 yellow and 2,5-3 red.

the current code:

type: markdown
content: >-
  |Allergen| |H| |M| |Ü| 

  |:-|:-:|:-:|:-:|:-:|:-:|:-:|  

  | Ambrosia || {{ states('sensor.pollenflug_ambrosia_112') }} || {{
  state_attr('sensor.pollenflug_ambrosia_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_ambrosia_112', 'state_in_2_days') }} |

  | Beifuss || {{ states('sensor.pollenflug_beifuss_112') }} || {{
  state_attr('sensor.pollenflug_beifuss_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_beifuss_112', 'state_in_2_days') }} |

  | Birke || {{ states('sensor.pollenflug_birke_112') }} || {{
  state_attr('sensor.pollenflug_birke_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_birke_112', 'state_in_2_days') }} |

  | Erle || {{ states('sensor.pollenflug_erle_112') }} || {{
  state_attr('sensor.pollenflug_erle_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_erle_112', 'state_in_2_days') }} |

  | Esche || {{ states('sensor.pollenflug_esche_112') }} || {{
  state_attr('sensor.pollenflug_esche_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_esche_112', 'state_in_2_days') }} |

  | Gräser || {{ states('sensor.pollenflug_graeser_112') }} || {{
  state_attr('sensor.pollenflug_graeser_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_graeser_112', 'state_in_2_days') }} |

  | Hasel || {{ states('sensor.pollenflug_hasel_112') }} || {{
  state_attr('sensor.pollenflug_hasel_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_hasel_112', 'state_in_2_days') }} |

  | Roggen || {{ states('sensor.pollenflug_roggen_112') }} || {{
  state_attr('sensor.pollenflug_roggen_112', 'state_tomorrow') }} ||
  {{state_attr('sensor.pollenflug_roggen_112', 'state_in_2_days') }} |

any ideas?
thanks

ps: thats the code for a double-gauges card. that is my next prefered alternative to the table if i cant make it work with colors and hiding the stuff with zero.

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

looks like this:

would like to have a tribble gauge :slight_smile:

push
cant belive that nobody has an idea to that?

use apexcharts