home-assistant.io/source/_components/binary_sensor.random.markdown
2019-03-10 04:45:59 -07:00

922 B

layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release ha_qa_scale
page Random Binary Sensor Instructions on how to integrate random state sensors into Home Assistant. 2017-10-27 08:00 true false true true home-assistant.png Utility Local Polling 0.57 internal

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.

{% linkable_title 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 %} name: description: Name to use in the frontend. required: false type: string default: Random Binary Sensor {% endconfiguration %}