This project provides a Home Assistant Blueprint that allows you to query events from one or more calendar entities.
The blueprint is especially useful for LLMs / Assistive Tools, since it returns structured data in a predictable format.
- Query multiple calendars at once
- Define a custom time span (
start_of_period,end_of_period) - Returns results as a dictionary with all events
- Each event includes:
calendar(source entity)start(start datetime)end(end datetime)summary(event title)location(optional, if available)
Example result:
response:
start_of_period: "2025-10-01T00:00:00+02:00"
end_of_period: "2025-10-31T00:00:00+02:00"
events:
- calendar: calendar.badminton_gemmrigheim
start: "2025-10-11T14:00:00+02:00"
end: "2025-10-11T16:00:00+02:00"
summary: "Badminton: SG Gemmrigheim/Neckarwestheim vs. TV Tamm II"
location: "Wasenhalle Gemmrigheim, MΓΌhlΓ€ckerweg, 74376 Gemmrigheim"
- calendar: calendar.mull
start: "2025-10-08"
end: "2025-10-09"
summary: "Restmuelltonne"-
Open Home Assistant β Settings β Automations & Scenes β Blueprints
-
Click the three-dot menu in the top right β Import Blueprint
-
Enter this GitHub URL:
https://github.com/lweberru/LLMCalender/blob/main/LLMCalender.yaml -
The blueprint will now be available in your Home Assistant instance.
-
Go to Scripts and create a new script based on this blueprint.
-
Configure the inputs:
- Calendars β select one or more calendar entities to query
- Start of period β ISO datetime string
- End of period β ISO datetime string
-
Run the script β the results will be returned via the
response_variableand can be consumed by automations, assistants, or LLM integrations.
To make this script available for use with Assistants in Home Assistant:
- Open the created script in Scripts.
- Go to Settings of the script and enable Expose to Assistants.
- This makes the script callable via voice or chat assistants.
Once exposed, you can ask your assistant:
Show me all badminton events for this October
The assistant will then call the script, retrieve the events, and respond with the results.
If you update the blueprint on GitHub, Home Assistant does not automatically reload it. You need to:
- Go to Settings β Blueprints β Three-dot menu β Re-import Blueprint,
and provide the same GitHub URL again, or - Replace the YAML file manually in
/config/blueprints/script/and reload blueprints from the Developer Tools β YAML β Reload Scripts & Blueprints.
This project is licensed under the MIT License.
β¨ Enjoy using and extending this blueprint!