Your welcome, glad you got the hang of it now.
Blacky
Firstly, thank you for this automation I have been using it for a while.
I just updated to the latest 1.8 and I get the following error (even though I see the notification and all works)
Note: I only have the default settings in for the start notify title/description fields, and really only using it for bin days at the moment so no actions etc.
Template variable error: ‘list object’ has no attribute ‘split’ when rendering ‘{% set keywords = calendar_trigger.split(’,‘) %} {% set keywords = keywords | map(‘trim’) | list %} {{ keywords | select(‘in’, trigger.calendar_event.summary) | list | count > 0 }}’
Template variable error: ‘list object’ has no attribute ‘split’ when rendering ‘{% set keywords = calendar_trigger.split(’,‘) %} {% set keywords = keywords | map(‘trim’) | list %} {{ keywords | select(‘in’, trigger.calendar_event.description) | list | count > 0 }}’
any ideas what I might have configured wrong (fyi when I went from 1.7 to 1.8 I recreated the automation)
Regards,
Mobs
Welcome to the community.
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.
FYI When you update a blueprint you don’t need to recreate the automation. This is the beauty of blueprints, you can update the blueprint and it carries through all of your existing automations. You may be aware of this already.
Blacky
Thanks Blacky,
Yea the recreate was only because I was seeing the error just thought id start fresh and see if it replicated (which it did). YAML below.
alias: Bin Days - Tell House which Bins are to be put out
description: ""
use_blueprint:
path: Blackshome/calendar-notifications-and-actions.yaml
input:
calendar: calendar.bin_days
include_calendar_trigger: disable_key_word
start_calendar_offset:
hours: -5
minutes: 0
seconds: 0
days: 0
include_start_notify: enable_start_notify_options
start_notify_device:
- 2e8b983bcce5fa60516670ec489d4d66
- ad63a2cfb8aac012c5110e210afe1ab0
- e261d8fad1ad85416c415300a92045ac
- 5e1effb79cbdb21f5df174540ea7c0ee
start_notify_data:
- sticky
start_notify_interruption_level: time-sensitive
Thanks for your YAML, all fixed. Problem was if you had no keyword in the input. You can update now as it has been updated already.
Thanks for your help and reporting the bug.
Blacky
Transform Your Calendar: Turn Events Into Notifications and Actions!
Bugs Fixes
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Enjoy
Blacky
Thankyou so Much Blacky too!
Did anyone manage to get TTS notifications via companion app to work as a “Calendar Start action”? See pictures of interface, am I missing some configuration?
I could be wrong but Home Assistant does not support playing TTS audio directly through the mobile app. The mobile app is designed for text-based notifications and cannot natively handle TTS playback.
Blacky
It does work, the companion app generates the TTS (or the assistant in the phone maybe). This code snippet works in another automation that i use:
action: notify.mobile_app_vog_l29
metadata: {}
data:
message: TTS
data:
tts_text: Alarm! Someone is in the house! Inspect!
media_stream: alarm_stream
ttl: 0
priority: high
The phone “talks” it says Alarm! Someone is in the house! Inspect! .
While this from your blueprint doesn’t:
alias: Nova avtomatizacija
description: ""
use_blueprint:
path: Blackshome/calendar-notifications-and-actions.yaml
input:
calendar: calendar.sestanki_in_rojstni_dnevi
include_calendar_trigger: disable_key_word
include_start_notify: enable_start_notify_options
start_notify_device:
- 7ddf3ab80971f424ff7d5e6c3c0186b8
start_notify_data:
- high_priority
include_start_auto_actions:
- enable_start_action_1
start_action_1:
- action: notify.mobile_app_vog_l29
metadata: {}
data:
message: TTS
data:
tts_text: You have a calendar event today!
media_stream: alarm_stream
ttl: 0
priority: high
Do you see some error? How do I debug this?
Yep your correct, I tested this and it works on Android with your exact code (just changed the device and calendar). I am iOS. I did notice when I had 2 automation with 2 calendar events at the same time it only sent one voice notification once but I received 2 text messages. When I had 2 automation with 2 calendar events at the same time I got 3 voice messages and 4 text message.
Important Note:
When adding a calendar event to Home Assistant (HA), it must be scheduled at least 15 minutes into the future. This is because HA needs 15 minutes to register the event.
If you attempt to test the blueprint with a calendar event set, for example, only 1 minute before your intended notification, it will not work.
Example:
For all-day events:
If you add an all-day calendar event, you still need to wait 15 minutes before testing.
Blacky
I tested this 1 hour into future and it didn’t work…The event is not all day as far as i know, just one hour duration. Its not the duration thing, it must be something else.
So I have multiple automations from your blueprint - with same day and minus one day offset and if I have the automation with the TTS active I get the textual notification (twice, if I have two same day notifications active) but I don’t get the TTS. It’s like the “action” doesn’t get triggered.
I just ran another test again, worked perfectly. Got a text and a voice message.
Have you updated to the latest blueprint? Push the import blue button at the top again.
Blacky
I have your latest version, doesn’t work the “voice message”
I can auusre you that it is working here, this is the YAML I have and tested it is working.
input:
calendar: calendar.home
include_calendar_trigger: disable_key_word
include_start_notify: enable_start_notify_options
start_notify_device:
- my_device_here....
start_notify_data:
- high_priority
include_start_auto_actions:
- enable_start_action_1
start_action_1:
- action: notify.mobile_app_sm_g950f
metadata: {}
data:
message: TTS
data:
tts_text: Testing 1, 2, 3 testing 1, 2, 3!
media_stream: alarm_stream
ttl: 0
priority: high
Blacky
Welcome to the community.
I love getting these ones… thanks for you kind words and I am glad you like it.
Enjoy
Blacky
Is there maybe a smart way to integrate the option for adding multiple calendars and send a daily summary from both combined?
I appear to be getting an error trying to set negative offset values?
I’m also receiving conflicting information about the offset. I have “all day” events set up in my calendar for the garbage. If I want to be notified at 330 pm the day before, is that -8h30m, or -1d15h30m to have it alert at 1530 one day before the all day event?
Thanks.