Site updated at 2015-03-01 19:49:26 UTC
This commit is contained in:
parent
d05d46a3a6
commit
cb5ecf5a6b
42 changed files with 664 additions and 273 deletions
|
@ -112,19 +112,19 @@
|
|||
<span class='line-number'>11</span>
|
||||
<span class='line-number'>12</span>
|
||||
<span class='line-number'>13</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[automation]
|
||||
</span><span class='line'># Optional alias that the logs will use to refer to the entry
|
||||
</span><span class='line'>alias=Sunset notification
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>automation:
|
||||
</span><span class='line'> # Optional alias that the logs will use to refer to the entry
|
||||
</span><span class='line'> alias: Sunset notification
|
||||
</span><span class='line'>
|
||||
</span><span class='line'># Type of trigger and informatino for the trigger
|
||||
</span><span class='line'>platform=state
|
||||
</span><span class='line'>state_entity_id=sun.sun
|
||||
</span><span class='line'>state_from=above_horizon
|
||||
</span><span class='line'>state_to=below_horizon
|
||||
</span><span class='line'> # Type of trigger and informatino for the trigger
|
||||
</span><span class='line'> platform: state
|
||||
</span><span class='line'> state_entity_id: sun.sun
|
||||
</span><span class='line'> state_from: above_horizon
|
||||
</span><span class='line'> state_to: below_horizon
|
||||
</span><span class='line'>
|
||||
</span><span class='line'># Action to be done when trigger activated
|
||||
</span><span class='line'>execute_service=notify.notify
|
||||
</span><span class='line'>service_data={"message":"The sun has set"}</span></code></pre></td></tr></table></div></figure>
|
||||
</span><span class='line'> # Action to be done when trigger activated
|
||||
</span><span class='line'> execute_service: notify.notify
|
||||
</span><span class='line'> service_data: {"message":"The sun has set"}</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h2>Setting up triggers</h2>
|
||||
|
@ -145,17 +145,16 @@
|
|||
<span class='line-number'>8</span>
|
||||
<span class='line-number'>9</span>
|
||||
<span class='line-number'>10</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'># Match at the start of every hour
|
||||
</span><span class='line'>platform=time
|
||||
</span><span class='line'>time_minutes=0
|
||||
</span><span class='line'>time_seconds=0
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'> # Match at the start of every hour
|
||||
</span><span class='line'> platform: time
|
||||
</span><span class='line'> time_minutes: 0
|
||||
</span><span class='line'> time_seconds: 0
|
||||
</span><span class='line'>
|
||||
</span><span class='line'># Match at 4pm
|
||||
</span><span class='line'>platform=time
|
||||
</span><span class='line'>time_hours=16
|
||||
</span><span class='line'>time_minutes=0
|
||||
</span><span class='line'>time_seconds=0
|
||||
</span></code></pre></td></tr></table></div></figure>
|
||||
</span><span class='line'> # Match at 4pm
|
||||
</span><span class='line'> platform: time
|
||||
</span><span class='line'> time_hours: 16
|
||||
</span><span class='line'> time_minutes: 0
|
||||
</span><span class='line'> time_seconds: 0</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h4>State-based automation</h4>
|
||||
|
@ -180,22 +179,22 @@
|
|||
<span class='line-number'>16</span>
|
||||
<span class='line-number'>17</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'># Match when the sun sets
|
||||
</span><span class='line'>platform=state
|
||||
</span><span class='line'>state_entity_id=sun.sun
|
||||
</span><span class='line'>state_from=above_horizon
|
||||
</span><span class='line'>state_to=below_horizon
|
||||
</span><span class='line'> platform: state
|
||||
</span><span class='line'> state_entity_id: sun.sun
|
||||
</span><span class='line'> state_from: above_horizon
|
||||
</span><span class='line'> state_to: below_horizon
|
||||
</span><span class='line'>
|
||||
</span><span class='line'># Match when a person comes home
|
||||
</span><span class='line'>platform=state
|
||||
</span><span class='line'>state_entity_id=device_tracker.Paulus_OnePlus_One
|
||||
</span><span class='line'>state_from=not_home
|
||||
</span><span class='line'>state_to=home
|
||||
</span><span class='line'> # Match when a person comes home
|
||||
</span><span class='line'> platform: state
|
||||
</span><span class='line'> state_entity_id: device_tracker.Paulus_OnePlus_One
|
||||
</span><span class='line'> state_from: not_home
|
||||
</span><span class='line'> state_to: home
|
||||
</span><span class='line'>
|
||||
</span><span class='line'># Match when a light turns on
|
||||
</span><span class='line'>platform=state
|
||||
</span><span class='line'>state_entity_id=light.Ceiling
|
||||
</span><span class='line'>state_from=off
|
||||
</span><span class='line'>state_to=on</span></code></pre></td></tr></table></div></figure>
|
||||
</span><span class='line'> # Match when a light turns on
|
||||
</span><span class='line'> platform: state
|
||||
</span><span class='line'> state_entity_id: light.Ceiling
|
||||
</span><span class='line'> state_from: off
|
||||
</span><span class='line'> state_to: on</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h2>Setting up the action</h2>
|
||||
|
@ -214,23 +213,23 @@
|
|||
<span class='line-number'>10</span>
|
||||
<span class='line-number'>11</span>
|
||||
<span class='line-number'>12</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'># Turn the lights Ceiling and Wall on.
|
||||
</span><span class='line'>execute_service=light.turn_on
|
||||
</span><span class='line'>service_entity_id=light.Ceiling,light.Wall
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'> # Turn the lights Ceiling and Wall on.
|
||||
</span><span class='line'> execute_service: light.turn_on
|
||||
</span><span class='line'> service_entity_id: light.Ceiling,light.Wall
|
||||
</span><span class='line'>
|
||||
</span><span class='line'># Turn the lights Ceiling and Wall on and turn them red.
|
||||
</span><span class='line'>execute_service=light.turn_on
|
||||
</span><span class='line'>service_entity_id=light.Ceiling,light.Wall
|
||||
</span><span class='line'>service_data={"rgb_color": [255, 0, 0]}
|
||||
</span><span class='line'> # Turn the lights Ceiling and Wall on and turn them red.
|
||||
</span><span class='line'> execute_service: light.turn_on
|
||||
</span><span class='line'> service_entity_id: light.Ceiling,light.Wall
|
||||
</span><span class='line'> service_data: {"rgb_color": [255, 0, 0]}
|
||||
</span><span class='line'>
|
||||
</span><span class='line'># Notify the user
|
||||
</span><span class='line'>execute_service=notify.notify
|
||||
</span><span class='line'>service_data={"message":"YAY"}</span></code></pre></td></tr></table></div></figure>
|
||||
</span><span class='line'> # Notify the user
|
||||
</span><span class='line'> execute_service: notify.notify
|
||||
</span><span class='line'> service_data: {"message":"YAY"}</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h2>Putting it all together</h2>
|
||||
|
||||
<p>For every combination of a trigger and an action we will have to combine the configuration lines and add it to an <code>automation</code> component entry in <code>home-assistant.conf</code>. You can add an optional <code>alias</code> key to the configuration to make the logs more understandable. To setup multiple entries, append 2, 3 etc to the section name. An example of a <code>home-assistant.conf</code> file:</p>
|
||||
<p>For every combination of a trigger and an action we will have to combine the configuration lines and add it to an <code>automation</code> component entry in <code>configuration.yaml</code>. You can add an optional <code>alias</code> key to the configuration to make the logs more understandable. To setup multiple entries, append 2, 3 etc to the section name. An example of a <code>configuration.yaml</code> file:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
|
@ -263,43 +262,43 @@
|
|||
<span class='line-number'>29</span>
|
||||
<span class='line-number'>30</span>
|
||||
<span class='line-number'>31</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[automation]
|
||||
</span><span class='line'>alias=Sunset notification
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>automation:
|
||||
</span><span class='line'> alias: Sunset notification
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>platform=state
|
||||
</span><span class='line'>state_entity_id=sun.sun
|
||||
</span><span class='line'>state_from=above_horizon
|
||||
</span><span class='line'>state_to=below_horizon
|
||||
</span><span class='line'> platform: state
|
||||
</span><span class='line'> state_entity_id: sun.sun
|
||||
</span><span class='line'> state_from: above_horizon
|
||||
</span><span class='line'> state_to: below_horizon
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>execute_service=notify.notify
|
||||
</span><span class='line'>service_data={"message":"The sun has set"}
|
||||
</span><span class='line'> execute_service: notify.notify
|
||||
</span><span class='line'> service_data: {"message":"The sun has set"}
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>[automation 2]
|
||||
</span><span class='line'>alias=Turn lights off at 8am in the morning
|
||||
</span><span class='line'>automation 2:
|
||||
</span><span class='line'> alias: Turn lights off at 8am in the morning
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>platform=time
|
||||
</span><span class='line'>time_hours=8
|
||||
</span><span class='line'>time_minutes=0
|
||||
</span><span class='line'>time_seconds=0
|
||||
</span><span class='line'> platform: time
|
||||
</span><span class='line'> time_hours: 8
|
||||
</span><span class='line'> time_minutes: 0
|
||||
</span><span class='line'> time_seconds: 0
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>execute_service=light.turn_off
|
||||
</span><span class='line'> execute_service: light.turn_off
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>[automation 3]
|
||||
</span><span class='line'>alias=Turn lights in study room on when Paulus comes home
|
||||
</span><span class='line'>automation 3:
|
||||
</span><span class='line'> alias: Turn lights in study room on when Paulus comes home
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>platform=state
|
||||
</span><span class='line'>state_entity_id=device_tracker.Paulus_OnePlus
|
||||
</span><span class='line'>state_from=not_home
|
||||
</span><span class='line'>state_to=home
|
||||
</span><span class='line'> platform: state
|
||||
</span><span class='line'> state_entity_id: device_tracker.Paulus_OnePlus
|
||||
</span><span class='line'> state_from: not_home
|
||||
</span><span class='line'> state_to: home
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>execute_service=homeassistant.turn_on
|
||||
</span><span class='line'>service_entity_id=group.Study_Room</span></code></pre></td></tr></table></div></figure>
|
||||
</span><span class='line'> execute_service: homeassistant.turn_on
|
||||
</span><span class='line'> service_entity_id: group.Study_Room</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
||||
<p class='note'>
|
||||
All configuration entries have to be sequential. If you have <code>[automation]</code>, <code>[automation 2]</code> and <code>[automation 4]</code> then the last one will not be processed.
|
||||
All configuration entries have to be sequential. If you have <code>automation:</code>, <code>automation 2:</code> and <code>automation 4:</code> then the last one will not be processed.
|
||||
</p>
|
||||
|
||||
|
||||
|
|
|
@ -97,10 +97,10 @@
|
|||
|
||||
<p>The browser component provides a service to open urls in the default browser on the host machine.</p>
|
||||
|
||||
<p>To load this component, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To load this component, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[browser]</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>browser:</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h4>Service <code>browser/browse_url</code></h4>
|
||||
|
|
|
@ -102,10 +102,10 @@ Chromecasts have recently received a new API which is not yet supported by Home
|
|||
|
||||
<p></p>
|
||||
|
||||
<p>Interacts with Chromecasts on your network. Will be automatically discovered if you setup <a href="/components/discovery.html">the discovery component</a>. Can also be forced to load by adding the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>Interacts with Chromecasts on your network. Will be automatically discovered if you setup <a href="/components/discovery.html">the discovery component</a>. Can also be forced to load by adding the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[chromecast]</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>chromecast:</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h2>Services</h2>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
|
||||
<p>This component requires the components <a href="">sun</a>, <a href="/components/device_tracker.html">device_tracker</a> and <a href="/components/light.html">light</a> to be enabled.</p>
|
||||
|
||||
<p>To enable this component, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To enable this component, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
|
@ -115,13 +115,13 @@
|
|||
<span class='line-number'>5</span>
|
||||
<span class='line-number'>6</span>
|
||||
<span class='line-number'>7</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[device_sun_light_trigger]
|
||||
</span><span class='line'># Specify a specific light/group of lights that has to be turned on
|
||||
</span><span class='line'>light_group=group.living_room
|
||||
</span><span class='line'># Specify which light profile to use when turning lights on
|
||||
</span><span class='line'>light_profile=relax
|
||||
</span><span class='line'># Disable lights being turned off when everybody leaves the house
|
||||
</span><span class='line'>disable_turn_off=1</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>device_sun_light_trigger:
|
||||
</span><span class='line'> # Specify a specific light/group of lights that has to be turned on
|
||||
</span><span class='line'> light_group: group.living_room
|
||||
</span><span class='line'> # Specify which light profile to use when turning lights on
|
||||
</span><span class='line'> light_profile: relax
|
||||
</span><span class='line'> # Disable lights being turned off when everybody leaves the house
|
||||
</span><span class='line'> disable_turn_off: 1</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<p>The options <code>light_group</code>, <code>light_profile</code> and <code>disable_turn_off</code> are optional.</p>
|
||||
|
|
|
@ -95,18 +95,18 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>Home Assistant can get information from your wireless router to track which devices are connected. There are three different types of supported wireless routers: tomato, netgear and luci (OpenWRT). To get started add the following lines to your <code>home-assistant.conf</code> (example for Netgear):</p>
|
||||
<p>Home Assistant can get information from your wireless router to track which devices are connected. There are three different types of supported wireless routers: tomato, netgear and luci (OpenWRT). To get started add the following lines to your <code>configuration.yaml</code> (example for Netgear):</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
<span class='line-number'>3</span>
|
||||
<span class='line-number'>4</span>
|
||||
<span class='line-number'>5</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[device_tracker]
|
||||
</span><span class='line'>platform=netgear
|
||||
</span><span class='line'>host=192.168.1.1
|
||||
</span><span class='line'>username=admin
|
||||
</span><span class='line'>password=MY_PASSWORD</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>device_tracker:
|
||||
</span><span class='line'> platform: netgear
|
||||
</span><span class='line'> host: 192.168.1.1
|
||||
</span><span class='line'> username: admin
|
||||
</span><span class='line'> password: MY_PASSWORD</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
@ -130,9 +130,9 @@ Before the Luci scanner can be used you have to install the luci RPC package on
|
|||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
<span class='line-number'>3</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[device_tracker]
|
||||
</span><span class='line'>platform=nmap_tracker
|
||||
</span><span class='line'>hosts=192.168.1.1/24</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>device_tracker:
|
||||
</span><span class='line'> platform: nmap_tracker
|
||||
</span><span class='line'> hosts: 192.168.1.1/24</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -106,10 +106,10 @@
|
|||
|
||||
<p>It will be able to add Google Chreomcasts and Belkin WeMo switches automatically, for Philips Hue it will require some configuration from the user.</p>
|
||||
|
||||
<p>To load this component, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To load this component, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[discovery]</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>discovery:</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<p>If you are developing a new platform, please read <a href="/developers/add_new_platform.html#discovery">how to make your platform discoverable</a>.</p>
|
||||
|
|
|
@ -97,12 +97,12 @@
|
|||
|
||||
<p>The <code>downloader</code> component provides a service to download files. It will raise an error and not continue to set itself up when the download directory does not exist.</p>
|
||||
|
||||
<p>To enable it, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To enable it, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[downloader]
|
||||
</span><span class='line'>download_dir=downloads</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>downloader:
|
||||
</span><span class='line'> download_dir: downloads</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h4>Service <code>downloader/download_file</code></h4>
|
||||
|
|
|
@ -107,10 +107,10 @@
|
|||
</ul>
|
||||
|
||||
|
||||
<p>To load this component, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To load this component, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[keyboard]</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>keyboard:</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -109,18 +109,18 @@
|
|||
|
||||
<p>Preferred way to setup the Philips Hue platform is through the <a href="/components/discovery.html">the discovery component</a>. For the Wink light platform enable <a href="/components/wink.html">the wink component</a>.</p>
|
||||
|
||||
<p>If you really feel like enabling the light component directly, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>If you want to enable the light component directly, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[light]
|
||||
</span><span class='line'>platform=hue</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>light:
|
||||
</span><span class='line'> platform: hue</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
||||
<p class='note'>
|
||||
The light component supports multiple entries in <code>home-assistant.conf</code> by appending a sequential number to the section: <code>[light 2]</code>, <code>[light 3]</code> etc.
|
||||
The light component supports multiple entries in <code>configuration.yaml</code> by appending a sequential number to the section: <code>light 2:</code>, <code>light 3:</code> etc.
|
||||
</p>
|
||||
|
||||
|
||||
|
|
|
@ -99,19 +99,19 @@
|
|||
|
||||
<p>Home Assistant currently supports the awesome <a href="https://www.pushbullet.com/">PushBullet</a>, a free service to send information between your phones, browsers and friends.</p>
|
||||
|
||||
<p>To add PushBullet to your installation, add the following to your <code>home-assistant.conf</code> file:</p>
|
||||
<p>To add PushBullet to your installation, add the following to your <code>configuration.yaml</code> file:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
<span class='line-number'>3</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[notify]
|
||||
</span><span class='line'>platform=pushbullet
|
||||
</span><span class='line'>api_key=YOUR_API_KEY</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>notify:
|
||||
</span><span class='line'> platform: pushbullet
|
||||
</span><span class='line'> api_key: YOUR_API_KEY</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<h3>Automation example</h3>
|
||||
|
||||
<p>Notifications are great to be used within Home Automation. Below is a an example configuration that you can add to your <code>home-assistant.conf</code> to be notified when the sun sets.</p>
|
||||
<p>Notifications are great to be used within Home Automation. Below is a an example configuration that you can add to your <code>configuration.yaml</code> to be notified when the sun sets.</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
|
@ -123,16 +123,16 @@
|
|||
<span class='line-number'>8</span>
|
||||
<span class='line-number'>9</span>
|
||||
<span class='line-number'>10</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[automation]
|
||||
</span><span class='line'>alias=Sun set notification
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>automation:
|
||||
</span><span class='line'> alias: Sun set notification
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>platform=state
|
||||
</span><span class='line'>state_entity_id=sun.sun
|
||||
</span><span class='line'>state_from=above_horizon
|
||||
</span><span class='line'>state_to=below_horizon
|
||||
</span><span class='line'> platform: state
|
||||
</span><span class='line'> state_entity_id: sun.sun
|
||||
</span><span class='line'> state_from: above_horizon
|
||||
</span><span class='line'> state_to: below_horizon
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>execute_service=notify.notify
|
||||
</span><span class='line'>service_data={"message":"YAY"}</span></code></pre></td></tr></table></div></figure>
|
||||
</span><span class='line'> execute_service: notify.notify
|
||||
</span><span class='line'> service_data: {"message":"YAY"}</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<p>For more automation examples, see the <a href="/components/automation.html">getting started with automation page</a>.</p>
|
||||
|
|
|
@ -99,18 +99,18 @@
|
|||
|
||||
<p>This component depends on the compoments <a href="/components/device_tracker.html">device_tracker</a> and <a href="/components/light.html">light</a> being setup.</p>
|
||||
|
||||
<p>To set it up, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To set it up, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
<span class='line-number'>3</span>
|
||||
<span class='line-number'>4</span>
|
||||
<span class='line-number'>5</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[simple_alarm]
|
||||
</span><span class='line'># Which light/light group has to flash when a known device comes home
|
||||
</span><span class='line'>known_light=light.Bowl
|
||||
</span><span class='line'># Which light/light group has to flash red when light turns on while no one home
|
||||
</span><span class='line'>unknown_light=group.living_room</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>simple_alarm:
|
||||
</span><span class='line'> # Which light/light group has to flash when a known device comes home
|
||||
</span><span class='line'> known_light: light.Bowl
|
||||
</span><span class='line'> # Which light/light group has to flash red when light turns on while no one home
|
||||
</span><span class='line'> unknown_light: group.living_room</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -97,18 +97,18 @@
|
|||
|
||||
<p>The <code>sun</code> component will use your current location to track if the sun is above or below the horizon. This is a common ingredient within Home Automation.</p>
|
||||
|
||||
<p>To set it up, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To set it up, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
<span class='line-number'>3</span>
|
||||
<span class='line-number'>4</span>
|
||||
<span class='line-number'>5</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[homeassistant]
|
||||
</span><span class='line'>latitude=32.87336
|
||||
</span><span class='line'>longitude=-117.22743
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>homeassistant:
|
||||
</span><span class='line'> latitude: 32.87336
|
||||
</span><span class='line'> longitude: -117.22743
|
||||
</span><span class='line'>
|
||||
</span><span class='line'>[sun]</span></code></pre></td></tr></table></div></figure>
|
||||
</span><span class='line'>sun:</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -97,10 +97,10 @@
|
|||
|
||||
<p>Shows the values of that sensors that is connected to your Tellstick.</p>
|
||||
|
||||
<p>To enable it, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
<p>To enable it, add the following lines to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[tellstick_sensor]</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>tellstick_sensor:</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -97,16 +97,16 @@
|
|||
|
||||
<p>Thermostats offer Home Assistant a peek into the current and target temperature in a house. Some thermostats will also offer an away mode that will lower use of heating/cooling. The only supported thermostat right now is the Nest thermostat.</p>
|
||||
|
||||
<p>To set it up, add the following information to your <code>home-assistant.conf</code> file:</p>
|
||||
<p>To set it up, add the following information to your <code>configuration.yaml</code> file:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
<span class='line-number'>3</span>
|
||||
<span class='line-number'>4</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[thermostat]
|
||||
</span><span class='line'>platform=nest
|
||||
</span><span class='line'>username=myemail@mydomain.com
|
||||
</span><span class='line'>password=mypassword</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>thermostat:
|
||||
</span><span class='line'> platform: nest
|
||||
</span><span class='line'> username: myemail@mydomain.com
|
||||
</span><span class='line'> password: mypassword</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -108,12 +108,12 @@
|
|||
style='width: 100%; height: 200px; border: 0; margin: 0 auto 15px; border-left: 2px solid #049cdb; padding-left: 15px;'></iframe>
|
||||
|
||||
|
||||
<p>After you have gotten your access token, add the following to your <code>home-assitant.conf</code>:</p>
|
||||
<p>After you have gotten your access token, add the following to your <code>configuration.yaml</code>:</p>
|
||||
|
||||
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
||||
<span class='line-number'>2</span>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>[wink]
|
||||
</span><span class='line'>access_token=YOUR_ACCESS_TOKEN</span></code></pre></td></tr></table></div></figure>
|
||||
</pre></td><td class='code'><pre><code class=''><span class='line'>wink:
|
||||
</span><span class='line'> access_token: YOUR_ACCESS_TOKEN</span></code></pre></td></tr></table></div></figure>
|
||||
|
||||
|
||||
<p>This will connect to the Wink hub and automatically set up any lights, switches and sensors that it finds.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue