Site updated at 2015-12-19 17:29:41 UTC
This commit is contained in:
parent
5ddb1dac36
commit
45020579c3
259 changed files with 5974 additions and 4067 deletions
|
@ -23,7 +23,8 @@
|
|||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@balloob">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Templating">
|
||||
<meta name="twitter:description" content="Instructions how to use the templating feature of Home Assistant.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
@ -107,7 +108,7 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The template helper enables one to mathematically manipulate values and use variables to extract values from JSON. If the entity has template support then the <code>value_template</code> key can be set in the <code>configuration.yaml</code> file.</p>
|
||||
<p>The template helper enables one to mathematically manipulate values, use variables to extract values from JSON, and create customized messages to send with the <a href="components/notify/">notification component</a>. If the entity has template support then the <code>value_template</code> key can be set and used (eg. <code>message:</code> in <code>data:</code> of an automation rule) in the <code>configuration.yaml</code> file.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">value_template</span>: <span class="string"><span class="content">'{{ value.x }}'</span></span>
|
||||
|
@ -115,6 +116,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<p>To check your templates on-the-fly checkout the <strong>Template Editor</strong> from the <strong>Developer Tools</strong>.</p>
|
||||
|
||||
<p>For a complete overview, check the <a href="http://jinja.pocoo.org/docs/dev/templates/">Jinja2 documentation</a>.</p>
|
||||
|
||||
<h3><a class="title-link" name="accessing-variables" href="#accessing-variables"></a> Accessing variables</h3>
|
||||
|
@ -224,9 +227,15 @@
|
|||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<p class="copyright">
|
||||
<span class="credit">Powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>. Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.</span>
|
||||
</p>
|
||||
<div class="copyright">
|
||||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||||
<a rel="me" href='https://github.com/balloob/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue