Minor adjustments on settings page
This commit is contained in:
@@ -595,8 +595,8 @@ api:
|
||||
ESP_LOGV("service.page_settings", "sleep_mode: %s", sleep_mode.c_str());
|
||||
ESP_LOGV("service.page_settings", "brightness: %s", brightness.c_str());
|
||||
ESP_LOGV("service.page_settings", "dimming: %s", dimming.c_str());
|
||||
if (not reboot.empty()) id(disp1).set_component_text_printf("settings.lbl_reboot", "%s", reboot.c_str());
|
||||
if (not sleep_mode.empty()) id(disp1).set_component_text_printf("settings.lbl_sleep", "%s", sleep_mode.c_str());
|
||||
if (not reboot.empty()) id(disp1).set_component_text_printf("settings.lbl_reboot", " %s", reboot.c_str());
|
||||
if (not sleep_mode.empty()) id(disp1).set_component_text_printf("settings.lbl_sleep", " %s", sleep_mode.c_str());
|
||||
if (not brightness.empty()) id(disp1).set_component_text_printf("settings.lbl_brightness", "%s", brightness.c_str());
|
||||
if (not dimming.empty()) id(disp1).set_component_text_printf("settings.lbl_dimming", "%s", dimming.c_str());
|
||||
|
||||
@@ -1512,6 +1512,7 @@ display:
|
||||
- lambda: |-
|
||||
id(disp1).send_command_printf("page 8");
|
||||
id(disp1).set_component_text_printf("boot.esph_version", "%s", "${version}"); // ### esphome-version ###
|
||||
id(disp1).show_component("bt_reboot");
|
||||
- wait_until:
|
||||
api.connected
|
||||
- lambda: |-
|
||||
@@ -2049,7 +2050,7 @@ script:
|
||||
- id: check_versions
|
||||
mode: restart
|
||||
then:
|
||||
- delay: 15s
|
||||
- delay: 30s
|
||||
- lambda: |-
|
||||
ESP_LOGD("script.check_versions", "ESPHome version: ${version}");
|
||||
ESP_LOGD("script.check_versions", "TFT version: %s", id(version_tft).c_str());
|
||||
|
||||
BIN
nspanel_eu.HMI
BIN
nspanel_eu.HMI
Binary file not shown.
BIN
nspanel_eu.tft
BIN
nspanel_eu.tft
Binary file not shown.
@@ -21,6 +21,7 @@ Page boot
|
||||
prints nspanelevent.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis bt_reboot,0
|
||||
|
||||
Variable (int32) counter
|
||||
Attributes
|
||||
@@ -139,7 +140,7 @@ Text bluep_version
|
||||
Text :
|
||||
Max. Text Size : 8
|
||||
|
||||
Dual-state Button a01
|
||||
Dual-state Button bt_reboot
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
|
||||
@@ -67,8 +67,8 @@ Text lbl_reboot
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Reboot
|
||||
Max. Text Size : 15
|
||||
Text : Reboot
|
||||
Max. Text Size : 25
|
||||
|
||||
Text lbl_sleep
|
||||
Attributes
|
||||
@@ -77,8 +77,8 @@ Text lbl_sleep
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Sleep mode
|
||||
Max. Text Size : 15
|
||||
Text : Sleep mode
|
||||
Max. Text Size : 25
|
||||
|
||||
Text lbl_brightness
|
||||
Attributes
|
||||
|
||||
BIN
nspanel_us.HMI
BIN
nspanel_us.HMI
Binary file not shown.
BIN
nspanel_us.tft
BIN
nspanel_us.tft
Binary file not shown.
@@ -21,6 +21,7 @@ Page boot
|
||||
prints nspanelevent.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis bt_reboot,0
|
||||
|
||||
Variable (int32) counter
|
||||
Attributes
|
||||
@@ -139,7 +140,7 @@ Text bluep_version
|
||||
Text :
|
||||
Max. Text Size : 8
|
||||
|
||||
Dual-state Button a01
|
||||
Dual-state Button bt_reboot
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
|
||||
@@ -67,8 +67,8 @@ Text lbl_reboot
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Reboot
|
||||
Max. Text Size : 15
|
||||
Text : Reboot
|
||||
Max. Text Size : 25
|
||||
|
||||
Text lbl_sleep
|
||||
Attributes
|
||||
@@ -77,8 +77,8 @@ Text lbl_sleep
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Sleep mode
|
||||
Max. Text Size : 15
|
||||
Text : Sleep mode
|
||||
Max. Text Size : 25
|
||||
|
||||
Text lbl_brightness
|
||||
Attributes
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -21,6 +21,7 @@ Page boot
|
||||
prints nspanelevent.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis bt_reboot,0
|
||||
|
||||
Variable (int32) counter
|
||||
Attributes
|
||||
@@ -139,7 +140,7 @@ Text bluep_version
|
||||
Text :
|
||||
Max. Text Size : 8
|
||||
|
||||
Dual-state Button a01
|
||||
Dual-state Button bt_reboot
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
|
||||
@@ -67,8 +67,8 @@ Text lbl_reboot
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Reboot
|
||||
Max. Text Size : 15
|
||||
Text : Reboot
|
||||
Max. Text Size : 25
|
||||
|
||||
Text lbl_sleep
|
||||
Attributes
|
||||
@@ -77,8 +77,8 @@ Text lbl_sleep
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Sleep mode
|
||||
Max. Text Size : 15
|
||||
Text : Sleep mode
|
||||
Max. Text Size : 25
|
||||
|
||||
Text lbl_brightness
|
||||
Attributes
|
||||
|
||||
Reference in New Issue
Block a user