Site updated at 2017-10-05 09:01:16 UTC
This commit is contained in:
parent
2e11128e04
commit
48d89ec42a
49 changed files with 104 additions and 104 deletions
|
@ -78,7 +78,7 @@
|
|||
<p>This example demonstrates how you can configure Apache to act as a proxy for Home Assistant.</p>
|
||||
<p>This is useful if you want to have:</p>
|
||||
<ul>
|
||||
<li>a subdomain redirecting to your home assistant instance</li>
|
||||
<li>a subdomain redirecting to your Home Assistant instance</li>
|
||||
<li>several subdomain for several instance</li>
|
||||
<li>HTTPS redirection</li>
|
||||
</ul>
|
||||
|
@ -124,8 +124,8 @@ In case you are getting occasional HTTP 504 error messages (“Gateway Timeout
|
|||
<p>You want another instance available at https://countryside.example.org</p>
|
||||
<p>You can either :</p>
|
||||
<ul>
|
||||
<li>Create a new user, <code class="highlighter-rouge">bob</code>, to hold the configuration file in <code class="highlighter-rouge">/home/bob/.homeassistant/configuration.yaml</code> and run home assistant as this new user</li>
|
||||
<li>Create another configuration directory in <code class="highlighter-rouge">/home/alice/.homeassistan2/configuration.yaml</code> and run home assistant using <code class="highlighter-rouge">hass --config /home/alice/.homeassistant2/</code></li>
|
||||
<li>Create a new user, <code class="highlighter-rouge">bob</code>, to hold the configuration file in <code class="highlighter-rouge">/home/bob/.homeassistant/configuration.yaml</code> and run Home Assistant as this new user</li>
|
||||
<li>Create another configuration directory in <code class="highlighter-rouge">/home/alice/.homeassistan2/configuration.yaml</code> and run Home Assistant using <code class="highlighter-rouge">hass --config /home/alice/.homeassistant2/</code></li>
|
||||
</ul>
|
||||
<p>In both solution, change port number used by modifying <code class="highlighter-rouge">configuration.yaml</code></p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">http</span><span class="pi">:</span>
|
||||
|
|
|
@ -1082,7 +1082,7 @@
|
|||
<div class="language-python highlighter-rouge"><pre class="highlight"><code><span class="bp">self</span><span class="o">.</span><span class="n">listen_event</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">mode_event</span><span class="p">,</span> <span class="s">"MODE_CHANGE"</span><span class="p">)</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Home Assistant can send these events in a variety of other places - within automations, and also directly from Alexa intents. Home Assistant can also listen for custom events with it’s automation component. This can be used to signal from AppDaemon code back to home assistant. Here is a sample automation:</p>
|
||||
<p>Home Assistant can send these events in a variety of other places - within automations, and also directly from Alexa intents. Home Assistant can also listen for custom events with it’s automation component. This can be used to signal from AppDaemon code back to Home Assistant. Here is a sample automation:</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">automation</span><span class="pi">:</span>
|
||||
<span class="s">trigger</span><span class="pi">:</span>
|
||||
<span class="s">platform</span><span class="pi">:</span> <span class="s">event</span>
|
||||
|
|
|
@ -95,13 +95,13 @@ class = HelloWorld
|
|||
</code></pre>
|
||||
</div>
|
||||
<ul>
|
||||
<li><code class="highlighter-rouge">ha_url</code> is a reference to your home assistant installation and must include the correct port number and scheme (<code class="highlighter-rouge">http://</code> or <code class="highlighter-rouge">https://</code> as appropriate)</li>
|
||||
<li><code class="highlighter-rouge">ha_url</code> is a reference to your Home Assistant installation and must include the correct port number and scheme (<code class="highlighter-rouge">http://</code> or <code class="highlighter-rouge">https://</code> as appropriate)</li>
|
||||
<li><code class="highlighter-rouge">ha_key</code> should be set to your key if you have one, otherwise it can be removed.</li>
|
||||
<li><code class="highlighter-rouge">logfile</code> (optional) is the path to where you want <code class="highlighter-rouge">AppDaemon</code> to keep its main log. When run from the command line this is not used - log messages come out on the terminal. When running as a daemon this is where the log information will go. In the example above I created a directory specifically for AppDaemon to run from, although there is no reason you can’t keep it in the <code class="highlighter-rouge">appdaemon</code> directory of the cloned repository. If <code class="highlighter-rouge">logfile = STDOUT</code>, output will be sent to stdout instead of stderr when running in the foreground, if not specified, output will be sent to STDOUT.</li>
|
||||
<li><code class="highlighter-rouge">errorfile</code> (optional) is the name of the logfile for errors - this will usually be errors during compilation and execution of the apps. If <code class="highlighter-rouge">errorfile = STDERR</code> errors will be sent to stderr instead of a file, if not specified, output will be sent to STDERR.</li>
|
||||
<li><code class="highlighter-rouge">app_dir</code> (optional) is the directory the apps are placed in. If not specified, AppDaemon will look first in <code class="highlighter-rouge">~/.homeassistant</code> then <code class="highlighter-rouge">/etc/appdaemon</code> for a subdirectory named <code class="highlighter-rouge">apps</code></li>
|
||||
<li><code class="highlighter-rouge">threads</code> - the number of dedicated worker threads to create for running the apps. Note, this will bear no resembelance to the number of apps you have, the threads are re-used and only active for as long as required to tun a particular callback or initialization, leave this set to 10 unless you experience thread starvation</li>
|
||||
<li><code class="highlighter-rouge">latitude</code>, <code class="highlighter-rouge">longitude</code>, <code class="highlighter-rouge">elevation</code>, <code class="highlighter-rouge">timezone</code> - should all be copied from your home assistant configuration file</li>
|
||||
<li><code class="highlighter-rouge">latitude</code>, <code class="highlighter-rouge">longitude</code>, <code class="highlighter-rouge">elevation</code>, <code class="highlighter-rouge">timezone</code> - should all be copied from your Home Assistant configuration file</li>
|
||||
<li><code class="highlighter-rouge">cert_path</code> (optional) - path to root CA cert directory - use only if you are using self signed certs.</li>
|
||||
</ul>
|
||||
<p>The <code class="highlighter-rouge">#Apps</code> section is the configuration for the Hello World program and should be left in place for initial testing but can be removed later if desired, as other Apps are added, App configuration is described in the <a href="API.md">API doc</a>.</p>
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
<li>Go to the device in iTunes.</li>
|
||||
<li>Select “Apps” on the left sidebar.</li>
|
||||
<li>Scroll down until you see the section labeled “File Sharing”.</li>
|
||||
<li>Select HomeAssistant.</li>
|
||||
<li>Select Home Assistant.</li>
|
||||
<li>Drag and drop properly formatted sounds.</li>
|
||||
<li>Click Sync in the lower right.</li>
|
||||
<li>Once sync is complete, disconnect the device from the computer.</li>
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
<p>This example demonstrates how you can configure NGINX to act as a proxy for Home Assistant.</p>
|
||||
<p>This is useful if you want to have:</p>
|
||||
<ul>
|
||||
<li>a subdomain redirecting to your home assistant instance</li>
|
||||
<li>a subdomain redirecting to your Home Assistant instance</li>
|
||||
<li>several subdomain for several instance</li>
|
||||
<li>HTTPS redirection</li>
|
||||
</ul>
|
||||
|
@ -121,8 +121,8 @@
|
|||
<p>You want another instance available at https://countryside.example.org</p>
|
||||
<p>You can either :</p>
|
||||
<ul>
|
||||
<li>Create a new user, <code class="highlighter-rouge">bob</code>, to hold the configuration file in <code class="highlighter-rouge">/home/bob/.homeassistant/configuration.yaml</code> and run home assistant as this new user</li>
|
||||
<li>Create another configuration directory in <code class="highlighter-rouge">/home/alice/.homeassistan2/configuration.yaml</code> and run home assistant using <code class="highlighter-rouge">hass --config /home/alice/.homeassistant2/</code></li>
|
||||
<li>Create a new user, <code class="highlighter-rouge">bob</code>, to hold the configuration file in <code class="highlighter-rouge">/home/bob/.homeassistant/configuration.yaml</code> and run Home Assistant as this new user</li>
|
||||
<li>Create another configuration directory in <code class="highlighter-rouge">/home/alice/.homeassistan2/configuration.yaml</code> and run Home Assistant using <code class="highlighter-rouge">hass --config /home/alice/.homeassistant2/</code></li>
|
||||
</ul>
|
||||
<p>In both solution, change port number used by modifying <code class="highlighter-rouge">configuration.yaml</code> file.</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">http</span><span class="pi">:</span>
|
||||
|
|
|
@ -145,7 +145,7 @@ entities:
|
|||
<div class="highlighter-rouge"><pre class="highlight"><code>scene: !include_dir_list scenes
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>This will tell home assistant to look in the subdirectory <code class="highlighter-rouge">scenes</code> for yaml files containing scene information. Each file will be named for the scene it will create and should contain information formatted as above. Then simply run Scenegen and redirect its output to the scenes subdirectory:</p>
|
||||
<p>This will tell Home Assistant to look in the subdirectory <code class="highlighter-rouge">scenes</code> for yaml files containing scene information. Each file will be named for the scene it will create and should contain information formatted as above. Then simply run Scenegen and redirect its output to the scenes subdirectory:</p>
|
||||
<div class="highlighter-rouge"><pre class="highlight"><code>$ ./scenegen.py https://<some url> -k <some api key> > scenes/my_new_scene.yaml
|
||||
</code></pre>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue