Skip to content

Commit c83d11a

Browse files
wildcomputationsfabaff
authored andcommitted
Describe when the random sensor changes value (home-assistant#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
1 parent ac5eb17 commit c83d11a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/_components/sensor.random.markdown

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ha_release: 0.32
1414
---
1515

1616

17-
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.
17+
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.
1818

1919
To enable the random sensor, add the following lines to your `configuration.yaml`:
2020

@@ -31,3 +31,6 @@ Configuration variables:
3131
- **maximum** (*Optional*): Upper limit for the values. Defaults to `20`.
3232
- **unit_of_measurement** (*Optional*): Defines the units of measurement of the sensor, if any.
3333

34+
See the [entity component options][entity-docs] to control how often the main component polls the random sensor. The default is 30 seconds.
35+
36+
[entity-docs]: https://home-assistant.io/docs/configuration/platform_options/

0 commit comments

Comments
 (0)