Skip to content

Pollen Radar card examples

Visualization

These examples show several ways to display tree, grass, and weed pollen levels with horseshoes, mapped states, external SVG icons, and reusable YAML.

Flexible Horseshoe Card - Card 34 for Kleenex Pollen Flexible Horseshoe Card - Card 34 for Kleenex Pollen

Description Aspect ratio
Displays pollen information from the Kleenex Pollen Radar integration. 1/1

Demonstrated functionality

Feature Demonstrated use
same_as Reuses horizontal lines with different positions and lengths.
same_as Reuses horseshoes with colored scales and a large radius to create horizontal bars.
same_as_replace Replaces inherited icon state maps on reused items.
ref() Inserts shared icon state maps defined under constants.
calc() Calculates positions, offsets, dimensions, and radii.
Icons Uses state maps and external SVG files for tree, grass, and weed illustrations.
Horseshoes Combines mapped states with color stops.

More visualizations

The following variations were created for version 5.4.7-dev.12.

Card 55

Card 55 uses three horseshoes to display the current pollen level for trees, grass, and weeds.

  • Pollen values appear as ordered levels.
  • Labels are placed directly on the horseshoe states.
  • The active state uses bold text.
  • Two arc shapes create a background for each external SVG icon and label.

Flexible Horseshoe Card - Card 55 for Kleenex Pollen Flexible Horseshoe Card - Card 55 for Kleenex Pollen

Card 54

Card 54 is a variation of card 55. It applies a grayscale color filter to reduce the intensity of the horseshoe colors.

Color filters do not affect external images or SVG files.

Flexible Horseshoe Card - Card 54 for Kleenex Pollen Flexible Horseshoe Card - Card 54 for Kleenex Pollen

Card 53

Card 53 uses a more traditional horseshoe layout.

  • Labels appear separately around the horseshoe.
  • A grayscale color filter softens the displayed colors.

Flexible Horseshoe Card - Card 53 for Kleenex Pollen Flexible Horseshoe Card - Card 53 for Kleenex Pollen

Card 52

Card 52 displays the pollen level as a single mutually exclusive state. Only the currently active state is shown.

Flexible Horseshoe Card - Card 52 for Kleenex Pollen Flexible Horseshoe Card - Card 52 for Kleenex Pollen

Required integration and files

These examples require:

  • The Kleenex Pollen Radar custom integration, available through HACS.
  • External SVG files stored in www/images/kleenex.

Add the following SVG variants:

  • /local/images/kleenex/pollen_tree_low.svg
  • /local/images/kleenex/pollen_tree_moderate.svg
  • /local/images/kleenex/pollen_tree_high.svg
  • /local/images/kleenex/pollen_tree_very_high.svg
  • /local/images/kleenex/pollen_grass_low.svg
  • /local/images/kleenex/pollen_grass_moderate.svg
  • /local/images/kleenex/pollen_grass_high.svg
  • /local/images/kleenex/pollen_grass_very_high.svg
  • /local/images/kleenex/pollen_weed_low.svg
  • /local/images/kleenex/pollen_weed_moderate.svg
  • /local/images/kleenex/pollen_weed_high.svg
  • /local/images/kleenex/pollen_weed_very_high.svg

The Kleenex integration does not translate the very_high state

Override this label in the horseshoe label configuration when a translated or more readable label is needed.

The images and colors used by these cards are adapted from Isabella Alström’s pollen illustrations.

Interaction

Part Behavior
Entity-connected elements Clicking or tapping an element opens the Home Assistant More info dialog by default.

YAML card definitions

Card 34

Flexible Horseshoe Card - Card 34 for Kleenex Pollen

This configuration was created for version 5.4.7.

Example definition to use within view

- type: custom:flex-horseshoe-card
  entities:
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_bomen_niveau
      area: ':34v2:'
      name: 'Trees'
      # format:
      #   raw_state_keep: true
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_gras_niveau
      name: 'Grass'
      area: 'Kleenex Pollen'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_kruiden_niveau
      name: 'Weed'
  template:
    name: fhs_card_034_horseshoe_pollen

Card 55

Flexible Horseshoe Card - Card 55 for Kleenex Pollen

This configuration was created for version 5.4.7-dev.12.

Example definition to use within view

- type: custom:flex-horseshoe-card
  entities:
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_bomen_niveau
    # - entity: input_select.fake_pollen_trees
      area: ':55:'
      name: 'Trees'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_gras_niveau
      name: 'Grass'
      area: 'Kleenex Pollen'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_kruiden_niveau
      name: 'Weed'
  template:
    name: fhs_card_055_horseshoe_pollen

Card 54

Flexible Horseshoe Card - Card 54 for Kleenex Pollen

This configuration was created for version 5.4.7-dev.12.

Example definition to use within view

- type: custom:flex-horseshoe-card
  entities:
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_bomen_niveau
    # - entity: input_select.fake_pollen_trees
      area: ':54:'
      name: 'Trees'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_gras_niveau
      name: 'Grass'
      area: 'Kleenex Pollen'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_kruiden_niveau
      name: 'Weed'
  template:
    name: fhs_card_054_horseshoe_pollen

Card 53

Flexible Horseshoe Card - Card 53 for Kleenex Pollen

This configuration was created for version 5.4.7-dev.12.

Example definition to use within view

- type: custom:flex-horseshoe-card
  entities:
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_bomen_niveau
    # - entity: input_select.fake_pollen_trees
      area: ':53:'
      name: 'Trees'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_gras_niveau
      name: 'Grass'
      area: 'Kleenex Pollen'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_kruiden_niveau
      name: 'Weed'
  template:
    name: fhs_card_053_horseshoe_pollen

Card 52

Flexible Horseshoe Card - Card 52 for Kleenex Pollen

This configuration was created for version 5.4.7-dev.12.

Example definition to use within view

- type: custom:flex-horseshoe-card
  entities:
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_bomen_niveau
    # - entity: input_select.fake_pollen_trees
      area: ':52:'
      name: 'Trees'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_gras_niveau
      name: 'Grass'
      area: 'Kleenex Pollen'
    - entity: sensor.kleenex_pollen_radar_zoefdehaas_kruiden_niveau
      name: 'Weed'
  template:
    name: fhs_card_055_horseshoe_pollen