šŸ“† Calendar Notifications & Actions

You’re not alone. Im only getting the end notification, but the start still is not working

@hairyfred

Welcome to the community.

When you add a calendar event, it must exist for at least 15 minutes before Home Assistant will recognize it.

If you’re testing, make sure to set the event at least 15 minutes into the future. For example, if it’s currently 4:00 PM, set the event to start at 4:15 PM. Then, wait for the time to pass, and the automation will trigger as expected.

Blacky :grinning:

@MS27HA

Make sure it is enabled and you should get the start as well.

When you add a calendar event, it must exist for at least 15 minutes before Home Assistant will recognize it.

If you’re testing, make sure to set the event at least 15 minutes into the future. For example, if it’s currently 4:00 PM, set the event to start at 4:15 PM. Then, wait for the time to pass, and the automation will trigger as expected.

Blacky :grinning:

Hey Mate

I’ve been setting calendar events a few hours in advance for this reason with not much luck :confused:

@hairyfred

Could you share the YAML code for your automation settings? This will allow me to better understand your settings and help troubleshoot the issue.

To do this:

  1. Open your automation.
  2. Click the three dots (ā‹®) in the top right corner.
  3. Select Edit in YAML.
  4. Copy the entire YAML code.
  5. Return to the forum and, in your reply, click the </> button in the toolbar.
  6. Paste your YAML inside the code block.

This ensures the formatting stays correct and makes it easier to analyze.

Blacky :grinning:

1 Like

Hey

alias: Calander Test
description: ""
use_blueprint:
  path: Blackshome/calendar-notifications-and-actions.yaml
  input:
    calendar: calendar.CENSORED_household
    include_calendar_trigger: disable_key_word
    start_notify_device:
      - 3061e5e9a312587968209fc0da52dfb6

Feel like its going to be something obvious :sweat_smile:

@hairyfred

Thanks for your YAML. You just need to enable the start notify option. See below.

Blacky :grinning:

1 Like

Hi

Thanks I enabled that but I don’t think thats the issue
image
It claims the automation never triggered, I added an event 2 hours in advanced, checked its appeared in the calander in home assistant, but still no trigger
Image of Calendar

Ah it triggered sent me the notifcation dead on when it hit the time of the event

I must of misunderstood, I thought it would send a notification as soon as it detected a new event.

1 Like

Hi there, great blueprint! Testing in combination with waste collection schedule hacs component is not convienient but it works :smiley: Ich have many familiy members and i created a telegram bot for notification. Not everyone wants to have HA App installed … family … :wink: I want to share my config, maybe someone can use it:

Please have in mind you need a telegram bot (service) in your configuration.yaml with allowed chat ids. Tutorial here

alias: Title Automation e.g. Altpapier Abholung 1 Tag davor
description: ""
use_blueprint:
  path: Blackshome/calendar-notifications-and-actions.yaml
  input:
    calendar: calendar.ics #your calendar in HA calenadar here 
    include_calendar_trigger: enable_key_word
    start_calendar_offset:
      hours: 0
      minutes: 0
      seconds: 0
      days: -1
    include_start_notify: disable_start_notify_options
    start_action_1:
      - action: notify.go25abot # your telegram bot service here
        metadata: {}
        data:
          message: ā™»ļø Morgen Altpapier!
          target:
            - your chat id 1 here
            - your chat id 2 here
    include_start_auto_actions:
      - enable_start_action_1
    calendar_trigger: Altpapier # exact title of calendar entry here e.g. Altpapier

Sorry Blacky, I’m too stupid to get it up and running. I’ve simplified it as much as I could. But the trigger only fires for the end event… here’s my YAML:

alias: An das Rausstellen der Mülleimer erinnern
description: ""
use_blueprint:
  path: Blackshome/calendar-notifications-and-actions.yaml
  input:
    calendar: calendar.mullabfuhr
    include_calendar_trigger: disable_key_word
    start_calendar_offset:
      hours: -9
      minutes: 0
      seconds: 0
      days: 0
    include_start_notify: enable_start_notify_options
    start_notify_device:
      - 96409aace9c9580fe919a2115c4e590e
    start_message: Bitte den Mülleimer rausstellen.
    include_start_action_buttons:
      - enable_start_action_button_1
    start_action_button_1: Erledigt
    start_time_delay:
      hours: 1
      minutes: 0
      seconds: 0
    include_start_action_button_confirmation: disable_start_action_button_confirmation
    end_calendar_offset:
      hours: -9
      minutes: 0
      seconds: 0
      days: 0
    include_end_notify: enable_end_notify_options
    end_notify_device:
      - 96409aace9c9580fe919a2115c4e590e
    end_title: Mülleimer wieder rein holen
    end_message: Bitte den Mülleimer wieder rein holen.
    start_action_button_stop: Abbrechen
    start_title: Mülleimer rausstellen
    start_notify_interruption_level: time-sensitive

My calendar item for tomorrow in CalDAV:

Do you have any Idea what I could try?

@MS27HA

Thanks for your YAML. I have tested it here and it works for the start and end.

It will be in your offsets. You have -9 for the start and the end.

Event Details:

This appears to be an all-day event on February 18, 2025.

Start Offset Calculation

The event starts at February 18, 2025, 00:00:00 (midnight).
Applying a -9 hour offset:

12 AM → 11 PM (-1)
10 PM (-2)
9 PM (-3)
8 PM (-4)
7 PM (-5)
6 PM (-6)
5 PM (-7)
4 PM (-8)
3 PM (-9)

Result: The start trigger and notification will be at 3 PM on February 17, 2025.

End Offset Calculation

The event ends at February 19, 2025, 00:00:00 (midnight).
Applying the same -9 hour offset:

12 AM → 11 PM (-1)
10 PM (-2)
9 PM (-3)
8 PM (-4)
7 PM (-5)
6 PM (-6)
5 PM (-7)
4 PM (-8)
3 PM (-9)

Result: The end trigger and notification will be at 3 PM on February 18, 2025.

Testing a Start Trigger at 3 PM on Event Day

If you want the start trigger at 3 PM on February 18, 2025, you need a +15 hour offset from midnight:

12 AM → 1 AM (+1)
2 AM (+2)
3 AM (+3)
4 AM (+4)
5 AM (+5)
6 AM (+6)
7 AM (+7)
8 AM (+8)
9 AM (+9)
10 AM (+10)
11 AM (+11)
12 PM (+12)
1 PM (+13)
2 PM (+14)
3 PM (+15)

So, you would use +15 as your offset for a 3 PM start on February 18.

Hope this helps!

Blacky :grinning:

Thank you for your in depth analysis!
The event is the day the trash will be emptied - on the 18th. I want to remind myself on the day before the event to put out the trash can (start) and on the same day to put them back in (end).

I’ve received my end notification today at 3 pm.
But yesterday at 3 pm the automation didn’t trigger and I did not get a notification:(

@MS27HA

That’s not good. I tested your YAML here without changing any text. The only modifications I made were selecting a different calendar, choosing a notification device, and setting offsets to receive both start and end notifications.

If you’re working with an all-day event, you can keep adjusting the offsets for testing without having to wait. Just make sure the event is created at least 15 minutes before testing.

It’s strange that you’re receiving the end notification but not the start. Try adding an all-day event for tomorrow and adjust the offsets until the start notification comes through. It’s possible the issue is related to the calendar you’re using.

Hope you find it.

Blacky :grinning:

Thank you for all your effort and help! Greatly appreciate it.
I’ve already played around with different offsets without any success.
Might be related to CalDAV with my iCloud calendar.

What a bummer…

Is someone here who got it running with iCloud and CalDAV?

Edit: I think I found something. Seems to be a bug with all-day events and CalDAV: Caldav calendar trigger not working for all-day events (server does not return events at correct time) Ā· Issue #105634 Ā· home-assistant/core Ā· GitHub

Edit 2: It seems to be an issue with timezones. Here some guy had an idea how to respect the timezone. But I have no idea how I’d use this information here: Get all-day events for specific days - #6 by ma-ns

1 Like

@MS27HA

Yes very strange and because you get the end notification but not the start.

At least you know I have tested your YAML and it works so it is somewhere in your calendar event…

Maybe just run the automation for a week and see if you get the start notification and note when you receive it.

Blacky :grinning:

I don’t think there is an easy solution as it seems to be a bug with timezones.
Is there any place in your code where you could respect the timezone the user is in? (like in my two examples from my last post)

@MS27HA

The strange thing it you get the end but not the start so the time looks or could be correct. If it is not then just make your offsets to reflect the time difference.

Blacky :grinning:

Did you see my linked posts?
Seems to be a bug with the trigger.
The start trigger never fires.
With my little understanding it is connected to my timezone (UTC+1 at the moment)…

@MS27HA

Looks like they have a problem with the integration. I don’t use it maybe try the HA calendar.

Blacky :grinning: