From bb321d226cff0787e7dab8a4003b2f2b8a6771bb Mon Sep 17 00:00:00 2001 From: jeakob <39410668+jeakob@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:54:14 +0100 Subject: [PATCH] Manual Reset - flexispot_e5b_esp32.yaml Add a manual reset button that works for Flexispot E5B. All credit to KrX3D for the idea. --- packages/esphome/flexispot_e5b_esp32.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/esphome/flexispot_e5b_esp32.yaml b/packages/esphome/flexispot_e5b_esp32.yaml index 8a63c9f..aadbc1b 100644 --- a/packages/esphome/flexispot_e5b_esp32.yaml +++ b/packages/esphome/flexispot_e5b_esp32.yaml @@ -266,6 +266,20 @@ switch: uart_id: desk_uart internal: false + #MANUAL RESET + #HOLD THE DOWN BUTTON UNTIL THE TABLE REACHES ITS LOWEST HEIGHT AND REBOUNDS + #MIGHT NEED TO BE RUN MULTIPLE TIMES DEPENDING ON THE HEIGHT + - platform: uart + name: "${device_name} Factory Reset" # Hold Down 5secs + id: switch_factory_reset + icon: mdi:factory + data: [0x9b, 0x06, 0x02, 0x02, 0x00, 0x0c, 0xa0, 0x9d] + uart_id: desk_uart + send_every: 1ms + on_turn_on: + - delay: 5000ms + - switch.turn_off: switch_factory_reset + cover: - platform: template name: "Desk"