Describe when the random sensor changes value (#3064)

* Document update frequency

Documented that the random number changes every 30 seconds
according to http://fabian-affolter.ch/blog/random-sensor/

* Learned the source of the 30s polling frequency
This commit is contained in:
wildcomputations 2017-07-27 05:39:02 -04:00 committed by Fabian Affolter
parent ac5eb17f31
commit c83d11a0b4

View File

@ -14,7 +14,7 @@ ha_release: 0.32
---
The `random` sensor platform is creating random sensor values (integers) out of a given range. This can be useful if you want to test automation rules.
The `random` sensor platform is creating random sensor values (integers) out of a given range. This can be useful if you want to test automation rules. It generates a new value every time it is polled.
To enable the random sensor, add the following lines to your `configuration.yaml`:
@ -31,3 +31,6 @@ Configuration variables:
- **maximum** (*Optional*): Upper limit for the values. Defaults to `20`.
- **unit_of_measurement** (*Optional*): Defines the units of measurement of the sensor, if any.
See the [entity component options][entity-docs] to control how often the main component polls the random sensor. The default is 30 seconds.
[entity-docs]: https://home-assistant.io/docs/configuration/platform_options/