Site updated at 2017-10-24 07:34:37 UTC

This commit is contained in:
Travis CI 2017-10-24 07:34:38 +00:00
parent 79915af7fb
commit 7126740507
166 changed files with 484 additions and 208 deletions

View file

@ -74,7 +74,7 @@
</h1>
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">statistics</code> sensor platform is consuming the state from other sensors. Beside the maximal and the minimal value also the total, the mean, the median, the variance, and the standard deviation are as attributes available. If its a binary sensor then only the state changes are counted.</p>
<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.
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>