@@ -502,6 +502,7 @@ api:
|
|||||||
- service: notification_clear
|
- service: notification_clear
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
|
if (current_page->state == "notification") goto_page->execute("home");
|
||||||
notification_label->publish_state("");
|
notification_label->publish_state("");
|
||||||
notification_text->publish_state("");
|
notification_text->publish_state("");
|
||||||
notification_unread->turn_off();
|
notification_unread->turn_off();
|
||||||
@@ -2808,7 +2809,9 @@ script:
|
|||||||
then:
|
then:
|
||||||
- delay: !lambda return (int(timeout_page->state) *1000);
|
- delay: !lambda return (int(timeout_page->state) *1000);
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
|
#if ESPHOME_LOG_LEVEL > ESPHOME_LOG_LEVEL_DEBUG
|
||||||
ESP_LOGV("script.timer_page", "Timed out on page: %s", current_page->state.c_str());
|
ESP_LOGV("script.timer_page", "Timed out on page: %s", current_page->state.c_str());
|
||||||
|
#endif
|
||||||
if (timeout_page->state >= 1 and
|
if (timeout_page->state >= 1 and
|
||||||
current_page->state != "boot" and
|
current_page->state != "boot" and
|
||||||
current_page->state != "confirm" and
|
current_page->state != "confirm" and
|
||||||
|
|||||||
Reference in New Issue
Block a user