Separated long-press buttons into own HA entityies to make them usable
This commit is contained in:
@@ -558,7 +558,7 @@ button:
|
|||||||
value: !lambda "return std::vector<uint8_t>({2, 0x01});"
|
value: !lambda "return std::vector<uint8_t>({2, 0x01});"
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "OWON HOLD | LIGHT"
|
name: "OWON HOLD "
|
||||||
id: owon_btn_hold
|
id: owon_btn_hold
|
||||||
on_press:
|
on_press:
|
||||||
- ble_client.ble_write:
|
- ble_client.ble_write:
|
||||||
@@ -568,7 +568,17 @@ button:
|
|||||||
value: !lambda "return std::vector<uint8_t>({3, 0x01});"
|
value: !lambda "return std::vector<uint8_t>({3, 0x01});"
|
||||||
|
|
||||||
- platform: template
|
- 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<uint8_t>({3, 0x00});"
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "OWON RELATIVE"
|
||||||
id: owon_btn_rel
|
id: owon_btn_rel
|
||||||
on_press:
|
on_press:
|
||||||
- ble_client.ble_write:
|
- ble_client.ble_write:
|
||||||
@@ -577,6 +587,16 @@ button:
|
|||||||
characteristic_uuid: "0000fff3-0000-1000-8000-00805f9b34fb"
|
characteristic_uuid: "0000fff3-0000-1000-8000-00805f9b34fb"
|
||||||
value: !lambda "return std::vector<uint8_t>({4, 0x01});"
|
value: !lambda "return std::vector<uint8_t>({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<uint8_t>({4, 0x00});"
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "OWON HZ | DUTY"
|
name: "OWON HZ | DUTY"
|
||||||
id: owon_btn_hz
|
id: owon_btn_hz
|
||||||
|
|||||||
Reference in New Issue
Block a user