Skip to content

Authentication Options

Felipe Castillo edited this page Jan 15, 2024 · 2 revisions

It is recommended to log in with an app password as it can be easily revoked if it becomes compromised. That being said, some accounts have issues logging in with passwords (both the regular password and app passwords) depending on which device you are attempting to get a token from. A workaround that seems to work for these "problematic" accounts is to create a docker container and run a script to get the token, which we can then pass into this integration. Although this is the least secure by far (master tokens never expire), it should allow any Google account to use this integration.

Steps to acquire a master token: (only do this if username and password are NOT working)

  1. Install the docker container if you do not already have it
  2. In your preferred CLI run the following commands
$ docker pull breph/ha-google-home_get-token:latest
$ docker run -it -d breph/ha-google-home_get-token
# use the returned container ID inside the next command
$ docker exec -it <ID> bash

# inside container
root@<id>:/# python3 get_tokens.py`
  1. From the printed output you should get the master token for the account you entered, it will start with: aas_et/. Copy the whole token without any additional spaces into the master token field when setting up a new service in the integration UI.
Clone this wiki locally