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: