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