A Lovelace custom card for custom component Pollenprognos in Home Assistant.
You need to manually move the folder pollen_img
directly inside your www
folder for the images to appear, or set the img_path
configuration value to
the prefix of the URL where the images are reachable.
For installation instructions see this guide.
Pick the allergens you want to display.
For ui-mode:
type: 'custom:pollenprognos-card'
city: Stockholm
allergens:
- Al
- Alm
- Ambrosia
- Björk
- Ek
- Gråbo
- Gräs
- Hassel
- Sälg / vide # this one is important you write just like this.
For yaml-mode:
- type: 'custom:pollenprognos-card'
city: Stockholm
allergens:
- Al
- Alm
- Ambrosia
- Björk
- Ek
- Gråbo
- Gräs
- Hassel
- Sälg / vide # this one is important you write just like this.
Usage in a view:
title: My awesome Lovelace!
resources:
- url: /local/pollenprognos-card.js
type: module
views:
title: My view
cards:
- type: 'custom:pollenprognos-card'
city: Stockholm
allergens:
- Al
- Alm
- Ambrosia
- Björk
- Ek
- Gråbo
- Gräs
- Hassel
- Sälg / vide # this one is important you write just like this.
Name | Type | Default | Description |
---|---|---|---|
type | string | Required | custom:home-assistant-pollen-card |
city | string | Required | City from which you have sensors (note: Bräkne-Hoby has to be written as Bräkne_Hoby , otherwise it will not work) |
allergens | list | Required | List of allergens for which you have sensors |
title | boolean | Optional | Set to false to remove the heading from the card |
show_state | boolean | Optional | Set to false if you don't want to show the state text under the images. |
threshold | number | Optional | Set to a number if you don't want to show allergens below that number (set to 0 to only exclude unknown or i.u.). |
img_path | string | Optional | The URL prefix for where to find the images; defaults to "/local/pollen_img" ) |
Like my work and want to say thanks? Do it here: