A Lovelace card to display the sensor data from the integration Home Assistant Pollenprognos integration.
Add https://github.com/krissen/pollenprognos-card as a custom integration. See more info: https://hacs.xyz/docs/faq/custom_repositories
Small improvements to pollen-card by @nidayand , who in turn rewrote @isabellaalstrom's pollenprognos-card.
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. ;-)
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 |
2 days, no text | ![]() |
```yaml 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 | ![]() |
```yaml 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 | ![]() |
```yaml 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, without text and title | ![]() |
```yaml 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 | ![]() |
```yaml 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 ``` |