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