random integration simply creates random values or state. This can be useful if you want to test automation rules or run an interactive demo. It generates a new state every time it is polled.
To be able to add Helpers via the user interface, you should have
default_config: in your
configuration.yaml. It should already be there by default unless you removed it. If you removed
default_config: from your configuration, you must add
random: to your
configuration.yaml first, then you can use the UI.
The random binary sensor creates random states (
To create the random binary sensor, add the following lines to your
# Example configuration.yaml entry binary_sensor: - platform: random
The random sensor creates 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.
To create the random sensor, add the following lines to your
# Example configuration.yaml entry sensor: - platform: random