Skip to content

krissen/pollenprognos-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pollenprognos-card

A Lovelace card to display the sensor data from the integration Home Assistant Pollenprognos integration.

Screenshot 2022-08-05 at 22 37 45

Requirement

Install with HACS

Add https://github.com/krissen/pollenprognos-card as a custom integration. See more info: https://hacs.xyz/docs/faq/custom_repositories

hacs_badge
HACS Action

Credits

Small improvements to pollen-card by @nidayand , who in turn rewrote @isabellaalstrom's pollenprognos-card.

Note

In minimal mode, you might notice some odd spelling. For instance, "Hassel" is shortened to "Hssel". This is to avoid line breaks which would break symmetry. Let me know if this bothers you. Create an issue on the repo or send me a PM. I can add an option to turn it off, if there's interest.

Spelling in the normal (that is, not-minimal) card is as expected. ;-)

Options

Name Type Default Description
type string Required custom:pollen-card
city string Required City from which you have sensors
allergens list Required List of allergens for which you have sensors
days_to_show integer Optional How many days to show, 0 (only allergen) to 4. Default: 4.
minimal  boolean  Optional  Use minimal, flexible layout
pollen_threshold integer Optional Threshold of pollen value, for any of days 1-4, to show. Possible values: 0 to 6. Default: 1.
show_text boolean Optional Set to true if you want to show the state text under the images
sort string Optional Change how list of allergens is sorted. Possible values: value_ascending, value_descending, name_ascending (default), and name_descending. If sorted by value, today's value is used.
title boolean Optional Custom title if string, boolean value if generated or not to show. Default is generated text

Examples

Normal layout

2 days, no text card_2_days_without_text
cards:
  - type: 'custom:pollenprognos-card'
    city: Forshaga
    show_text: false
    days_to_show: 2
    allergens:
      - Al
      - Alm
      - Ambrosia
      - Björk
      - Ek
      - Gråbo
      - Gräs
      - Hassel
      - Sälg / vide
4 days, with text card_4_days_with_text
cards:
  - type: 'custom:pollenprognos-card'
    city: Forshaga
    show_text: true
    days_to_show: 4
    allergens:
      - Al
      - Alm
      - Ambrosia
      - Björk
      - Ek
      - Gråbo
      - Gräs
      - Hassel
      - Sälg / vide
0 days card_0_days
cards:
  - type: 'custom:pollenprognos-card'
    city: Forshaga
    show_text: false
    days_to_show: 0
    allergens:
      - Al
      - Alm
      - Ambrosia
      - Björk
      - Ek
      - Gråbo
      - Gräs
      - Hassel
      - Sälg / vide
Maybe try minimal layout instead?

Minimal layout

Minimal, without text and title card_minimal_notext_notitle
cards:
  - type: 'custom:pollenprognos-card'
    city: Forshaga
    show_text: false
    title: false
    minimal: true
    days_to_show: 4        # HAS NO EFFECT IN MINIMAL LAYOUT
    allergens:
      - Al
      - Alm
      - Ambrosia
      - Björk
      - Ek
      - Gråbo
      - Gräs
      - Hassel
      - Sälg / vide
Minimal, with text and title card_minimal_withtext_withtitle
cards:
  - type: 'custom:pollenprognos-card'
    city: Forshaga
    show_text: true
    minimal: true
    days_to_show: 4        # HAS NO EFFECT IN MINIMAL LAYOUT
    allergens:
      - Al
      - Alm
      - Ambrosia
      - Björk
      - Ek
      - Gråbo
      - Gräs
      - Hassel
      - Sälg / vide