Integrate Google Calendar with Home Assistant

Generate a Client ID and Client Secret on Google Developers Console

  • Select Create a project and click Continue.
  • Click Go to credentials.
  • Click Cancel.
  • Navigate to Credential menu on the APIs and services on the left hand side bar.
  • Click on the CONFIGURE CONSENT SCREEN.
  • On the OAuth consent screen, select External and click Create.
  • On the OAuth consent tab: App information section, set the App name (for example Home-Assistant-GCal) and set the support email by click drop down and select your email address.
  • On the OAuth consent tab: Developer contact information section, set your email address. Click Save and Continue.
  • On the Scopes tab, you don’t need to fill in anything, just click Save and Continue.
  • On Test users tab, click Add Users.
  • You will need to add the Gmail address you will be using with this integration as a test user before you will be allowed to use the API. Add the user’s email address and click Add.
  • Once you have added, click Save and Continue.
  • It then comes to the Summary tab. You don’t need to do anything on this tab.
  • Go back to the APIs and services menu on the left hand side, select Credentials and select Create Credentials.
  • Select OAuth client ID.
  • Select TVs and Limited Input devices.
  • Set a name, for example Home Assistant Gcal Credentials, then click Create.
  • Take note the Client ID and Client Secret. We will be using this information and update the configuration.yaml later in Home Assistant.
  • The last here, is to ensure the Google Calendar API is enabled. Select Library and search for Google Calendar API and check if the API is enable or not. If not, enable it. We are done with generating a Client ID and Client Secret on Google Developers Console for Google Calendar.

Home Assistant Configuration

# Example configuration.yaml entry 
google:
client_id: YOUR_CLIENT_ID
client_secret: YOUR_CLIENT_SECRET

Reference

--

--

--

https://www.linkedin.com/in/ferrydjaja/

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Fastest way to setup your Wordpress blog

Running Chaos Monkey on Spinnaker/Google Compute Engine (GCE)

Run a local Kafka server on Linux

Yubl’s road to Serverless — Part 5, Building better recommendations with Lambda, BigQuery and…

Control your network with Evil Limiter

Bodacious world of Numpy

Introduction to ChatOps. Why ChatOps are good ?

Else Clauses on Loops

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ferry Djaja

Ferry Djaja

https://www.linkedin.com/in/ferrydjaja/

More from Medium

Hoppscotch is celebrating 35,000 GitHub Stars

How to optimize downtime management with Meta API?

Google Authentication using Hasura Backend Plus

Schedule Slack message from Google Sheet