mirror of
https://github.com/tjhorner/upsy-desky.git
synced 2026-01-14 17:58:01 -05:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
583a14d664 |
@@ -1,18 +1,20 @@
|
||||
select:
|
||||
- platform: template
|
||||
name: "Height Units"
|
||||
entity_category: "config"
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
options:
|
||||
- in
|
||||
- cm
|
||||
initial_option: ${default_height_units}
|
||||
on_value:
|
||||
then:
|
||||
lambda: |
|
||||
id(desk_height)->set_unit_of_measurement(x.c_str());
|
||||
id(target_desk_height)->traits.set_unit_of_measurement(x.c_str());
|
||||
# Temporarily removed due to a compatibility issue with ESPHome 2023.5
|
||||
# select:
|
||||
# - platform: template
|
||||
# name: "Height Units"
|
||||
# entity_category: "config"
|
||||
# optimistic: true
|
||||
# restore_value: true
|
||||
# options:
|
||||
# - in
|
||||
# - cm
|
||||
# initial_option: ${default_height_units}
|
||||
# on_value:
|
||||
# then:
|
||||
# lambda: |
|
||||
# const char *unit = x.c_str();
|
||||
# id(desk_height)->set_unit_of_measurement(unit);
|
||||
# id(target_desk_height)->traits.set_unit_of_measurement(unit);
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
|
||||
@@ -12,7 +12,7 @@ esphome:
|
||||
data: [ 0x0 ]
|
||||
project:
|
||||
name: tj_horner.upsy_desky
|
||||
version: "1.0.1"
|
||||
version: "1.0.2"
|
||||
|
||||
uart:
|
||||
id: handset_tx
|
||||
|
||||
@@ -23,4 +23,4 @@ ota:
|
||||
password: ""
|
||||
|
||||
dashboard_import:
|
||||
package_import_url: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.0.1
|
||||
package_import_url: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.0.2
|
||||
|
||||
Reference in New Issue
Block a user