Posten Card by @ezand
A Lovelace card to display Norwegian Posten delivery days.
This card assumes you have a sensor that provides the next delivery days,
see this example.
Remember to replace the postCode
parameter with your own.
HACS (Home Assistant Community Store)
- Go to HACS page on your Home Assistant instance
- Select
Frontend
- Press add icon and search for
posten
- Select Posten Card repo and install
- Force refresh the Home Assistant page (Ctrl + F5)
- Add posten-card to your page
- Download the 'posten-card.js' from the latest release (with right click, save link as)
- Place the downloaded file on your Home Assistant machine in the
config/www
folder (when there is nowww
folder in the folder where yourconfiguration.yaml
file is, create it and place the file there) - In Home Assistant go to
Configuration->Lovelace Dashboards->Resources
(When there is noresources
tag on theLovelace Dashboard
page, enable advanced mode in your account settings, rand retry this step) - Add a new resource
- Url =
/local/posten-card.js
- Resource type =
module
- Url =
- Force refresh the Home Assistant page (Ctrl + F5)
- Add posten-card to your page
Name | Type | Requirement | Description | Default |
---|---|---|---|---|
type | string | Required | custom:posten-card |
|
entity | string | Required | The entity id for the Posten sensor | |
name | string | Optional | Card name | Leveringsdager |
num_of_days | number | Optional | Max number of days to display | 6 |
date_format | string | Optional | Delivery date format | dddd D. MMMM |
delivery_today_icon | string | Optional | Icon to display on delivery days | mdi:mailbox-open |
no_delivery_today_icon | string | Optional | Icon to display when it's not a delivery day | mdi:mailbox |
hide_delivery_today_icon | boolean | Optional | Specify if the delivery today icon should be visible | true |
hide_logo | boolean | Optional | Specify if the Posten logo should be visible | true |
use_posten_background_color | boolean | Optional | Specify if the Posten background color should be applied | true |