How to access the start time from google calendar to get time offset

I am trying to get HA to TTS all events from my google calendar 15 min before the start time. I know that the google calendar components can have a offset time if the event name is renamed which is not practical for my use. I have created a sensor for the start time and want to get an automation to start 15 min before. The sensor format is below. I thought maybe a python application to convert to a format HA can use or perhaps with appdaemon which I haven’t explored yet. Has anyone have idea’s or has done this?

2017-03-03 14:00:00

I actually just ran into the same need earlier today. I added a “default_offset”: “HH:MM” per calendar option in a branch here, if you are interested: https://github.com/alanfischer/home-assistant/tree/calendar_offset

Thanks, exactly what I am looking for. I copied the the two file from your branch

homeassistant/components/google.py
home-assistant/homeassistant/components/calendar/init.py

and put them in

/Users/hassuser/.homeassistant/custom_components

and I tried

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components

on my mac, and put this in my configuration.yaml

google:
  client_id: !secret client_id
  client_secret: !secret client_secret
  default_offset: 15

but I get this error. I haven’t done this before so any help would be appreciated.

17-03-03 08:23:02 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [google]: [default_offset] is an invalid option for [google]. Check: google->google->default_offset.

I removed the default_offset: 15 from the configuration and now it give default_offset: false on the sensor data even after the event start time. How do I set the default_offset time?

message           test
start time        2017-03-03 09:00:00
description    
location
all day           false
offset reached    false
end time          2017-03-03 10:00:00

Add the default_offset to one of the calendars in your “google_calendar.yaml” file. Thats the file that should be generated by hass after you authenticate with google.

Got it working by adding below as you advised. Thanks

default_offset: -00:15

where can i find the branch ? the link is invalid

I deleted the branch. It was no longer up to date, and the pull-request was not accepted (https://github.com/home-assistant/home-assistant/pull/6476)

At some point I hope to get the calendar automation trigger in the proper way.