Site updated at 2018-02-28 23:33:38 UTC

This commit is contained in:
Travis CI 2018-02-28 23:33:39 +00:00
parent 9d1940b4b8
commit fc1299e488
30 changed files with 78 additions and 79 deletions

View file

@ -75,7 +75,7 @@
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">statistics</code> sensor platform consumes the state from other sensors. Besides the maximum and the minimum values, the total, mean, median, variance and the standard deviation are also available as attributes. If its a binary sensor then only state changes are counted.</p>
<p>If you are running the <a href="/components/recorder/">recorder</a> component, on startup the data is read from the database. So after a restart of the platform, you will immediately have data available. If youre using the <a href="/components/history/">history</a> component, this will automatically also start the recoder component on startup.
<p>If you are running the <a href="/components/recorder/">recorder</a> component, on startup the data is read from the database. So after a restart of the platform, you will immediately have data available. If youre using the <a href="/components/history/">history</a> component, this will automatically also start the <code class="highlighter-rouge">recorder</code> component on startup.
If you are <em>not</em> running the <code class="highlighter-rouge">recorder</code> component, it can take time till the sensor starts to work because a couple of attributes need more than one value to do the calculation.</p>
<p>To enable the statistics sensor, add the following lines to your <code class="highlighter-rouge">configuration.yaml</code>:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># enable the recorder component (optional)</span>