Steps to set this up...
- Create a Google Project - https://console.developers.google.com
- Give it any name
- Enable the Calendar API - https://console.developers.google.com/apis/library
- Setup new credentials - https://console.developers.google.com/apis/credentials
- Enable OAuth with a redirect URI of:
https://graph.api.smartthings.com/oauth/callback
- Copy the Client ID and Client Secret, you will need these later
- Install the 2 SmartApps "GCal Search" and "GCal Search Trigger"
- https://graph.api.smartthings.com/ide/app/create
- Enable OAuth for "GCal Search"
- Put the ClientID and Client Secret you copied from Step 1 into the Settings for "GCal Search"
- Publish the Apps
- Install and Publish the Device Type
Open the ST app on your phone and install the "GCal Search" app. This will walk you through connecting to Google and selecting a calendar and search terms. You can create multiple connections, the app will create Contact Sensors that are Open when the event starts and close when the event ends.