←   BACK TO INDEPENDENT PROJECTS

INDEPENDENT PROJECT / HOME AUTOMATION

Home automation
that earns its keep.

Calendar data, useful state, and everyday routines that respond to the day ahead.

ROLEDesign · Integration · Troubleshooting
PLATFORMHome Assistant · Calendars · Templates
GOALCalendar-driven decisions

01 / THE POINT

The house should
be easier to use.

If an automation makes someone reach for their phone to undo it, there is more work to do.

I use Home Assistant to connect lighting, media, and everyday routines. The interesting part is getting those pieces to cooperate: choosing the right sequence, leaving room for manual control, and working around devices that do not behave quite as expected.

These are selected examples from a system I use and maintain myself. The design gets tested in the most practical way possible: living with it.

02 / THE INTEGRATIONS

Read the calendar.
Give the data a job.

01

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.

LIGHTING PRIORITY
Game-day colorsFriday colorful sceneNormal lighting

The first matching rule wins.

02

A weekday is not
always a school day.

CALENDAR EXCEPTIONS → MORNING ROUTINE

The school-calendar integration retrieves events for the relevant day and checks their summaries for a closure marker. A calendar exception can suppress the weekday wake-up routine without editing its recurring schedule.

The decision also considers a manual skip and a configured resume date. Any of those can hold the routine. An advance check can explain the next day's exception, while the morning decision retrieves the day's events again.

The useful result is a decision and a reason: proceed, or hold because of a calendar exception or an explicit override. Calendar interpretation and routine execution remain separate steps.

Design choice: combine external exceptions with user control instead of assuming that every weekday follows the same pattern.

03 / THE ENGINEERING

Keep the interpretation
out of the device logic.

01

Query the right window

A day-level decision needs the day's events. “An event is active now” would miss a game later in the day and would not answer the same question.

02

Derive useful state

The lighting routine consumes a game-day flag rather than repeating calendar queries. That separates the external data source from the action it informs.

03

Leave room for exceptions

The school-day decision considers the calendar, a manual skip, and a resume date. A recurring weekday schedule supplies the baseline; those checks decide whether it should run.

04

Know the feed's assumptions

The sports feed is dedicated to football games. The school logic matches a closure phrase in event summaries. Those assumptions are part of the integration: changes in feed contents or wording deserve a check.

04 / THE RESULT

Useful enough
to keep using.

External calendars become inputs to everyday decisions: a lighting theme for game day and a morning routine that accounts for school-calendar exceptions. Shared state, explicit rules, and manual overrides make the behavior understandable.

This is the same integration problem at a smaller scale: retrieve data, interpret it within known assumptions, and give the result a useful consumer. Everyday use makes the exceptions hard to ignore.

KEEP EXPLORING

Some support agreements
last a lifetime.