call_start_detect_delay

This commit is contained in:
Nikolay Vasilchuk
2022-09-09 21:22:59 +03:00
parent 6e66e9c20f
commit 13e97c6ad2
2 changed files with 2 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ substitutions:
api_password: "esphome"
# Software configuration
call_start_detect_delay: 50ms # Wait a while before going into a ring state
call_end_detect_delay: 4000ms # Interval between rings to detect incoming call
short_click_time_from: 50ms # Short button click min time
short_click_time_to: 1000ms # Long button click min time

View File

@@ -9,6 +9,7 @@ binary_sensor:
mode: INPUT_PULLUP
inverted: True
filters:
delayed_on: $call_start_detect_delay
delayed_off: $call_end_detect_delay
on_press:
then: