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.

Configuration

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

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

Configuration Variables

name

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

Default value: Random Binary Sensor