šŸ“† Calendar Notifications & Actions

I thought Iā€™d followed the FAQ correctly but if I set an event to trigger I get the following in the traceā€¦

Triggered by the at September 14, 2024 at 10:20:00 AM

Test Test if any of 2 conditions matches

Stopped because a condition failed at September 14, 2024 at 10:20:00 AM (runtime: 0.00 seconds)

From the yaml belowā€¦

alias: Buy chocolate test
description: ""
use_blueprint:
  path: Blackshome/calendar-notifications-and-actions.yaml
  input:
    calendar: calendar.our_home
    calendar_trigger: "@chocolate"
    start_notify_device:
      - 36ff6a484fec01e6472723975767b91d
      - 061bd4452a970d75aaef51342351da1a
      - 2aa26a308b387c602f886b697ee2b7e9
    start_notify_data:
      - high_priority
    include_start_action_buttons:
      - enable_start_action_button_1
    start_action_button_1: Bought some
    include_start_action_button_confirmation: enable_start_action_button_confirmation
    start_action_button_confirmation_title: Bought
    start_action_button_confirmation_message: Bought
    start_action_button_stop_confirmation_message: Not bought
    start_time_delay_confirmation_message: too late

Can anyone suggest what condition may have failed?

@reg.phenna

I have had a look at your YAML.

First you need to enable the start notify option as shown below.

Next your need to put some text in the cancel button as shown below.

You should be all good to go, make the changes and test it outā€¦ let us know how you go.

Blacky :smiley:

1 Like

Hi, if I have more than one calendar at the same time, the HA app will show only one notification. It will not stack them. If I set them up with 1 min apart, then will work fine and will stack them fine. Is the issue with the blueprint or the app?

Ignore my post. I updated the blueprint to the latest version and now works fine. I had no idea that I must update blueprints tooā€¦ Thanks!

1 Like

Dear all,

Forgive me if this request has been shared before, but a quick search didnā€™t gave me any proper results.

For years, I have been using the Homey iCal integration to receive notifications for new and modified events from my iCal calendar via the Homey platform (IcalCalendar App for Homey | Homey). However, Home Assistant does not currently support a similar integration, which would greatly benefit users who rely on iCal for managing their schedules and want to be notified about changes made in their calendars.

Key Features:

  1. New Event Notifications: Send notifications to Home Assistant whenever a new event is added to the iCal calendar.
  2. Modified Event Notifications: Notify users when an existing event has been updated, allowing for real-time changes in automations.

The source code for the existing Homey iCal integration is publicly available on GitHub (GitHub - runely/calendar-homey: Gives Homey flow cards to trigger on your calendar events), which could serve as a starting point for development within Home Assistant.

I was curious to understand if this functionality could be added to the blueprint or not.

Thanks for taking this into consideration!

Thanks for that Blacky, I shall try to do it right this time!

All working now, thanks again @Blacky

1 Like

@MrBlue

Currently this blueprint will not do that. I put it on the list of suggestions.

Blacky :smiley:

1 Like

Hi, thanks for the Blueprintā€¦awesome work. I have a couple of questions, why are the notifications limited to App only devices? Iā€™m looking to have Alexa devices notify me of meetings.
Also, to make different offsets available i.e. zoom meeting needs 15mins, travel across city needs 2hrs offset, I thought to create two automations and use two keywords @salert, @lalert. Is there a better way?

@BodgeIT

Hi Gary, you just simply add a start or end action. You will probably use a ā€œTTSā€ action.

Blacky :smiley:

:man_facepalming:
Of course! I was too lazy just looking in the start notify device list!

1 Like

Thank you for your hard work. using the battery notification and it works a breeze.

donā€™t know what it is but this racks my brain.
i just want to be notified monthly to give the dog heart worms. at 6pm i want to send out a tts as a reminder. this -8 -9 is confusing the heck out of me. of all the automations i have set upā€¦calender seems to be the most annoying. so if iā€™m correct if i create a start time at 18 it will notify me at 6pm? i only want one tts notify so would i put that on the start or end or just end lol.

1 Like

@RogerB1

Sorry I missed this one :pensive:

If you set a calendar event to repeat monthly at 6pm, you can simply use the start time without any offsets, and youā€™re all set.

Now, let me explain how offsets work:

For example, if your calendar event runs from 6pm (Start) to 9pm (End):

  • A start offset of -1 will trigger the event at 5pm.
  • A start offset of +1 will trigger it at 7pm.
  • An end offset of -1 will trigger at 8pm.
  • An end offset of +1 will trigger at 10pm.

You can choose to apply an offset to either the start or the end of the event.

For an all-day event, which technically runs from 12am to 12am (a 24-hour period), the offsets work similarly. For example, if the all-day event is on a Monday:

  • A start offset of -8 means the event will trigger at 4pm on Sunday (12am - 8 hours).
  • A start offset of +8 means the event will trigger at 8am on Monday (12am + 8 hours).
  • An end offset of -9 will trigger at 3pm on Monday (12am - 9 hours).
  • An end offset of +9 will trigger at 9am on Tuesday (12am + 9 hours).

Whatever you choose, you can opt to use the start time, the end time, or both, depending on what youā€™re trying to accomplish.

Blacky :smiley:

Hi there, I was about to import the blueprint into my HA but getting the error:

Invalid blueprint: extra keys not allowed @ data[ā€˜blueprintā€™][ā€˜inputā€™][ā€˜end_action_settingsā€™][ā€˜collapsedā€™]. Got True extra keys not allowed @ data[ā€˜blueprintā€™][ā€˜inputā€™][ā€˜end_action_settingsā€™][ā€˜iconā€™]. Got ā€˜mdi:gesture-double-tapā€™ extra keys not allowed @ data[ā€˜blueprintā€™][ā€˜inputā€™][ā€˜end_action_settingsā€™][ā€˜inputā€™]. Got {ā€˜include_end_action_buttonsā€™: {ā€˜nameā€™: ā€˜End Notify - Action Buttons Options (Optional)ā€™, ā€˜descriptionā€™: "Enable the action buttons you would like to use. These buttons will be shown in the notification, allowing you to perform actions when clicked.\n\nNOTE - You do not need to select any notification action buttons to execute an end action. If you prefer to run an end action without using any action buttons, simply enable any ā€˜End Auto Actionā€™ located in the ā€˜End Actionsā€™ section below..ā€¦ extra keys not allowed @ data[ā€˜blueprintā€™][ā€˜inputā€™][ā€˜end_auto_action_settingsā€™][ā€˜collapsedā€™]. Got True extra keys not allowed @ data[ā€˜blueprintā€™][ā€˜inputā€™][ā€˜end_auto_action_settingsā€™][ā€˜iconā€™]. Got ā€˜mdi:code-tagsā€™ extra keys not allowed @ data[ā€˜blueprintā€™][ā€˜inputā€™][ā€˜end_auto_action_settingsā€™][ā€˜inputā€™]. Got {ā€˜include_end_auto_actionsā€™: {ā€˜nameā€™: ā€˜Use The End Auto Action Options (Optional)ā€™, ā€˜descriptionā€™: 'Enabling the auto option will allow the ā€œEnd Actionsā€ below to run when the calendar event is triggered.\n\nWhen using action buttons in a notification, it is not necessary to enable an auto action for the end actions to work, as the action button pressed in a notification will run the selected action. However, if you miss the notification and don't press an action button, and after the time dā€¦ extra keys not allowed @ data[ā€˜blueprintā€™][ā€˜inputā€™][ā€˜end_notify_settingsā€™][ā€˜collapsedā€™].

Any ideas what to do to import it?
I was also trying to do it manually by importing the file via File Editor into HA, but the same result

Regards
Maciej

@gomez99

:warning:You must be on Home Assistant Version 2024.6 or later.

Please update your HA if you can.

Blacky :smiley:

Hi,

Would it be possible to update the trigger section to allow multiple triggers? I would like to get a notification of a calendar event 24h and 2h before it starts.

I rather not create multiple automations for this.

@RutgerP

Welcome to the community.

I can see that it would be some value. I will put it on the list of suggestions. For now you have 2 triggers. One at the start and one at the end. If you use the offsets you can achieve what you are after.

Say you have a calendar event at 3pm to 4 pm. The start offset would be -24 and the end offset would be -3.

Blacky :smiley:

Thank!

Iā€™m using the 24h and 2h for all events in the calendar so I canā€™t really work with the end offset as every event can have different hours.

Iā€™ll keep it seperated for now until an update arrives.

1 Like

We love your blueprint! Use it almost daily.

I have a request.

We work different schedules most days, Brenda somedays is up at 4AM while I sleep in to 6AM. Then the next day she may get up at 5AM and I am up at 4AM, and so it goes. Almost every week is a slightly different schedule beginning at 4AM to 6AM. I use your blueprint to make things happen, lights on, coffee started, etc. I have two automations, one for Brenda and one for me. Currently I must go into the automation and change the offset time for each or our days. (One problem is that she will only add an event as an all day event, saying it is too much trouble to set the timeā€¦ My cross to bear.) I know I can add a start time to the calendar event to make it work but would have to do this every day a change is made. We use all day events so they display differently from appointments. I have tried to do this but several times have screwed something up and it did not work correctlyā€¦

I have modified our coffee pot with a Shelly 1 so it can use HA automations instead of the pots timer function. I use the time picker card as a trigger in an automation to set our coffee pot on time for days we do not work - works great. Simple dashboard card to change. And as a bonus, Brenda knows how and will change it on her own!

I wish your blueprint had the option of using the time picker card (or something like that) as an input for the calendar offset time.

Thanks again for all your work on this, I just updated to 1.7 and am even more impressed!

@jbrandon

Hi Jim, have you considered using the :round_pushpin: State Notifications & Actions blueprint?

This way you can use a state (time) to trigger the automation. Then it will work more like an alarm and run your actions.

Blacky :smiley: