Skip to content

Commit cae7bb7

Browse files
authored
Revert "Add delay feature to Threshold sensor (#3168)"
This reverts commit 3d250af.
1 parent 3d250af commit cae7bb7

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

source/_components/binary_sensor.threshold.markdown

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sharing: true
99
footer: true
1010
logo: home-assistant.png
1111
ha_category: Binary Sensor
12-
ha_iot_class: "Local Push"
12+
ha_iot_class: "Local Polling"
1313
ha_release: 0.34
1414
---
1515

@@ -31,18 +31,6 @@ binary_sensor:
3131
threshold: 15
3232
type: lower
3333
entity_id: sensor.random
34-
35-
# If present, sensor will only switch to on if the threshold is met for this amount of time.
36-
on_delay:
37-
hours: 1
38-
minutes: 10
39-
seconds: 5
40-
41-
# Same as above, but for the sensor switching to off.
42-
off_delay:
43-
hours: 1
44-
minutes: 10
45-
seconds: 5
4634
```
4735
4836
Configuration variables:
@@ -51,25 +39,4 @@ Configuration variables:
5139
- **threshold** (*Required*): The value which is the threshold.
5240
- **type** (*Required*): `lower` if the value needs to be below the threshold or `upper` if higher.
5341
- **name** (*Optional*): Name of the sensor to use in the frontend. Defaults to `Stats`.
54-
- **on_delay** (*Optional*): The amount of time the threshold must be met before this sensor will switch to on.
55-
- **off_delay** (*Optional*): The amount of time the threshold must be not met before this sensor will switch to off.
56-
57-
## {% linkable_title Examples %}
58-
59-
In this section you find some real life examples of how to use this sensor.
60-
61-
### {% linkable_title Washing Machine Running %}
6242

63-
This example creates a washing machine "load running" sensor by monitoring an energy meter connected to the washer. During the washer's operation, the energy meter will fluctuate wildly, hitting zero frequently even before the load is finished. By utilizing `off_delay`, we can have this sensor only turn off if there has been no washer activity for 5 minutes.
64-
65-
```yaml
66-
# Determine when the washing machine has a load running.
67-
binary_sensor:
68-
- platform: threshold
69-
name: Washing Machine
70-
threshold: 0
71-
type: upper
72-
entity_id: sensor.washing_machine_power
73-
off_delay:
74-
minutes: 5
75-
```

0 commit comments

Comments
 (0)