1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

binary_sensor filters templatable delays (#5029)

This commit is contained in:
Sergey Dudanov
2023-07-04 04:25:48 +04:00
committed by GitHub
parent 099dc8d1d2
commit 5b2176562b
4 changed files with 79 additions and 36 deletions

View File

@@ -1355,8 +1355,15 @@ binary_sensor:
device_class: window
filters:
- invert:
- delayed_on_off: 40ms
- delayed_on_off:
time_on: 10s
time_off: !lambda "return 1000;"
- delayed_on: 40ms
- delayed_off: 40ms
- delayed_on_off: !lambda "return 10;"
- delayed_on: !lambda "return 1000;"
- delayed_off: !lambda "return 0;"
on_press:
then:
- lambda: >-