From 433b8843564e5b501e96a5b25fa6f4942b714e85 Mon Sep 17 00:00:00 2001 From: DubhAd Date: Sun, 22 Oct 2017 20:10:08 +0100 Subject: [PATCH] Added a note for how to generate keys (#3718) Added a line on randomly generating the client_id and access_id strings. Not sure if there's a better way? --- source/_components/google_assistant.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/_components/google_assistant.markdown b/source/_components/google_assistant.markdown index 583466f4129..040c76c7821 100644 --- a/source/_components/google_assistant.markdown +++ b/source/_components/google_assistant.markdown @@ -30,7 +30,9 @@ google_assistant: - group ``` -*Note:* It's very important that you use very long strings for `client_id` and `access_token`. Those are essentially the credentials to your Home Assistant instance. +*Note:* It's very important that you use very long strings for `client_id` and `access_token`. Those are essentially the credentials to your Home Assistant instance. You can generate them with the following command: + +`cat /dev/urandom|fold -w 120|head -n 1|base64 -w 0|tr -dc '0-9A-Za-z'|cut -c -80` *Configuration Variables:* * *expose_by_default* (Optional): Expose devices in all supported domains by default.