random sensor platform is creating random sensor values (integers) out of a given range. Returned values form a discrete uniform distribution, meaning that each integer value in the range configured is equally likely to be drawn. 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
# Example configuration.yaml entry sensor: - platform: random
(string)(Optional)Name to use in the frontend.
Default value: Random Sensor
(string)(Optional)Lower limit for the values.
Default value: 0
(int)(Optional)Upper limit for the values.
Default value: 20
(string)(Optional)Defines the units of measurement of the sensor, if any.
See the entity component options to control how often the main component polls the random sensor. The default is 30 seconds.