Home Assistant custom integration that creates binary sensors from one or more ICS school-calendar URLs or public Vega community-calendar URLs.
binary_sensor.school_day: on when school is considered in session.binary_sensor.no_school: on when an event matches a no-school pattern, or when the date is a weekend or in summer vacation.binary_sensor.summer_vacation: on afterLast Day of SchooluntilFirst Day of School (Students), or outside a configured school-year range.
All entities include attributes for matching calendar events, the latest first/last-day boundary event, and the configured school-year range currently in effect.
Call this service with a date in MM-DD-YYYY format and it returns:
school_dayno_schoolsummer_vacation
Example service data:
date: "12-23-2026"Install this repository's custom_components/school_day directory into your
Home Assistant custom_components directory, then add the integration from the
UI.
To edit an existing installation, open Settings → Devices & services → School Day?, open the entry’s ⋮ menu, and choose Reconfigure. You can change the calendar URLs, school name, school-year ranges, and all event patterns. The form starts with your current settings. Saving reloads the integration and updates the existing sensors, so automations retain their entity references.
This repository is structured for HACS as a custom integration repository. Add
the GitHub repository to HACS as a custom repository with category
Integration, restart Home Assistant after install, then add School Day?
from Settings > Devices & services.
Repository URL:
https://github.com/thenoid/ha_school_day
For publishing, bump version in
custom_components/school_day/manifest.json. The release workflow tags that
version and creates a GitHub release automatically after the change lands on
main or master.
Use one or more calendar source URLs, one per line. ICS example:
https://www.calendarwiz.com/CalendarWiz_iCal.php?crd=brightoncanyons&cid%5B%5D=123299&lid%5B%5D=empty&
Public Vega community pages are also supported directly; the integration resolves the organization and retrieves the same public JSON event feed used by Vega's calendar. For example:
https://webapp.vegaevents.com/community/brighton-high-school?view=calendar&calView=MONTH
Optional static school-year ranges fill gaps when the calendar has not yet published the next fall start date. Use one range per line:
2025-08-12 to 2026-05-22
2026-08-12 to 2027-05-21
Calendar events still drive holiday and no-school detection. Configured ranges only decide whether a date is summer vacation when calendar first/last-day events are missing or incomplete.
The setup flow also asks for a school name, which is used as the Home Assistant device name. The settings let you customize the event summary patterns used to detect no-school days, last-day boundaries, and first-day boundaries. Use one pattern per line. Patterns are case-insensitive substring matches.
Default no-school patterns:
no school
no students
recess
no activities
The default last-day pattern is last day of school, and the default first-day
pattern is first day of school.
Upgrading to 0.2.7 adds the new no-school patterns to entries still using the previous defaults. Custom lists stay unchanged and can be edited using Reconfigure.