diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_hw_buttons.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_hw_buttons.yaml index 7eb8d5e..83a7f60 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_hw_buttons.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_hw_buttons.yaml @@ -189,8 +189,7 @@ script: button: uint8_t click_count: uint8_t then: - - delay: - milliseconds: ${BUTTON_MULTI_CLICK_DELAY} + - delay: !lambda return nr_button_multi_click_delay->state; - lambda: |- std::string event_name; if (click_count == 1) event_name = "click"; diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_hw_touch.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_hw_touch.yaml index 9eabd9e..b6fd016 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_hw_touch.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_hw_touch.yaml @@ -13,6 +13,7 @@ --- substitutions: TOUCH_POSITION_MAX_VALUE: '10' # Maximum touch position value returned by the touch pad via uart + BUTTON_MULTI_CLICK_DELAY: '250' # The time to wait for another click, in msec ID_SWIPE_LEFT_TEXT: "left" ID_SWIPE_RIGHT_TEXT: "right" @@ -230,6 +231,21 @@ number: optimistic: true restore_value: true + - id: nr_button_multi_click_delay + name: Button multi-click delay + icon: mdi:timer-outline + unit_of_measurement: ms + mode: box + internal: false + entity_category: config + platform: template + min_value: 0 + max_value: 2000 + step: 10 + initial_value: ${BUTTON_MULTI_CLICK_DELAY} + optimistic: true + restore_value: true + script: - id: !extend boot_initialize then: diff --git a/versioning/VERSION b/versioning/VERSION index 76d000a..2247cc4 100644 --- a/versioning/VERSION +++ b/versioning/VERSION @@ -1 +1 @@ -2026.1.1 +2026.1.2 diff --git a/versioning/VERSION_YAML b/versioning/VERSION_YAML index 25a5e66..25f6c2d 100644 --- a/versioning/VERSION_YAML +++ b/versioning/VERSION_YAML @@ -1 +1 @@ -version: 2026.1.1 +version: 2026.1.2