Site updated at 2017-10-28 16:58:48 UTC

This commit is contained in:
Travis CI 2017-10-28 16:58:48 +00:00
parent 30dedaecc3
commit d21747fdb6
26 changed files with 148 additions and 161 deletions

View file

@ -4,7 +4,7 @@
<title><![CDATA[Home Assistant]]></title> <title><![CDATA[Home Assistant]]></title>
<link href="https://home-assistant.io/atom.xml" rel="self"/> <link href="https://home-assistant.io/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Announcements | Home Assistant]]></title> <title><![CDATA[Category: Announcements | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/announcements/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/announcements/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Community | Home Assistant]]></title> <title><![CDATA[Category: Community | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title> <title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title> <title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: How-To | Home Assistant]]></title> <title><![CDATA[Category: How-To | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: iBeacons | Home Assistant]]></title> <title><![CDATA[Category: iBeacons | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title> <title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: IoT-Data | Home Assistant]]></title> <title><![CDATA[Category: IoT-Data | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Media | Home Assistant]]></title> <title><![CDATA[Category: Media | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/media/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/media/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Merchandise | Home Assistant]]></title> <title><![CDATA[Category: Merchandise | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/merchandise/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/merchandise/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Micropython | Home Assistant]]></title> <title><![CDATA[Category: Micropython | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: MQTT | Home Assistant]]></title> <title><![CDATA[Category: MQTT | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Organisation | Home Assistant]]></title> <title><![CDATA[Category: Organisation | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title> <title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title> <title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title> <title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title> <title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Survey | Home Assistant]]></title> <title><![CDATA[Category: Survey | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Talks | Home Assistant]]></title> <title><![CDATA[Category: Talks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Technology | Home Assistant]]></title> <title><![CDATA[Category: Technology | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: User-Stories | Home Assistant]]></title> <title><![CDATA[Category: User-Stories | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Video | Home Assistant]]></title> <title><![CDATA[Category: Video | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Website | Home Assistant]]></title> <title><![CDATA[Category: Website | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-10-28T15:37:34+00:00</updated> <updated>2017-10-28T16:44:17+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -76,103 +76,90 @@
<hr class="divider"> <hr class="divider">
<h1>Google Assistant Docs</h1> <h1>Google Assistant Docs</h1>
<p>The Google Assistant component requires a bit more setup than most due to the way Google requires Assistant Apps to be set up.</p> <p>The Google Assistant component requires a bit more setup than most due to the way Google requires Assistant Apps to be set up.</p>
<h3><a class="title-link" name="configuration" href="#configuration"></a> Configuration</h3> <p class="note">
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span> To use Google Assistant your Home Assistant configuration has to be externally accessible, with a hostname and SSL certificate. If you havent already configured that you should do so before continuing.
<span class="s">google_assistant</span><span class="pi">:</span> &lt;p&gt;
<span class="s">project_id</span><span class="pi">:</span> <span class="s">someproject-2d0b8</span> ### <a class="title-link" name="configuration" href="#configuration"></a> Configuration
<span class="s">client_id</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">long URL safe random string</span><span class="pi">]</span> <code class="highlighter-rouge">yaml
<span class="s">access_token</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">a different long URL safe random string</span><span class="pi">]</span> # Example configuration.yaml entry
<span class="s">exposed_domains</span><span class="pi">:</span> google_assistant:
<span class="pi">-</span> <span class="s">switch</span> project_id: someproject-2d0b8
<span class="pi">-</span> <span class="s">light</span> client_id: [long URL safe random string]
<span class="pi">-</span> <span class="s">group</span> access_token: [a different long URL safe random string]
</code></pre> exposed_domains:
</div> - switch
<p><em>Note:</em> Its very important that you use very long strings for <code class="highlighter-rouge">client_id</code> and <code class="highlighter-rouge">access_token</code>. Those are essentially the credentials to your Home Assistant instance. You can generate them with the following command:</p> - light
<p><code class="highlighter-rouge">cat /dev/urandom|fold -w 120|head -n 1|base64 -w 0|tr -dc '0-9A-Za-z'|cut -c -80</code></p> - group
<p><em>Configuration Variables:</em></p> </code>
<ul> <em>Note:</em> Its very important that you use very long strings for <code class="highlighter-rouge">client_id</code> and <code class="highlighter-rouge">access_token</code>. Those are essentially the credentials to your Home Assistant instance. You can generate them with the following command:
<li><em>expose_by_default</em> (Optional): Expose devices in all supported domains by default.</li> <code class="highlighter-rouge">cat /dev/urandom|fold -w 120|head -n 1|base64 -w 0|tr -dc '0-9A-Za-z'|cut -c -80</code>
<li><em>project_id</em> (Required): Project ID from the Google Developer console (looks like <code class="highlighter-rouge">words-2ab12</code>)</li> <em>Configuration Variables:</em>
<li><em>client_id</em> (Required): A long random URL safe string (no spaces or special characters) that will be used for Implicit OAuth.</li> * <em>expose_by_default</em> (Optional): Expose devices in all supported domains by default.
<li><em>access_token</em> (Required): Another different long random URL safe string.</li> * <em>project_id</em> (Required): Project ID from the Google Developer console (looks like <code class="highlighter-rouge">words-2ab12</code>)
<li><em>exposed_domains</em> (Optional): An array of Home Assistant domains to expose to Google Assistant.</li> * <em>client_id</em> (Required): A long random URL safe string (no spaces or special characters) that will be used for Implicit OAuth.
</ul> * <em>access_token</em> (Required): Another different long random URL safe string.
<p>You can also customize your devices similar to other components by adding keys to entities:</p> * <em>exposed_domains</em> (Optional): An array of Home Assistant domains to expose to Google Assistant.
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">homeassistant</span><span class="pi">:</span> You can also customize your devices similar to other components by adding keys to entities:
<span class="s">customize</span><span class="pi">:</span> <code class="highlighter-rouge">yaml
<span class="s">master_bedroom_light</span><span class="pi">:</span> homeassistant:
<span class="s">google_assistant</span><span class="pi">:</span> <span class="s">true</span> customize:
<span class="s">google_assistant_name</span><span class="pi">:</span> <span class="s">bedroom light</span> master_bedroom_light:
<span class="s">bedroom_blinds</span><span class="pi">:</span> google_assistant: true
<span class="s">aliases</span><span class="pi">:</span> google_assistant_name: bedroom light
<span class="pi">-</span> <span class="s">bedroom shades</span> bedroom_blinds:
<span class="pi">-</span> <span class="s">bedroom covers</span> aliases:
</code></pre> - bedroom shades
</div> - bedroom covers
<p><em>Entity Customization Keys:</em></p> </code>
<ul> <em>Entity Customization Keys:</em>
<li><em>google_assistant</em>: True exposes entity, false will hide it</li> * <em>google_assistant</em>: True exposes entity, false will hide it
<li><em>google_assistant_name</em>: Can be used to override the primary name of an entity. By default the <code class="highlighter-rouge">friendly_name</code> of an entity is used.</li> * <em>google_assistant_name</em>: Can be used to override the primary name of an entity. By default the <code class="highlighter-rouge">friendly_name</code> of an entity is used.
<li><em>aliases</em>: Provides “nicknames” to Google Assistant. These function as alternate names for an entity that Assistant will understand when spoken.</li> * <em>aliases</em>: Provides “nicknames” to Google Assistant. These function as alternate names for an entity that Assistant will understand when spoken.
</ul> ### <a class="title-link" name="setup" href="#setup"></a> Setup
<h3><a class="title-link" name="setup" href="#setup"></a> Setup</h3> 1. Install the <a href="https://developers.google.com/actions/tools/gactions-cli">gactions CLI</a> (youll use this later) - you can download this anywhere, just remember where you put it for later (and dont forget to run <code class="highlighter-rouge">chmod +x gactions</code>)
<ol> 2. 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.
<li>Install the <a href="https://developers.google.com/actions/tools/gactions-cli">gactions CLI</a> (youll use this later) - you can download this anywhere, just remember where you put it for later (and dont forget to run <code class="highlighter-rouge">chmod +x gactions</code>)</li> Note: This must be an HTTPS URL to work.
<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. <code class="highlighter-rouge">json
Note: This must be an HTTPS URL to work.</li> {
</ol> "actions": [{
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w"> "name": "actions.devices",
</span><span class="nt">"actions"</span><span class="p">:</span><span class="w"> </span><span class="p">[{</span><span class="w"> "deviceControl": {
</span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"actions.devices"</span><span class="p">,</span><span class="w"> },
</span><span class="nt">"deviceControl"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> "fulfillment": {
</span><span class="p">},</span><span class="w"> "conversationName": "automation"
</span><span class="nt">"fulfillment"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> }
</span><span class="nt">"conversationName"</span><span class="p">:</span><span class="w"> </span><span class="s2">"automation"</span><span class="w"> }],
</span><span class="p">}</span><span class="w"> "conversations": {
</span><span class="p">}],</span><span class="w"> "automation" :
</span><span class="nt">"conversations"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> {
</span><span class="nt">"automation"</span><span class="w"> </span><span class="p">:</span><span class="w"> "name": "automation",
</span><span class="p">{</span><span class="w"> "url": "https://[YOUR HOME ASSISTANT URL]/api/google_assistant"
</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="p">}</span><span class="w"> }
</span><span class="p">}</span><span class="w"> </code>
</span><span class="p">}</span><span class="w"> 3. Create a new project in the <a href="https://console.actions.google.com/">developer console</a>.
</span></code></pre> 1. Add/Import project
</div> 2. Go to Build under the Actions SDK box
<ol> 3. Copy the command that looks like:
<li>Create a new project in the <a href="https://console.actions.google.com/">developer console</a>. <code class="highlighter-rouge">gactions update --action_package PACKAGE_NAME --project doctest-2d0b8</code>
<ol> 4. Replace <code class="highlighter-rouge">PACKAGE_NAME</code> with <code class="highlighter-rouge">project.json</code> and run that command from the same directory you saved <code class="highlighter-rouge">project.json</code> in (youll need to put <code class="highlighter-rouge">./</code> before <code class="highlighter-rouge">gactions</code> so that it reads <code class="highlighter-rouge">./gactions</code>). It should output a URL like <code class="highlighter-rouge">https://console.actions.google.com/project/doctest-2d0b8/overview</code> - go there.
<li>Add/Import project</li> 5. Youll need to fill out most of the information on that page, but none of it really matters since you wont be addressing the App directly, only through the Smart Home functionality built into Google Assistant.
<li>Go to Build under the Actions SDK box</li> 6. The final item on that page <code class="highlighter-rouge">Account linking</code> is required for your app to interact with Home Assistant.
<li>Copy the command that looks like: 1. Grant type: <code class="highlighter-rouge">Implicit</code>
<code class="highlighter-rouge">gactions update --action_package PACKAGE_NAME --project doctest-2d0b8</code></li> 2. Client ID: Should be the same as <code class="highlighter-rouge">client_id</code> from your hass config above
</ol> 3. Authorization URL (replace with your actual URL): <code class="highlighter-rouge">https://[YOUR HOME ASSISTANT URL]/api/google_assistant/auth</code>
</li> 4. Configure your client. Add scopes for <code class="highlighter-rouge">email</code> and <code class="highlighter-rouge">name</code>
<li>Replace <code class="highlighter-rouge">PACKAGE_NAME</code> with <code class="highlighter-rouge">project.json</code> and run that command from the same directory you saved <code class="highlighter-rouge">project.json</code> in (youll need to put <code class="highlighter-rouge">./</code> before <code class="highlighter-rouge">gactions</code> so that it reads <code class="highlighter-rouge">./gactions</code>). It should output a URL like <code class="highlighter-rouge">https://console.actions.google.com/project/doctest-2d0b8/overview</code> - go there.</li> 5. Testing instructions: doesnt matter since you wont submit this app
<li>Youll need to fill out most of the information on that page, but none of it really matters since you wont be addressing the App directly, only through the Smart Home functionality built into Google Assistant.</li> 7. Back on the main app draft page. Click <code class="highlighter-rouge">Test Draft</code>. That will take you to the simulator (which wont work) so just close that window.
<li>The final item on that page <code class="highlighter-rouge">Account linking</code> is required for your app to interact with Home Assistant. 8. Open the Google Assistant app and go into <code class="highlighter-rouge">Settings &gt; Home Control</code>
<ol> 9. Click the <code class="highlighter-rouge">+</code> sign, and near the bottom, you should have <code class="highlighter-rouge">[test] your app name</code>. Selecting that should lead to you the screen where you can set rooms for your devices or nicknames for your devices.
<li>Grant type: <code class="highlighter-rouge">Implicit</code></li> 10. If you want to allow other houshold users to control the devices:
<li>Client ID: Should be the same as <code class="highlighter-rouge">client_id</code> from your hass config above</li> 1. Go to the developer console using address from point 4.
<li>Authorization URL (replace with your actual URL): <code class="highlighter-rouge">https://[YOUR HOME ASSISTANT URL]/api/google_assistant/auth</code></li> 2. Under the gear icon, click <code class="highlighter-rouge">Permissions</code>
<li>Configure your client. Add scopes for <code class="highlighter-rouge">email</code> and <code class="highlighter-rouge">name</code></li> 3. Click <code class="highlighter-rouge">Add</code>, type the new users e-mail address and choose <code class="highlighter-rouge">Project -&gt; Editor</code> role
<li>Testing instructions: doesnt matter since you wont submit this app</li> 4. Have the new user go to <a href="https://console.actions.google.com/">developer console</a> and repeat steps starting from point 7.
</ol> </p>
</li>
<li>Back on the main app draft page. Click <code class="highlighter-rouge">Test Draft</code>. That will take you to the simulator (which wont work) so just close that window.</li>
<li>Open the Google Assistant app and go into <code class="highlighter-rouge">Settings &gt; Home Control</code></li>
<li>Click the <code class="highlighter-rouge">+</code> sign, and near the bottom, you should have <code class="highlighter-rouge">[test] your app name</code>. Selecting that should lead to you the screen where you can set rooms for your devices or nicknames for your devices.</li>
<li>If you want to allow other houshold users to control the devices:
<ol>
<li>Go to the developer console using address from point 4.</li>
<li>Under the gear icon, click <code class="highlighter-rouge">Permissions</code></li>
<li>Click <code class="highlighter-rouge">Add</code>, type the new users e-mail address and choose <code class="highlighter-rouge">Project -&gt; Editor</code> role</li>
<li>Have the new user go to <a href="https://console.actions.google.com/">developer console</a> and repeat steps starting from point 7.</li>
</ol>
</li>
</ol>
</article> </article>
</div> </div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole"> <aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">

View file

@ -3542,7 +3542,7 @@
</url> </url>
<url> <url>
<loc>https://home-assistant.io/components/switch.hook/</loc> <loc>https://home-assistant.io/components/switch.hook/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/cookbook/automation_for_rainy_days/</loc> <loc>https://home-assistant.io/cookbook/automation_for_rainy_days/</loc>
@ -4210,99 +4210,99 @@
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/autostart/init.d/</loc> <loc>https://home-assistant.io/docs/autostart/init.d/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/api/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/api/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/configuration/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/configuration/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/installation/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/installation/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/operation/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/operation/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/reboot/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/reboot/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/running/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/running/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/updating/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/updating/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/windows/</loc> <loc>https://home-assistant.io/docs/ecosystem/appdaemon/windows/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/certificates/</loc> <loc>https://home-assistant.io/docs/ecosystem/certificates/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/hadashboard/</loc> <loc>https://home-assistant.io/docs/ecosystem/hadashboard/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/hass-configurator/</loc> <loc>https://home-assistant.io/docs/ecosystem/hass-configurator/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/ios/</loc> <loc>https://home-assistant.io/docs/ecosystem/ios/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/nginx/</loc> <loc>https://home-assistant.io/docs/ecosystem/nginx/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/notebooks/</loc> <loc>https://home-assistant.io/docs/ecosystem/notebooks/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/scenegen/</loc> <loc>https://home-assistant.io/docs/ecosystem/scenegen/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/ecosystem/synology/</loc> <loc>https://home-assistant.io/docs/ecosystem/synology/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/tools/</loc> <loc>https://home-assistant.io/docs/tools/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/tools/dev-tools/</loc> <loc>https://home-assistant.io/docs/tools/dev-tools/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/tools/hass/</loc> <loc>https://home-assistant.io/docs/tools/hass/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/docs/tools/scripts/</loc> <loc>https://home-assistant.io/docs/tools/scripts/</loc>
<lastmod>2017-10-28T15:37:34+00:00</lastmod> <lastmod>2017-10-28T16:44:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/faq/after-upgrading/</loc> <loc>https://home-assistant.io/faq/after-upgrading/</loc>
@ -5380,62 +5380,62 @@
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/frontend.html</loc> <loc>https://home-assistant.io/demo/frontend.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/index.html</loc> <loc>https://home-assistant.io/demo/index.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-event.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-event.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-info.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-info.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-service.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-service.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-state.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-state.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-template.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-template.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-history.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-history.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-iframe.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-iframe.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-logbook.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-logbook.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-map.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-map.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc> <loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
<lastmod>2017-10-28T15:36:55+00:00</lastmod> <lastmod>2017-10-28T16:43:26+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc> <loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc>
<lastmod>2017-10-28T15:36:56+00:00</lastmod> <lastmod>2017-10-28T16:43:27+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc> <loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc>
<lastmod>2017-10-28T15:36:56+00:00</lastmod> <lastmod>2017-10-28T16:43:27+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/static/mdi-demo.html</loc> <loc>https://home-assistant.io/static/mdi-demo.html</loc>
<lastmod>2017-10-28T15:36:56+00:00</lastmod> <lastmod>2017-10-28T16:43:27+00:00</lastmod>
</url> </url>
</urlset> </urlset>