From 2c16ba167941f77d77a694814449362a961ee298 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 30 May 2026 18:49:16 +0200 Subject: [PATCH] Separated long-press buttons into own HA entityies to make them usable --- esphome/lab-ble-proxy.yaml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/esphome/lab-ble-proxy.yaml b/esphome/lab-ble-proxy.yaml index 2c56ae0..30bfc58 100644 --- a/esphome/lab-ble-proxy.yaml +++ b/esphome/lab-ble-proxy.yaml @@ -558,7 +558,7 @@ button: value: !lambda "return std::vector({2, 0x01});" - platform: template - name: "OWON HOLD | LIGHT" + name: "OWON HOLD " id: owon_btn_hold on_press: - ble_client.ble_write: @@ -568,7 +568,17 @@ button: value: !lambda "return std::vector({3, 0x01});" - platform: template - name: "OWON RELATIVE | BT" + name: "OWON LIGHT" + id: owon_btn_light + on_press: + - ble_client.ble_write: + id: owon_ble_client + service_uuid: "0000fff0-0000-1000-8000-00805f9b34fb" + characteristic_uuid: "0000fff3-0000-1000-8000-00805f9b34fb" + value: !lambda "return std::vector({3, 0x00});" + + - platform: template + name: "OWON RELATIVE" id: owon_btn_rel on_press: - ble_client.ble_write: @@ -577,6 +587,16 @@ button: characteristic_uuid: "0000fff3-0000-1000-8000-00805f9b34fb" value: !lambda "return std::vector({4, 0x01});" + - platform: template + name: "OWON BT" + id: owon_btn_bt + on_press: + - ble_client.ble_write: + id: owon_ble_client + service_uuid: "0000fff0-0000-1000-8000-00805f9b34fb" + characteristic_uuid: "0000fff3-0000-1000-8000-00805f9b34fb" + value: !lambda "return std::vector({4, 0x00});" + - platform: template name: "OWON HZ | DUTY" id: owon_btn_hz