I have O-365 integration for my work calendar and Google Calendar Integration for my family calendar.
I would like to grab all the events for the upcoming X days from the O-365 calendar spin through them and if they meet a requirement check the Google calendar for the matching event, and if there create it.
Also the reverse but delete from the Google Calendar if it’s not in the O-365.
I plan on prefixing the Google Calendar with Work - … and that would be my way to know if it exists in the work calendar so it handles deletes.
Not really even sure where to start with this (Google wasn’t any help) and any pointers would be helpful
Sorry for late reply, so much on my HA backlog. Finally saw this yesterday, the initial 10 minute testing shows it works great and is a great start for what I need.
I will be ripping it apart and customizing it to my needs as I need to take a work event that contains word X and translate it to word Y when putting it into my personal calendar.
I may work on that too. I’ve thought about doing what you mentioned. I mean my idea was to replace the word with a blank because the calendar owner may not need their name in the event title. But replacing with a different string is basically the same thing—from a code perspective. I’ll try to remember to ping her if I get that done.
is “word X” a keyword that is used to search event titles? Or are you just copying all events from your work calendar, then you want to replace all occurrences of word X with word Y?
I added a trigger to have it run once an hour, /1, what I’m noticing is that an event I moved on the source calendar isn’t reflecting the change on the destination calendar. The source calendar in HA is showing the updated start time, so I know the data has been refreshed.
I need a generic entry in our family (dest) calendar so my wife knows when I’ll be at the office or have a Deployment at night.
So for in office I have the 3 following criteria I need to implement
I will look for a subject with Retro in it, from a specific person
Location includes words “Conference room”
Location is the local collage for our quarterly dept. meetings.
Result will be an entry in the calendar for the times of the work events with a subject of “ThisBytes5 At Office”
For Deployments, I will look for the word Deployment, end result will be an entry in calendar with the word Deployment for the subject. I sort of do this now, but it just pushes alarms to my phone for 30, 15, 10, 5 mins before the meeting starts, so I don’t sleep through it, but this does the check 45mins before the meeting.
I will sync 2 weeks (to start, she likes to plan way ahead so it could be more) at a time, every night at midnight once I get all of this working.
My hope is that as I add/delete/update the source it does the same to the dest.
Have to keep the wife happy! @N1c093 this was meant for you
Did it create another event with the correct time? Can you go to developer tools > actions > family_calendar_sync just to make sure it ran?
also make sure you’re up-to-date. I pushed a regex fix yesterday I think. It was causing duplicates if the event had a description before my hash was added to it.
No it did not create a new event in the dest, dest still has the 12pm instead of the 11:30.
and by family_calendar_sync, is that supposed to be the name of the automation, blueprint, or something else? I don’t have anything with that name in the list.
Purple (1130) is source, blue (noon) is Dest
Here is the last trace, you can see that it ran just before I replied:
Also I have manually clicked run actions just to verify that it is actually running, it does pick up new events for tomorrow (current sync is 1 day) so I know it’s working.
The thing I made is an integration that has to be installed through hacs. There is no blueprint. There’s only a service called “family_calendar_sync” that is ran to do the syncing. see here
I had to create this as a custom integration because you cannot delete calendar events using the HA interface (i.e. there is no service to call to delete calendar events). The other person made a blueprint. So perhaps that’s why the event isn’t getting updated.
Doesn’t look like this will work for me right now, it appears there isn’t a way for me to change the title, look at location or even title outside of the keywords.
As described above, I need to be able to put them in the personal calendar in a way my wife will understand the events, but also without exposing anything from work that shouldn’t be exposed.
I will keep an eye on it as time goes, let me know if there’s updates as I’d be happy to test it for you.