From 13e97c6ad2f55cc4b08f5238bb4fa6fbe0f11ad3 Mon Sep 17 00:00:00 2001 From: Nikolay Vasilchuk Date: Fri, 9 Sep 2022 21:22:59 +0300 Subject: [PATCH] call_start_detect_delay --- ge1mer/domofon.yaml | 1 + ge1mer/esphome/packages/binary_sensor.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/ge1mer/domofon.yaml b/ge1mer/domofon.yaml index b4732cb..98f28cc 100644 --- a/ge1mer/domofon.yaml +++ b/ge1mer/domofon.yaml @@ -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 diff --git a/ge1mer/esphome/packages/binary_sensor.yaml b/ge1mer/esphome/packages/binary_sensor.yaml index b79f09c..ebad437 100644 --- a/ge1mer/esphome/packages/binary_sensor.yaml +++ b/ge1mer/esphome/packages/binary_sensor.yaml @@ -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: