Add lunch menus dashboard with week-view school calendars.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
voice-alarms: !include voice-alarms.yaml
|
voice-alarms: !include voice-alarms.yaml
|
||||||
family-hub: !include family-hub.yaml
|
family-hub: !include family-hub.yaml
|
||||||
at-a-glance: !include at-a-glance.yaml
|
at-a-glance: !include at-a-glance.yaml
|
||||||
|
lunch-menus: !include lunch-menus.yaml
|
||||||
# Each key is the dashboard's url_path, and HA requires it to contain a hyphen
|
# Each key is the dashboard's url_path, and HA requires it to contain a hyphen
|
||||||
# (see homeassistant/components/lovelace: url_path validation). A hyphen-less
|
# (see homeassistant/components/lovelace: url_path validation). A hyphen-less
|
||||||
# key fails validation for the whole `lovelace:` block, not just its own entry,
|
# key fails validation for the whole `lovelace:` block, not just its own entry,
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
mode: yaml
|
||||||
|
title: Lunch Menus
|
||||||
|
icon: mdi:food-apple
|
||||||
|
show_in_sidebar: true
|
||||||
|
filename: dashboards/views/lunch-menus-dashboard.yaml
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
# Lunch Menus — school cafeteria calendars (one week each)
|
||||||
|
#
|
||||||
|
# Three Google Calendar entities, each shown in listWeek so the wall/panel
|
||||||
|
# view stays focused on the current week instead of a full month grid.
|
||||||
|
title: Lunch Menus
|
||||||
|
theme: cubecraft
|
||||||
|
views:
|
||||||
|
- title: Lunch Menus
|
||||||
|
path: lunch-menus
|
||||||
|
icon: mdi:food-apple
|
||||||
|
theme: cubecraft
|
||||||
|
type: masonry
|
||||||
|
cards:
|
||||||
|
- type: markdown
|
||||||
|
content: |
|
||||||
|
# School Lunch Menus
|
||||||
|
## Week of {{ now().strftime("%B %d, %Y") }}
|
||||||
|
card_mod:
|
||||||
|
style: |
|
||||||
|
ha-card {
|
||||||
|
background: var(--cc-gradient);
|
||||||
|
color: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: var(--cc-radius-brand);
|
||||||
|
box-shadow: var(--cc-shadow-brand);
|
||||||
|
padding: 6px 12px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
ha-card h1 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
opacity: 0.85;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
ha-card h2 {
|
||||||
|
margin: 2px 0 0 0;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
- type: calendar
|
||||||
|
title: BHS Lunch Menu
|
||||||
|
initial_view: listWeek
|
||||||
|
entities:
|
||||||
|
- calendar.bhs_lunch_menu
|
||||||
|
card_mod: &cc_calendar
|
||||||
|
style: |
|
||||||
|
ha-card {
|
||||||
|
--calendar-day-color: var(--cc-text, var(--primary-text-color));
|
||||||
|
--calendar-day-weekday-color: var(--cc-text-muted, var(--secondary-text-color));
|
||||||
|
--fc-today-bg-color: var(--cc-accent-soft);
|
||||||
|
--fc-event-bg-color: var(--cc-accent);
|
||||||
|
--fc-event-border-color: var(--cc-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
- type: calendar
|
||||||
|
title: BIS School Lunches
|
||||||
|
initial_view: listWeek
|
||||||
|
entities:
|
||||||
|
- calendar.bis_school_lunches
|
||||||
|
card_mod: *cc_calendar
|
||||||
|
|
||||||
|
- type: calendar
|
||||||
|
title: HMS Lunch Menu
|
||||||
|
initial_view: listWeek
|
||||||
|
entities:
|
||||||
|
- calendar.hms_lunch_menu
|
||||||
|
card_mod: *cc_calendar
|
||||||
Reference in New Issue
Block a user