Threshold Binary Sensor
The threshold
binary sensor platform is consuming the state from another sensor. If the value is below (lower
) or higher (upper
) than the given threshold then state of this sensor change..
It’s an alternative to the template binary sensor’s value_template:
to get the abnormal/too high/too low states.
{{ states.sensor.furnace.state > 2.5 }}
To enable the threshold sensor, add the following lines to your configuration.yaml
:
# Example configuration.yaml entry
binary_sensor:
- platform: threshold
threshold: 15
type: lower
entity_id: sensor.random
Configuration variables:
- entity_id (Required): The entity to monitor. Only sensors are supported.
- threshold (Required): The value which is the threshold.
- type (Required):
lower
if the value needs to be below the threshold orupper
if higher. - name (Optional): Name of the sensor to use in the frontend. Defaults to
Stats
.