With the news that Google Calendar Yaml is been depreciated in 2022.9. I cant see a way to do the search feature which is in the yaml code eg for the next event with “Birthday” in the Title or “Rugby Training”
I can create events in Integration/HA but the whole point of the search is that it automatically tells you the next event.
If anyone can help on how to do this, it would be appreciated.
Is this in release note somewhere, can you post a link as I have a lot of google calendars and this is worrying me now
The Documentation still states
The integration supports additional configuration from a file google_calendars.yaml which is available for existing users before version 2022.06 . This file is no longer automatically populated.
You can search without the Google calendars yaml, but you need to use automations. See the calendar integration eocs for examples of automations. A binary sensors template is the current simplest way.
The example Example: Calendar Event Light Schedule shows how to match text.
You can set offset in automations as shown in the example Calendar - Home Assistant – but no, you can’t read the offset value from the calendar item. The issue is that reading the offset value from the calendar item is buggy and error prone and it kind of works in some cases, but has too many caveats.
I was using the Google Calendar integration to control the heating in multiple rooms with one calendar - I have a calendar called Heating and in there the events are called Lounge 19, Kitchen 18 etc. with the room and temperature required in the event name.
There are then template entities which calculate when to activate the radiator valves in each room based on the start time of the event and the current temperature difference, so that the rooms are at the right temperature at the time the event starts.
Each room had an entity in google_calendars.yaml which created a pseudo-calendar for the room using the search attribute and the templates used the next event for the room to determine the required temperature/valve activation time. Now that it’s not possible to create these pseudo-calendars based on search terms and given that there can be two calendar events running at the same time in the Heating calendar (say, Kitchen 18 and Office 19) I can’t do this any more.
Is the current solution to this use-case to create new calendars for each room?
You can create a new calendar within your main Google calendar on left hand side. This can only be done on a PC/laptop.
I created about 5 or 6 additional calendars and named 1 School Holidays and then moved the events by double clicking on them and changing which calendar it should appear in from the drop-down menu. There is an option to create calendar
Remember to remove all your sub searching calendars you created in yaml in google-calendars.yaml
Reboot and the google-calendars.yaml adds all new calendars in there and also in home assistant.
It seems it just does next event and the search feature is gone now.
Is this from 2022.11? It’s a bug fixed in a patch release. The intent is the functionality should all still be there, though I am trying to kill the feature and replace it with one that works for all calendar integrations. (When I do manage to break it, you will have a UI prompt and more deprecation notice)
The plan will likely be to remove usage of yaml, and provide similar functionality via UI that works for any calendar integration, and keep parity with what you can do today.
Thanks for the context., That Matches my understanding of the feature parity needed before.we can drop yaml. The current replacement you can do is make template sensors.thsr give you equivalent binary sensors functionality but it’s too hard to set up manually, so looking for a way to do this in the UI (e.f. a calendar event helper)