Custom Home Assistant card displaying a responsive overview of multiple days with events from one or multiple calendars
- Make sure HACS is installed and working.
- Add this repository (https://github.com/FamousWolf/week-planner-card) via HACS Custom repositories
- Download and install using HACS
- Download and copy
eweek-planner-card.js
from the latest release into your config/www
directory.
- Add the resource reference to Home Assistant configuration using one of these methods:
- Edit your configuration.yaml
Add:
resources:
- url: /local/week-planner-card.js?version=1.0.1
type: module
- Using the graphical editor
- Make sure advanced mode is enabled in your user profile
- Navigate to Configuration -> Lovelace Dashboards -> Resources Tab. Hit orange (+) icon
- Enter URL
/local/week-planner-card.js
and select type "JavaScript Module".
- Restart Home Assistant.
Name |
Type |
Default |
Supported options |
Description |
type |
string |
Required |
custom:week-planner-card |
Type of the card |
days |
number |
7 |
Any positive integer number |
The number of days to show |
noCardBackground |
boolean |
false |
false | true |
Do not show default card background and border |
eventBackground |
string |
var(--card-background-color, inherit) |
Any CSS color |
Background color of the events |
updateInterval |
number |
60 |
Any positive integer number |
Seconds between checks for new events |
calendars |
object list |
Required |
See Calendars |
Calendars shown in this card |
texts |
object list |
{} |
See Texts |
Texts used in the card |
Name |
Type |
Default |
Supported options |
Description |
entity |
string |
Required |
calendar.my_calendar |
Entity ID |
color |
string |
optional |
Any CSS color |
Color used for events from the calendar |
Name |
Type |
Default |
Supported options |
Description |
fullDay |
string |
Entire day |
Any text |
Text shown for full day events instead of time |
noEvents |
string |
No events |
Any text |
Text shown when there are no events for a day |
today |
string |
Today |
Any text |
Text shown for the today instead of the week day |
tomorrow |
string |
Tomorrow |
Any text |
Text shown for the tomorrow instead of the week day |
sunday |
string |
Sunday |
Any text |
Text shown for Sundays |
monday |
string |
Monday |
Any text |
Text shown for Mondays |
tuesday |
string |
Tuesday |
Any text |
Text shown for Tuesdays |
wednesday |
string |
Wednesday |
Any text |
Text shown for Wednesdays |
thursday |
string |
Thursday |
Any text |
Text shown for Thursdays |
friday |
string |
Friday |
Any text |
Text shown for Fridays |
saturday |
string |
Saturday |
Any text |
Text shown for Saturdays |