Blueprint to fetch Calender Events for AI based Assistant Integration

:spiral_calendar: Home Assistant Community – Blueprint: Fetch Calendar Events

Hi everyone,

I’d like to share a small but useful blueprint I created:
:point_right: Fetch Calendar Events Blueprint


:dart: 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.


:rocket: 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)

:robot: How to use with Assistants

  1. Import the blueprint:
    1.1 via this link: Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.
    Or
    1.2 manually with this github url:
    https://github.com/lweberru/LLMCalender/blob/main/LLMCalender.yaml

  2. Create a script from it, select your calendars and time range.

  3. In the script’s settings, enable Expose to Assistants.

  4. Now you can ask your assistant things like:

    Show me all badminton events for this October
    

:memo: Closing

This blueprint makes calendar queries much more flexible and assistant-friendly.
I’d be happy to hear your feedback, suggestions, or improvements!

:sparkles: Enjoy!

Hello Lukas,

Thanks for contributing to the community with a new Blueprint.

I have a suggestion for you. Many people who are not familiar with directory structures will have problems installing this without the Home Assistant MY tools.

Adding a MY link for this Blueprint to your top post would help them a lot.
Here is the link to make that.

Create a link – My Home Assistant