Expose buttons Owon multimeter buttons to HA.
This commit is contained in:
@@ -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<uint8_t>({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<uint8_t>({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<uint8_t>({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<uint8_t>({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<uint8_t>({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<uint8_t>({6, 0x01});"
|
||||
|
||||
Reference in New Issue
Block a user