It’s most likely just me and probably something simple, but how can I create a new calendar item/event?
I don’t see an icon, clicking the day doesn’t do anything. I tried it on Windows with Firefox and Edge and the Companion App on iOS. I’ve checked the doc but there is nothing on how to add an event.
Never did anything with a calendar before, don’t know of that’s of any influence.
I also noticed that I have 3 calender views and you (as does the example in the release notes) have 4
I’ve had the same problem! The documentation is useless, and even searching for “adding events to Local Calendar” (and similar searches) turns up nothing. I guess it’s so intuitively obvious that there’s no need to show people how to use the new feature.
Looking at the screenshot of Tom, it should be very intuitive. However, it looks like something is wrong, but I don’t know what. I hope someone has a clue.
But you wrote you had the same problem. Where you able to fix it?
If you want to add event in the calendar you have to use the view in the sidebar. The calendar card does not (today) allow adding events but eventually you might since it a work in progress.
I’d also really like this feature to be available elsewhere in HA.
I’ve added an NFC tag to a medication container that increments a counter in HA when a phone is tapped on it. The counter is then reset every day. I can view the history to see when it was last changed but a Local Calendar card showing whether or not it was pressed today and when would be much more helpful.
That is great to hear. For me that will solve the problem to create events via a service. It is half solution to my challenge. The second thing which is important is to be able to enumerate existing events via service.
What I would like to achieve is to have a simple way to show for instance when the last time I changed the litterbox of the cat. (Have a button which I press when it got replaced, show the time on the dashboard - 8 days ago).
Also it is a great tool to create an event for every power outage. U could see visually when and how long the blackout lasted (yep I have ups in every critical infra so can create events on those periods too ), or we where away from the house.
I know I can play with history stats, counters etc but this would be much more straightforward since I can build dashboard information from those and can put it out visually as a calendar.
Is there a way to create an event which is repeating for example every 9 days? In the new event pop up I have only repeat yerly, monthly, weekly and daily which is not very flexible
The service calendar.create_event is now available in 2023.2.1 which enables, in my case, an automation to populate events in a local calendar from an external data source.
How can I read the existing events from a local calendar? How can I make my automation can execute multiple times and not duplicate events?
Currently, Home Assistant doesn’t provide a native method for finding all existing events. In other words, nothing is available to tell you all of the events scheduled for today (or tomorrow or any other day in the future).
The Calendar Trigger can report the moment when a scheduled event occurs, or if you use the Calendar Trigger’s offset option, it can report in advance of the scheduled event (example: 4 hours in advance).
There’s a custom integration that finds all scheduled events but I don’t recall its name (and I have no experience with it). Maybe someone who uses it can post its name and explain its features.
Sure: in a scheduled automation, with an external data source I want to sync the local calendar with, I cannot make the assumption my automation will successfully execute exactly-once for each event: I need to get events from the calendar to verify if I already added the event and, eventually, delete it.