Random Binary Sensor

The random binary sensor platform is creating random states (true, 1, on or false, 0, off). This can be useful if you want to test automation rules. It generates a new state every time it is polled.


To enable the random binary sensor, add the following lines to your configuration.yaml file:

# Example configuration.yaml entry
  - platform: random

Configuration Variables


(string)(Optional)Name to use in the frontend.

Default value: Random Binary Sensor