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:

# Example configuration.yaml entry
binary_sensor:
  - platform: random

Configuration Variables

name

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

See the entity component options to control how often the main component polls the random binary sensor. The default is 30 seconds.