Site updated at 2016-10-08 18:28:01 UTC

This commit is contained in:
Travis CI 2016-10-08 18:28:02 +00:00
parent c33649c7ed
commit 85df6d11f5
522 changed files with 7493 additions and 3477 deletions

View file

@ -89,24 +89,26 @@
<hr class="divider">
<p>The time and date (<code class="highlighter-rouge">time_date</code>) platform simple displays the time in various formats, the date, or both.</p>
<p>The time and date (<code class="highlighter-rouge">time_date</code>) sensor platform simple displays the time in various formats, the date, or both.</p>
<p>To enable this sensor in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">sensor</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">time_date</span>
<span class="s">display_options</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">time'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">date'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">date_time'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">time_date'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">time_utc'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">beat'</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">time_date</span>
<span class="s">display_options</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">time'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">date'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">date_time'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">time_date'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">time_utc'</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">beat'</span>
</code></pre>
</div>
<p>The types <em>date_time</em> and <em>time_date</em> shows the date and the time. The other types just the time or the date. <em>beat</em> shows the <a href="http://www.swatch.com/en_us/internet-time">Swatch Internet Time</a>.</p>
<ul>
<li><strong>display_options</strong> array (<em>Required</em>): The option to display. The types <em>date_time</em> and <em>time_date</em> shows the date and the time. The other types just the time or the date. <em>beat</em> shows the <a href="http://www.swatch.com/en_us/internet-time">Swatch Internet Time</a>.</li>
</ul>
<p class="img">
<img src="/images/screenshots/time_date.png" />