Look I’m new to this. Just a few questions as I’m getting an error - permission denied when I enter the code after executing gactions - I go to the URL and get the code but it gives a permission denied when I enter it.
I also re-booted mt HA after entering the info in config file and it would not restart.
A few places where I need clarification and I might be screwing up.
-
configuration.yaml
The client_id and access_token are shown withing [] - are the square brackets needed or is it just the long URL that should be entered?
I did use the [] and the config validated but when I restarted HA it just didn’t start. I also rebooted my Pi and it didn’t start. As soon as I removed the added section it started.
Also my project ID is not in the format of someproject-2d0b8 - when I went to the developer console and selected add/import project it did not give me a project name but merely prompted for me to enter a name which I did. I also set it to Australia instead of the United States - is this a possible problem? -
I am assuming the customize code homeassistant: is optional and not needed to make it work?
-
in project.json, I assume the URL would be something like https://myduckdns.duckdns.org>8123/api/google_assistant
Now I am assuming that the URL has to be enclosed in “” as it’s a JSON file and that seems to be the syntax? I also am not sure as in one of the other threads, I see the google_assistant part of the URL is followed by /apps Is this needed??? If so it’s not included in the configuration doc at https://home-assistant.io/components/google_assistant/ -
WHen I ran the gactions, the URL it spit out looked nothing like https://console.actions.google.com/project/doctest-2d0b8/overview
My URL was actually like: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=xxxxxxxxxxx-xxxxxxx.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Factions.builder&state=state
Now I am wondering if I should have run it from the virtual environment? I had to use sudo chmod to make gactions executable so I’m just not sure if I should have switched to the virtual environment before I downloaded gaactions and created project.json? Going to the URL did ask me to authorize my google account which I did and I got a code to enter into putty but that is where I got the permission denied error.
That’s as far as I got.
I should probably add I’m using the Raspberry Pi all-in-one using stretch and a raspberry pi series 2.
Any advice?