Local Calendar event automation in Home Assistant

preview_player
Показать описание
Local Calendar as companion integration to Scheduler and alternative to Google Calendar has been added in Home Assistant 2022.12.

We will look at few examples on how to use local calendar in home assistant automation.

00:00 - Intro
00:32 - Local Calendar activation and information
02:28 - Navigation tab
02:59 - Current downsides
04:39 - Example of automation
07:17 - Create event and matching automation
11:13 - More automation examples
14:41 - Parallel and Queue mode problem
16:04 - Some final thoughts

Example of code used to show full event description in automation:

Don't forget to give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!

Have fun!
Bearded Tinker
____________________________________________________________
👕☕Awesome merchandise? Sure - here it is!
____________________________________________________________
____________________________________________________________
📣Follow me on other platforms📣
✅Twitter: @BeardedTinker
✅Instagram: @2BeardedTinker
____________________________________________________________
(*) if any, should indicate links that are affiliated links. They don't cost you anything extra but provide small income to get this channel going, and finance future projects I make.
#HomeAssistant #calendar
Рекомендации по теме
Комментарии
Автор

Thanks BT I was stuck on using the message as the state. Well explained!

markheatherington
Автор

Yet another helpful video from the BeardedTinker!

andrew
Автор

4:20 You can now also create events from a service with calendar.create_event --- but since there is no service to delete events, you still cannot synchronize with some external calendar (e.g. via a Python script).

holgerschurig
Автор

3:44 to answer your question. That's a bummer, hopefully in the future until then it's useless for me. I'm using tasker right now to read my Google calendar then call home assistant automations. Maybe the andriod app home assistant can access the Google calendar and then sync it that way?

Edit: just checked no you can not have multiple events and do automations based off events even in the local calendar when they are overlapping events. IE kids no school last several days make sure alarms are turned off during this time. But during this no school event maybe the kid had band practice or something but the calendar only see the no school event. So second event gets totally dismissed and doesn't even show up same.

Misticzerxr
Автор

Hi! Thanks for your video!
Have one issue. How can I setup an automation for an 'allday' event? For example, I have an allday trash pickup event in a Google calendar and I would like a trigger on the motionsensor so I get a notify.

GosZk
Автор

3:10 By now you can edit an event, there's now a delete button there.

holgerschurig
Автор

Mine didn't work with the persistent notification part.
message: "Note: {{state_attr("calendar.work", "description") }}" is starting
I tried using this without " is starting" and my calendar name is work (not YouTube)
The following error gets displayed
"Message malformed: template value should be a string for dictionary value @ data['action'] [1]['data']
Have already checked the template spacing, also tried copy pasting from yours. Nothing works. Can you please kindly help me understand what I am doing wrong here?

youtubersofnepal
Автор

Local calendar was not what I was looking for, but how do I delete this module?
Not a calendar I made, but the local calendar module itself? After deleting the last calendar, 'local calendar' still remains in the menu.. Anyone?

winandd
Автор

Loudspeaker: 'Zita go to bed, you have school tomorrow'.
Zita: 'this damn Skynet is a terrible invention' 😒

riesmoos
Автор

"Time to go to bed" automation has a flaw: What happens if the next day is a holiday?

kdelios
Автор

Thanks for a great video (as always). I feel that the calendar trigger is unstable. It works randomly. Do you need to creste the calendar event some longer time before? Which mode do you recommend for the automation (single, restart… etc)?

peterrhodin
Автор

Hi Andrej, I am gad with this tutorial.
However, I tried to use your example but I get an error when I write the yaml code in the action. Hopefully you can help me?
This is what is in my Action:

service:
data:
message: "note: {{ state_attr("calendar.youtube", "message") }}" is starting

And this is the error message:
Message malformed: template value should be a string for dictionary value @ data['action'][0]['data']

berttammer
Автор

how about adding a condition to check on the event name or description? (I have a #nameofthekid in my event description)
I do it this way:
condition:
- condition: template
value_template: "{{ == '#nameofthekid' }}"

ceddirr
Автор

Never ever put your self front of the code, newbies cannot learn the code. Better is to put the code in the text below.

videosfromniek
Автор

This "overhyped" calendar feature of HomeAssistant is the most unnecessary function what I could imagine:
Since everybody has their events in their phone's calendar, then nobody wants to copy / recreate their events in a second calendar (in this case in home assistant dashboard) for using those events is automations.
Everybody wants to create their calendar events in their mobile's calendar, and those events should be syncronized and would be great to able to use those in home automations..
.. oh wait...
This problem has been solved, since we have google calendar integration for this purpose..

boorandras
visit shbcf.ru