Yes, I understand the frustration. No less, your âStart Actionâ idea looks like a pretty good solution. Thanks!
i got it to work via tts.speak but no matter what i tried conversation.response would fail every time and the event wouldnât fire. which is weird because i use that for other automations no problem. Would keep giving no response variable for errors
What action do you use for other automations?
Blacky
I canât seem to get this blueprint to work. No clue why. It wonât trigger based on the settings I put in, and when I try to run it manually, I get a super non-descript error message which basically says âstopped because of unknown reasonâ, which is super helpful
These are my settings:
Welcome to the community.
This blueprint has been tested for the Home Assistant calendar integration. While it will work with other calendars I not sure if the one you selected will be okay.
Everything looks good here. Remember Home Assistant needs your calendar event saved for at least 15 min before it will register the event. Your trigger is set to trigger 6 hours before. Example say your start is set for 7pm and ends at 8pm it will trigger at 1pm (start) and the end has no offset so it will trigger at 8pm.
For the rest of your automation I am not sure. If you would like me to look at it then could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on â</>â and paste code in there.
Blacky
Hi, sorry for the late reply. The calendar Iâm using is an ics provided by our local trash collecting department, and thatâs been imported into the HA calendar via the âwaste collection scheduleâ integration I got off of HACS.
Iâm not entirely clear on the end trigger thing. Do I have to specify an âend notifyâ as well as a âstart notifyâ?
Just for reference, all the entries on this calendar are all-day events, so the 6-hour offset is me trying to make it notify me at 6 PM the day before, so I remember to put the trash out the night before they come and collect it.
Hereâs my YAML code:
alias: Afvalophaling
description: ""
use_blueprint:
path: Blackshome/calendar-notifications-and-actions.yaml
input:
calendar: calendar.limburg_net
include_calendar_trigger: enable_key_word
calendar_trigger: "@huisvuil, @papier"
start_calendar_offset:
hours: -6
minutes: 0
seconds: 0
days: 0
include_start_notify: enable_start_notify_options
start_notify_device:
- 1ecf47123d277c69d8896c8a414fe2ec
- 3c25545c5c8df36c310ed2e49d3d1be8
start_message: Zet {{ trigger.calendar_event.summary }} buiten voor ophaling
start_notify_data:
- sticky
- high_priority
No you donât have to use the end trigger. You could use the end trigger to remind you to bring them back in. Example -6 offset will remind you on the day of collection at 6pm because it is working from the end of the all day event.
Perfect you have a -6 offset so that is the day before at 6pm.
Note: You are using keywords and it is like a password so symbols matter to keywords. You must have the @ symbol included as well in the calendar event. you probably only have huisvuil
and papier
in the calendar event and is why it is not triggering the notification. You could try and not to use the keywords but keywords are like passwords. So if you have 4Hst6% as a keyword it has to match that exactly.
Blacky
So I should not have the @ in front of the keywords? In that case, I vastly misinterpreted the explanation in the blueprint.
In any case, I tested this with various changes to the settings, including just listing âhuisvuilâ and âpapierâ as keywords without any special characters in front, and the blueprint still gives the same error. Even when I set it to trigger on all events, the blueprint still refuses to run. It just keeps saying in the tracelog that it âhas stopped for an unknown reasonâ
I used your YAML and created an all day event with your keywords and I got the notification. When you are testing it the calendar event it must be saved for at least 15 min before you can test it so HA see it. You canât run it manually
Blacky
I wonder, if the location of an appointment could be used as well. Iâd like to do so to check if the vacation is âperformedâ at home or elsewhere.
This would be useful to me as there are several automations that should still run, if there is a vacation appointment in my but not in my wifeâs calendar, so the usual âvacation modeâ should not kick in (shutter lockdown, cameras etc.).
Maybe with trigger.calendar_event.location or something?
Hi, Iâm having problems with the calendar entries for today/tomorrow. I seem to have configured something wrong. I have a CalDAV integration in HA to integrate my Nextcloud calendars. There I have a calendar for âholidays and public holidaysâ. These are all-day events. I would like to switch on the helpers for today and tomorrow if there is an entry in the calendar without a keyword.
It would be nice if you could also take into account whether it is a weekend on that day. I am using the Workday integration with Workday_Senor and Workday_Tomorrow_Sensor. The idea is to have a sensor whether today/tomorrow is a school day.
alias: Kalender - Ferienhelfer morgen
description: ""
use_blueprint:
path: Blackshome/calendar-notifications-and-actions.yaml
input:
calendar: calendar.nc_feiertage_und_ferien
include_start_auto_actions:
- enable_start_action_1
start_action_1:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id:
- input_boolean.vacation_sensor_tomorrow_children1
- input_boolean.vacation_sensor_tomorrow_children2
include_end_auto_actions:
- enable_end_action_1
end_action_1:
- if:
- condition: state
entity_id: binary_sensor.workday_sensor_tomorrow
state: "off"
then:
- action: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id:
- input_boolean.vacation_sensor_tomorrow_children1
- input_boolean.vacation_sensor_tomorrow_children2
enabled: false
- action: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id:
- input_boolean.vacation_sensor_tomorrow_children1
- input_boolean.vacation_sensor_tomorrow_children2
enabled: true
include_calendar_trigger: disable_key_word
start_calendar_offset:
hours: 0
minutes: 0
seconds: 0
days: -1
start_notify_device:
- 3d36c9b93da93220a7fabe7fee691980
include_start_notify: enable_start_notify_options
include_end_notify: enable_end_notify_options
end_notify_device:
- 3d36c9b93da93220a7fabe7fee691980
Home Assistant Core Protocol
Logger: homeassistant.components.automation.kalender_ferienhelfer_morgen
Quelle: components/automation/__init__.py:663
Integration: Automation (Dokumentation, Probleme)
Erstmals aufgetreten: 11:52:54 (1 Vorkommnis)
Zuletzt protokolliert: 11:52:54
Error rendering variables: UndefinedError: 'dict object' has no attribute 'calendar_event'
The event triggered today, so itâs working now. Thanks for the help!
Iâm having an issue with this:
alias: Calender next day notifcations
description: ââ
use_blueprint:
path: Blackshome/calendar-notifications-and-actions.yaml
input:
calendar: calendar.mein_abfallkalender_online
include_calendar_trigger: disable_key_word
start_calendar_offset:
hours: -6
minutes: 0
seconds: 0
days: 0
start_notify_device:
- 21efe8f97xxxxxxxxxxx
get this error at trigger time:
Error in describing trigger: e.offset.startsWith is not a function
the calendar events are all-day events, not using a key word since all calendar events are to be notified.
any help would be much appreciated
TIP: When posting your code into the forum use the </> as it will keep the format correct.
Just reading the code from your post looks like you havenât enabled the start notification. Like this.
alias: Calender next day notifcations
description: ""
use_blueprint:
path: Blackshome/calendar-notifications-and-actions.yaml
input:
calendar: calendar.mein_abfallkalender_online
include_calendar_trigger: disable_key_word
start_calendar_offset:
hours: -6
minutes: 0
seconds: 0
days: 0
start_notify_device: your_device_here
include_start_notify: enable_start_notify_options
Blacky
Thanks, and noted
Hello
I have an issue with the Notify message for iOS. I use {{ trigger.calendar_event.description }}
but it shows empty, but only in the message. In the title it applies correctly.
To test if it was an issues with variables I added {{ '\n' -}}{{ now().strftime('%H:%M:%S')}}
. This also applies correctly.
It doesnât change if I add other text to the message. Everything is displayed correctly, except that {{ trigger.calendar_event.description }}
stays empty.
Any ideas please?
I use Version: 1.9
I am on iOS and all my testing is done with this so I know it works. How much text is in the description and what calendar are you using (HA one or something different).
Blacky