Update Statistics sensor component configuration (#7246)

This commit is contained in:
Klaas Schoute 2018-10-29 22:47:56 +01:00 committed by Fabian Affolter
parent c7f8c12303
commit 773f029d80

View File

@ -38,13 +38,31 @@ sensor:
minutes: 30 minutes: 30
``` ```
Configuration variables: {% configuration %}
entity_id:
- **entity_id** (*Required*): The entity to monitor. Only [sensors](/components/sensor/) and [binary sensor](/components/binary_sensor/). description: The entity to monitor. Only [sensors](/components/sensor/) and [binary sensor](/components/binary_sensor/).
- **name** (*Optional*): Name of the sensor to use in the frontend. Defaults to `Stats`. required: true
- **sampling_size** (*Optional*): Size of the sampling. If the limit is reached then the values are rotated. Defaults to `20`. type: string
- **max_age** (*Optional*): Maximum age of measurements. Setting this to a time interval will cause older values to be discarded. name:
- **precision** (*Optional*): Defines the precision of the calculated values, through the argument of round(). Defaults to `2`. description: Name of the sensor to use in the frontend.
required: false
default: Stats
type: string
sampling_size:
description: Size of the sampling. If the limit is reached then the values are rotated.
required: false
default: 20
type: integer
max_age:
description: Maximum age of measurements. Setting this to a time interval will cause older values to be discarded.
required: false
type: time
precision:
description: Defines the precision of the calculated values, through the argument of round().
required: false
default: 2
type: integer
{% endconfiguration %}
<p class='img'> <p class='img'>
<img src='{{site_root}}/images/screenshots/stats-sensor.png' /> <img src='{{site_root}}/images/screenshots/stats-sensor.png' />