Fix var name tft_version
This commit is contained in:
@@ -1804,6 +1804,22 @@ text_sensor:
|
|||||||
|
|
||||||
### Scripts ######
|
### Scripts ######
|
||||||
script:
|
script:
|
||||||
|
- id: boot_progress
|
||||||
|
mode: restart
|
||||||
|
parameters:
|
||||||
|
step: uint
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
timer_reset_all->execute();
|
||||||
|
if (step == 10) {
|
||||||
|
ESP_LOGD("script.boot_progress", "Progress: Completed");
|
||||||
|
disp1->set_component_value("boot.progress", 100);
|
||||||
|
} else {
|
||||||
|
step = int(round((blueprint_status->state + (step/10))/2));
|
||||||
|
ESP_LOGD("script.boot_progress", "Progress: %i%%", step);
|
||||||
|
disp1->set_component_value("boot.progress", step);
|
||||||
|
}
|
||||||
|
|
||||||
- id: change_climate_state
|
- id: change_climate_state
|
||||||
mode: restart
|
mode: restart
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2137,22 +2153,6 @@ script:
|
|||||||
ESP_LOGD("script.page_boot", "Jump to wake-up page: %s", wakeup_page_name->state.c_str());
|
ESP_LOGD("script.page_boot", "Jump to wake-up page: %s", wakeup_page_name->state.c_str());
|
||||||
goto_page->execute(wakeup_page_name->state.c_str());
|
goto_page->execute(wakeup_page_name->state.c_str());
|
||||||
|
|
||||||
- id: boot_progress
|
|
||||||
mode: restart
|
|
||||||
parameters:
|
|
||||||
step: uint
|
|
||||||
then:
|
|
||||||
- lambda: |-
|
|
||||||
timer_reset_all->execute();
|
|
||||||
if (step == 10) {
|
|
||||||
ESP_LOGD("script.boot_progress", "Progress: Completed");
|
|
||||||
disp1->set_component_value("boot.progress", 100);
|
|
||||||
} else {
|
|
||||||
step = int(round((blueprint_status->state + (step/10))/2));
|
|
||||||
ESP_LOGD("script.boot_progress", "Progress: %i%%", step);
|
|
||||||
disp1->set_component_value("boot.progress", step);
|
|
||||||
}
|
|
||||||
|
|
||||||
- id: page_buttonpage
|
- id: page_buttonpage
|
||||||
mode: restart
|
mode: restart
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2189,6 +2189,10 @@ script:
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
// Report new page to logs
|
// Report new page to logs
|
||||||
ESP_LOGD("script.page_changed", "New page: %s", current_page->state.c_str());
|
ESP_LOGD("script.page_changed", "New page: %s", current_page->state.c_str());
|
||||||
|
if (current_page->state.empty()) {
|
||||||
|
goto_page->execute("boot");
|
||||||
|
page_changed->stop();
|
||||||
|
}
|
||||||
|
|
||||||
// Reset globals
|
// Reset globals
|
||||||
if (current_page->state != "alarm" &&
|
if (current_page->state != "alarm" &&
|
||||||
@@ -2713,6 +2717,7 @@ script:
|
|||||||
mode: restart
|
mode: restart
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
|
boot_progress->stop();
|
||||||
change_climate_state->stop();
|
change_climate_state->stop();
|
||||||
check_versions->stop();
|
check_versions->stop();
|
||||||
display_embedded_temp->stop();
|
display_embedded_temp->stop();
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ Page boot
|
|||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
vis unavailable,0
|
vis unavailable,0
|
||||||
printh 92
|
|
||||||
prints "current_page",0
|
|
||||||
printh 00
|
|
||||||
prints "boot",0
|
|
||||||
printh 00
|
|
||||||
printh FF FF FF
|
|
||||||
|
|
||||||
Page Exit Event
|
Page Exit Event
|
||||||
dim=0
|
dim=0
|
||||||
@@ -188,11 +182,15 @@ Timer tm_esphome
|
|||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 10000
|
Period (ms): 1000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
|
if(tm_esphome.tim!=10000)
|
||||||
|
{
|
||||||
|
tm_esphome.tim=10000
|
||||||
|
}
|
||||||
counter.val++
|
counter.val++
|
||||||
if(counter.val>30)
|
if(counter.val>30)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ Page boot
|
|||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
vis unavailable,0
|
vis unavailable,0
|
||||||
printh 92
|
|
||||||
prints "boot.current_page",0
|
|
||||||
printh 00
|
|
||||||
prints "boot",0
|
|
||||||
printh 00
|
|
||||||
printh FF FF FF
|
|
||||||
|
|
||||||
Page Exit Event
|
Page Exit Event
|
||||||
dim=0
|
dim=0
|
||||||
@@ -195,11 +189,15 @@ Timer tm_esphome
|
|||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 10000
|
Period (ms): 1000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
|
if(tm_esphome.tim!=10000)
|
||||||
|
{
|
||||||
|
tm_esphome.tim=10000
|
||||||
|
}
|
||||||
counter.val++
|
counter.val++
|
||||||
if(counter.val>30)
|
if(counter.val>30)
|
||||||
{
|
{
|
||||||
@@ -222,7 +220,7 @@ Timer tm_esphome
|
|||||||
prints charset,0
|
prints charset,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
printh 92
|
printh 92
|
||||||
prints "tft_version",0
|
prints "boot.tft_version",0
|
||||||
printh 00
|
printh 00
|
||||||
prints tft_version.txt,0
|
prints tft_version.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ Page boot
|
|||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
vis unavailable,0
|
vis unavailable,0
|
||||||
printh 92
|
|
||||||
prints "boot.current_page",0
|
|
||||||
printh 00
|
|
||||||
prints "boot",0
|
|
||||||
printh 00
|
|
||||||
printh FF FF FF
|
|
||||||
|
|
||||||
Page Exit Event
|
Page Exit Event
|
||||||
dim=0
|
dim=0
|
||||||
@@ -188,11 +182,15 @@ Timer tm_esphome
|
|||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 10000
|
Period (ms): 1000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
|
if(tm_esphome.tim!=10000)
|
||||||
|
{
|
||||||
|
tm_esphome.tim=10000
|
||||||
|
}
|
||||||
counter.val++
|
counter.val++
|
||||||
if(counter.val>30)
|
if(counter.val>30)
|
||||||
{
|
{
|
||||||
@@ -215,7 +213,7 @@ Timer tm_esphome
|
|||||||
prints charset,0
|
prints charset,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
printh 92
|
printh 92
|
||||||
prints "tft_version",0
|
prints "boot.tft_version",0
|
||||||
printh 00
|
printh 00
|
||||||
prints tft_version.txt,0
|
prints tft_version.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user