mirror of
https://github.com/tjhorner/upsy-desky.git
synced 2026-01-07 22:53:52 -05:00
Add runtime config button to re-detect decoder
This commit is contained in:
@@ -14,6 +14,17 @@ select:
|
||||
id(desk_height)->set_unit_of_measurement(x);
|
||||
id(target_desk_height)->traits.set_unit_of_measurement(x);
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: "Re-Detect Decoder"
|
||||
entity_category: "config"
|
||||
icon: "mdi:cog-refresh"
|
||||
on_press:
|
||||
- uart.write:
|
||||
id: handset_tx
|
||||
data: [ 0x0 ]
|
||||
- standing_desk_height.detect_decoder: desk_height
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
name: "Min Target Height"
|
||||
|
||||
Reference in New Issue
Block a user