Site updated at 2016-08-22 08:21:42 UTC
This commit is contained in:
parent
f9d65cbe57
commit
4acb07bf8e
559 changed files with 18878 additions and 21688 deletions
|
@ -89,27 +89,25 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The <code>file</code> platform allows you to store notifications from Home Assistant as a file.</p>
|
||||
<p>The <code class="highlighter-rouge">file</code> platform allows you to store notifications from Home Assistant as a file.</p>
|
||||
|
||||
<p>To enable file notifications in your installation, add the following to your <code>configuration.yaml</code> file:</p>
|
||||
<p>To enable file notifications in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">notify</span>:
|
||||
<span class="key">name</span>: <span class="string"><span class="content">NOTIFIER_NAME</span></span>
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">file</span></span>
|
||||
<span class="key">filename</span>: <span class="string"><span class="content">FILENAME</span></span>
|
||||
<span class="key">timestamp</span>: <span class="string"><span class="content">1 or 0</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">notify</span><span class="pi">:</span>
|
||||
<span class="s">name</span><span class="pi">:</span> <span class="s">NOTIFIER_NAME</span>
|
||||
<span class="s">platform</span><span class="pi">:</span> <span class="s">file</span>
|
||||
<span class="s">filename</span><span class="pi">:</span> <span class="s">FILENAME</span>
|
||||
<span class="s">timestamp</span><span class="pi">:</span> <span class="s">1 or 0</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>Configuration variables:</p>
|
||||
|
||||
<ul>
|
||||
<li><strong>name</strong> (<em>Optional</em>): Setting the optional parameter <code>name</code> allows multiple notifiers to be created. The default value is <code>notify</code>. The notifier will bind to the service <code>notify.NOTIFIER_NAME</code>.</li>
|
||||
<li><strong>filename</strong> (<em>Required</em>): Name of the file to use. The file will be created if it doesn’t exist and saved in your <code>config/</code> folder.</li>
|
||||
<li><strong>timestamp</strong> (<em>Optional</em>): Setting <code>timestamp</code> to 1 adds a timestamp to every entry.</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): Setting the optional parameter <code class="highlighter-rouge">name</code> allows multiple notifiers to be created. The default value is <code class="highlighter-rouge">notify</code>. The notifier will bind to the service <code class="highlighter-rouge">notify.NOTIFIER_NAME</code>.</li>
|
||||
<li><strong>filename</strong> (<em>Required</em>): Name of the file to use. The file will be created if it doesn’t exist and saved in your <code class="highlighter-rouge">config/</code> folder.</li>
|
||||
<li><strong>timestamp</strong> (<em>Optional</em>): Setting <code class="highlighter-rouge">timestamp</code> to 1 adds a timestamp to every entry.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue