Site updated at 2016-12-10 22:22:55 UTC

This commit is contained in:
Travis CI 2016-12-10 22:22:55 +00:00
parent 21d2a5948b
commit 4c89edd19b
27 changed files with 46 additions and 46 deletions

View file

@ -144,7 +144,7 @@
<span class="s">broker</span><span class="pi">:</span> <span class="s">127.0.0.1</span>
</code></pre>
</div>
<p>As with the core snippet, indentation makes a difference. The component headers (<code class="highlighter-rouge">mqtt:</code>) should be fully left aligned (aka no indent), and the parameters (<code class="highlighter-rouge">port:</code>) should be indented two (2) spaces.</p>
<p>As with the core snippet, indentation makes a difference. The component headers (<code class="highlighter-rouge">mqtt:</code>) should be fully left aligned (aka no indent), and the parameters (<code class="highlighter-rouge">broker:</code>) should be indented two (2) spaces.</p>
<p>While some of these components can technically be moved to a separate file they are so small or “one offs” where splitting them off is superfluous. Also, youll notice the # symbol (hash/pound). This represents a “comment” as far as the commands are interpreted. Put another way, any line prefixed with a <code class="highlighter-rouge">#</code> will be ignored. This makes breaking up files for human readability really convenient, not to mention turning off features while leaving the entry intact. (Look at the <code class="highlighter-rouge">zigbee:</code> entry above and the b entry further down)</p>

View file

@ -120,13 +120,12 @@ The frontend has a template editor developer tool to help develop and debug temp
<span class="s">msg_who_is_home</span><span class="pi">:</span>
<span class="s">sequence</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">service</span><span class="pi">:</span> <span class="s">notify.notify</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">message</span><span class="pi">:</span> <span class="pi">&gt;</span>
<span class="no">{% if is_state('device_tracker.paulus', 'home') %}</span>
<span class="no">Ha, Paulus is home!</span>
<span class="no">{% else %}</span>
<span class="no">Paulus is at {{ states('device_tracker.paulus') }}.</span>
<span class="no">{% endif %}</span>
<span class="s">message</span><span class="pi">:</span> <span class="pi">&gt;</span>
<span class="no">{% if is_state('device_tracker.paulus', 'home') %}</span>
<span class="no">Ha, Paulus is home!</span>
<span class="no">{% else %}</span>
<span class="no">Paulus is at {{ states('device_tracker.paulus') }}.</span>
<span class="no">{% endif %}</span>
</code></pre>
</div>