For discussion and more information, visit the Hubitat Community [RELEASE] Google Calendar, Task, and Reminder Search.
The steps below are very important but please note that your existing setup should still continue to work however you will not be able to create new or update existing Search triggers until you do.
-
Login to the Google Cloud Console: https://console.cloud.google.com
-
In the upper left corner click the "hamburger icon" to open the left navigation, click APIs & Services, and click Credentials
-
At the top, click + Create Credentials and choose OAuth client ID
-
Set Application type to Web application, set a Name, set Authorized redirect URIs to https://cloud.hubitat.com/oauth/stateredirect
-
Click Create
-
In the OAuth client created popup, copy the Client ID and Client Secret into your favorite text editor to use in the GCal Search HE app and click OK
-
The old "TV and Limited Input/Desktop app" OAuth credential is no longer needed and you should remove it by clicking the trash can at the far right.
-
Optional: This new version extends the search capabilities to Google Tasks and Google Reminders. If you wish to search Tasks you will need to enable access to the Tasks API (Reminders uses an unofficial API that doesn't need entitlement in the Console).
-
In the top blue search, enter 'tasks api' and choose Tasks API under Marketplace
-
Click Enable
-
Be sure you have your Client ID and Client Secret handy to continue setup within your HE hub. If you ever need to get them again, you can navigate to APIs & Services and then Credentials to view your OAuth credentials. Clicking the Pencil icon will expose your Client ID and Client Secret.
Note: Google Calendar Search is available via Hubitat Package Manager (HPM). If you originally installed via HPM, skip to Step 4 below.
- Back up your hub and save a local copy before proceeding.
- Navigate to Apps Code and update both GCal Search and GCal Search Trigger apps with the new code.
- GCal Search - Important: This app requires you to enable OAuth. Import URL is: https://raw.githubusercontent.com/HubitatCommunity/Google_Calendar_Search/main/Apps/GCal_Search.groovy
- GCal Search Trigger - Import URL is: https://github.com/HubitatCommunity/Google_Calendar_Search/blob/main/Apps/GCal_Search_Trigger.groovy
- Navigate to Drivers Code and update the GCal Switch driver with the new code.
- GCal Switch - Import URL is: https://raw.githubusercontent.com/HubitatCommunity/Google_Calendar_Search/main/Driver/GCal_Switch.groovy
- Navigate to Apps and open the GCal Search parent app.
- Click Google API Authorization
- Click Reset Google Authentication
- Enter the Client ID and Secret copied from Step 6 above
- Click Authenticate GCal Search
- Follow the prompts in the popup.
- When prompted that Google hasn't verified this app, click Advanced
- In the bottle left click Go to hubitat.com/Hubitat Calendar (or whatever you named your project)
- Choose which Google Apps to entitle access. This needs to match which APIs you enabled access in the Console (except Reminders). Click Continue
- Follow the instructions on the final page and close the popup window.
- Assuming a successful Google Authentication, a message will appear in HE letting you know and to click Next to continue setup.
- Click Next
- All existing GCal Search Triggers will be upgraded with the new settings and no additional action is required.
- If you wish to setup new Google Task or Google Reminder searches, click New Search... and follow the instructions.
- If you have any questions or issues, please post them in the [RELEASE] Google Calendar, Task, and Reminder Search community thread.