From f9b32d06a4ef8f1c7d593fc740ea01912afd1c48 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 28 May 2026 16:04:53 +0200 Subject: [PATCH] Expose buttons Owon multimeter buttons to HA. --- esphome/lab-ble-proxy.yaml | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/esphome/lab-ble-proxy.yaml b/esphome/lab-ble-proxy.yaml index e722c19..7f5ea67 100644 --- a/esphome/lab-ble-proxy.yaml +++ b/esphome/lab-ble-proxy.yaml @@ -379,3 +379,62 @@ button: name: "${friendly_name} Atorch Setup" enter: name: "${friendly_name} Atorch Enter" + - platform: template + name: "OWON SELECT" + id: owon_btn_select + 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({1, 0x01});" + + - platform: template + name: "OWON RANGE" + id: owon_btn_range + 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({2, 0x01});" + + - platform: template + name: "OWON HLD/LIG" + id: owon_btn_hold + 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, 0x01});" + + - platform: template + name: "OWON REL/BT" + id: owon_btn_rel + 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, 0x01});" + + - platform: template + name: "OWON HZ/DUTY" + id: owon_btn_hz + 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({5, 0x01});" + + - platform: template + name: "OWON MAX/MIN" + id: owon_btn_maxmin + 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({6, 0x01});"