You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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
Copy file name to clipboardExpand all lines: source/_components/sensor.random.markdown
+4-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ha_release: 0.32
14
14
---
15
15
16
16
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.
18
18
19
19
To enable the random sensor, add the following lines to your `configuration.yaml`:
20
20
@@ -31,3 +31,6 @@ Configuration variables:
31
31
- **maximum** (*Optional*): Upper limit for the values. Defaults to `20`.
32
32
- **unit_of_measurement** (*Optional*): Defines the units of measurement of the sensor, if any.
33
33
34
+
See the [entity component options][entity-docs] to control how often the main component polls the random sensor. The default is 30 seconds.
0 commit comments