TFT upload selectors
This commit is contained in:
@@ -9,7 +9,6 @@ substitutions:
|
||||
device_name: nspanel
|
||||
wifi_ssid: nspanel
|
||||
wifi_password: NSPanel_Blueprint
|
||||
nextion_update_url: "http://github.com/Blackymas/NSPanel_HA_Blueprint/raw/main/nspanel_blank.tft"
|
||||
pre_built: "true"
|
||||
|
||||
packages:
|
||||
@@ -17,8 +16,6 @@ packages:
|
||||
upload_tft_package: !include ./nspanel_esphome_addon_upload_tft.yaml # Core package
|
||||
|
||||
button:
|
||||
- id: !remove tft_update
|
||||
|
||||
- platform: factory_reset
|
||||
name: Factory reset
|
||||
disabled_by_default: true
|
||||
@@ -56,6 +53,27 @@ logger:
|
||||
ota:
|
||||
password: ""
|
||||
|
||||
script:
|
||||
- id: !extend watchdog
|
||||
then:
|
||||
- lambda: |-
|
||||
static const char *const TAG = "prebuilt.script.watchdog";
|
||||
ESP_LOGI(TAG, "Pre-built version: ${pre_built}");
|
||||
|
||||
|
||||
select:
|
||||
- id: !extend tft_file
|
||||
platform: template
|
||||
options:
|
||||
- "NSPanel Blank"
|
||||
- "NSPanel EU"
|
||||
- "NSPanel US"
|
||||
- "NSPanel US Landscape"
|
||||
- "NSPanel EU (CJK languages)"
|
||||
- "NSPanel US (CJK languages)"
|
||||
- "NSPanel US Landscape (CJK languages)"
|
||||
initial_option: "NSPanel Blank"
|
||||
|
||||
wifi:
|
||||
ap: {}
|
||||
power_save_mode: LIGHT # To make it compatible with BLE
|
||||
|
||||
Reference in New Issue
Block a user