Auto detection beta

This commit is contained in:
TJ Horner
2023-03-11 22:13:24 -08:00
parent f4d61cdb36
commit 655cb303d3
2 changed files with 1 additions and 15 deletions

View File

@@ -1,17 +1,4 @@
select:
- platform: template
name: "Height Decoder Variant"
entity_category: "config"
optimistic: true
restore_value: true
options:
- uplift
- jarvis
- omnidesk
initial_option: ${standing_desk_variant}
on_value:
then:
lambda: "id(desk_height)->set_decoder_variant(x);"
- platform: template
name: "Height Units"
entity_category: "config"

View File

@@ -32,7 +32,6 @@ substitutions:
standing_desk_uart_rx_pin: "17"
standing_desk_up_pin: "21"
standing_desk_down_pin: "22"
standing_desk_variant: "uplift"
standing_desk_min_height: "25.2"
standing_desk_max_height: "50.8"
@@ -46,7 +45,7 @@ substitutions:
default_height_units: "in" # Must be "in" or "cm"
packages:
standing_desk: github://tjhorner/esphome-standing-desk/configs/template.yaml@master
standing_desk: github://tjhorner/esphome-standing-desk/configs/template.yaml@auto-detection
addon_presets: !include addons/presets.yaml
addon_stable_ids: !include addons/stable-ids.yaml
addon_runtime_config: !include addons/runtime-config.yaml