Site updated at 2018-02-19 09:02:51 UTC
This commit is contained in:
parent
8acd7d9dec
commit
14cc256d1d
26 changed files with 77 additions and 77 deletions
|
@ -190,8 +190,8 @@ To use Google Assistant, your Home Assistant configuration has to be externally
|
|||
<h3><a class="title-link" name="setup" href="#setup"></a> Setup</h3>
|
||||
<ol>
|
||||
<li>Download the <a href="https://developers.google.com/actions/tools/gactions-cli">gactions CLI</a> to be used later. You can download and run this anywhere and on any machine. Just remember where you put it for later and don’t forget to run <code class="highlighter-rouge">chmod +x gactions</code> to make it executable on Mac or Linux.</li>
|
||||
<li>Create a new file named <code class="highlighter-rouge">project.json</code> (in the same directory you downloaded <code class="highlighter-rouge">gactions</code> to) and replace the <code class="highlighter-rouge">[YOUR HOME ASSISTANT URL]</code> below with the URL you use to access Home Assistant.
|
||||
Note: This must be an HTTPS URL to work.</li>
|
||||
<li>Create a new file named <code class="highlighter-rouge">project.json</code> (in the same directory you downloaded <code class="highlighter-rouge">gactions</code> to) and replace the <code class="highlighter-rouge">[YOUR HOME ASSISTANT URL:PORT]</code> below with the URL you use to access Home Assistant.
|
||||
Note: This must be an HTTPS URL to work. Don’t forget to include the port number if you’re not using port 443.</li>
|
||||
</ol>
|
||||
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">
|
||||
</span><span class="nt">"actions"</span><span class="p">:</span><span class="w"> </span><span class="p">[{</span><span class="w">
|
||||
|
@ -206,7 +206,7 @@ Note: This must be an HTTPS URL to work.</li>
|
|||
</span><span class="nt">"automation"</span><span class="p">:</span><span class="w">
|
||||
</span><span class="p">{</span><span class="w">
|
||||
</span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"automation"</span><span class="p">,</span><span class="w">
|
||||
</span><span class="nt">"url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://[YOUR HOME ASSISTANT URL]/api/google_assistant"</span><span class="w">
|
||||
</span><span class="nt">"url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://[YOUR HOME ASSISTANT URL:PORT]/api/google_assistant"</span><span class="w">
|
||||
</span><span class="p">}</span><span class="w">
|
||||
</span><span class="p">}</span><span class="w">
|
||||
</span><span class="p">}</span><span class="w">
|
||||
|
@ -257,10 +257,10 @@ Note: This must be an HTTPS URL to work.</li>
|
|||
<p>The request_sync service may fail with a 404 if the project_id of the Homegraph API differs from the project_id of the Actions SDK found in the preferences of your project on <a href="https://console.actions.google.com">developer console</a>. Resolve this by:</p>
|
||||
<ol>
|
||||
<li>Removing your project from the <a href="https://console.actions.google.com">developer console</a>.</li>
|
||||
<li>Add a new project to the <a href="https://console.cloud.google.com">cloud console</a>. Here you get a new project_id.</li>
|
||||
<li>Add a new project to the <a href="https://console.cloud.google.com">cloud console</a>. Here you get a new <code class="highlighter-rouge">project_id</code>.</li>
|
||||
<li>Enable Homegraph API to the new project.</li>
|
||||
<li>Generate a new API key.</li>
|
||||
<li>Again, create a new project in the <a href="https://console.actions.google.com/">developer console</a>. Described above. But at the step ‘Build under the Actions SDK box’ choose your newly created project. By this, they share the same project_id.</li>
|
||||
<li>Again, create a new project in the <a href="https://console.actions.google.com/">developer console</a>. Described above. But at the step ‘Build under the Actions SDK box’ choose your newly created project. By this, they share the same <code class="highlighter-rouge">project_id</code>.</li>
|
||||
</ol>
|
||||
</article>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue