@@ -859,12 +859,8 @@ display:
|
||||
- script.execute: setup_sequence
|
||||
on_page:
|
||||
lambda: |-
|
||||
if (!id(is_uploading_tft)) {
|
||||
page_id->update();
|
||||
if (current_page->state != page_names[x] or x == 9) {
|
||||
current_page->publish_state(page_names[x]);
|
||||
page_changed->execute(page_names[x]);
|
||||
}
|
||||
if (current_page->state != page_names[x] or x == 9) {
|
||||
current_page->publish_state(page_names[x]);
|
||||
}
|
||||
|
||||
on_touch:
|
||||
@@ -1528,23 +1524,6 @@ sensor:
|
||||
internal: false
|
||||
disabled_by_default: false
|
||||
|
||||
###### Page Id - Current #####
|
||||
- id: page_id
|
||||
name: Page Id
|
||||
platform: nextion
|
||||
variable_name: dp
|
||||
precision: 0
|
||||
accuracy_decimals: 0
|
||||
internal: true
|
||||
entity_category: diagnostic
|
||||
on_value:
|
||||
then:
|
||||
- lambda: |-
|
||||
if (!id(is_uploading_tft) and current_page->state != page_names[x]) {
|
||||
current_page->publish_state(page_names[x]);
|
||||
page_changed->execute(page_names[x]);
|
||||
}
|
||||
|
||||
##### Display mode (1 = EU, 2 = US, 3 = US Landscape)
|
||||
- id: display_mode
|
||||
name: Display mode
|
||||
@@ -1666,10 +1645,17 @@ text_sensor:
|
||||
##### Current page name #####
|
||||
- id: current_page
|
||||
name: Current Page
|
||||
platform: template
|
||||
platform: nextion
|
||||
component_name: current_page
|
||||
icon: mdi:tablet-dashboard
|
||||
internal: false
|
||||
disabled_by_default: false
|
||||
on_value:
|
||||
then:
|
||||
- lambda: |-
|
||||
if (!id(is_uploading_tft)) {
|
||||
page_changed->execute(x.c_str());
|
||||
}
|
||||
|
||||
- id: notification_label
|
||||
name: Notification Label
|
||||
@@ -2646,12 +2632,6 @@ script:
|
||||
- id: setup_sequence
|
||||
mode: restart
|
||||
then:
|
||||
- lambda: |-
|
||||
page_id->update();
|
||||
- wait_until:
|
||||
condition:
|
||||
- lambda: !lambda return (not isnan(page_id->state));
|
||||
timeout: 15s
|
||||
- lambda: display_charset->update();
|
||||
- wait_until:
|
||||
condition:
|
||||
|
||||
Reference in New Issue
Block a user