Home Assistant Community – Blueprint: Fetch Calendar Events
Hi everyone,
I’d like to share a small but useful blueprint I created:
Fetch Calendar Events Blueprint
Why I built this
The standard way of exposing calendar entities to Assistants in Home Assistant is often limited:
- It only works in some setups,
- and it usually returns events for a very short time interval only.
This made it difficult to ask an assistant things like:
“Show me all badminton events for this October”
So I decided to create a blueprint that queries any number of calendars for an arbitrary date range, and returns all events in a structured format that Assistants (or LLMs) can use.
Features
- Query multiple calendars at once
- Define your own time span (
start_of_period,end_of_period) - Returns a structured dictionary with all events, including:
- calendar source
- start & end
- summary
- location (if available)
How to use with Assistants
-
Import the blueprint:
1.1 via this link:
Or
1.2 manually with this github url:
https://github.com/lweberru/LLMCalender/blob/main/LLMCalender.yaml -
Create a script from it, select your calendars and time range.
-
In the script’s settings, enable Expose to Assistants.
-
Now you can ask your assistant things like:
Show me all badminton events for this October
Closing
This blueprint makes calendar queries much more flexible and assistant-friendly.
I’d be happy to hear your feedback, suggestions, or improvements!
Enjoy!