Game day is
more than kickoff.
SPORTS CALENDAR → LIGHTING
A football schedule supplies the dates. Home Assistant retrieves the events for the whole day and derives a simple game-day flag. The lighting routine reads that flag when choosing its colors.
On game day, that branch selects purple and gold. The calendar interpretation lives in one automation; the lighting behavior lives in another. The lighting does not need to know the event title, kickoff time, or calendar source.
Friday adds another branch: a colorful scene for the end of the week. The rules have an explicit order—game-day colors first, Friday colors second, then the normal lighting path. A game on Friday therefore gets the game-day theme.
The flag is refreshed daily and after Home Assistant starts. Querying the day's events makes the theme available before kickoff, rather than only while the calendar event is active.
Design choice: turn external schedule data into a small, reusable state that a device routine can consume.
The first matching rule wins.