@@ -2053,11 +2053,11 @@ script:
|
|||||||
mode: restart
|
mode: restart
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
if (current_page->state == "notification") disp1->goto_page("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();
|
||||||
refresh_notification->execute();
|
refresh_notification->execute();
|
||||||
|
if (current_page->state == "notification") disp1->goto_page("home");
|
||||||
|
|
||||||
- id: open_entity_settings_page
|
- id: open_entity_settings_page
|
||||||
mode: restart
|
mode: restart
|
||||||
@@ -2274,6 +2274,7 @@ script:
|
|||||||
then:
|
then:
|
||||||
- script.execute: refresh_relays
|
- script.execute: refresh_relays
|
||||||
- script.execute: refresh_wifi_icon
|
- script.execute: refresh_wifi_icon
|
||||||
|
- script.execute: refresh_notification
|
||||||
|
|
||||||
- id: page_keyb_num
|
- id: page_keyb_num
|
||||||
mode: restart
|
mode: restart
|
||||||
@@ -2407,7 +2408,9 @@ script:
|
|||||||
condition:
|
condition:
|
||||||
- lambda: !lambda return id(setup_sequence_completed);
|
- lambda: !lambda return id(setup_sequence_completed);
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
bool is_notification = (notification_text->state.empty() and notification_label->state.empty());
|
static const char *const TAG = "script.refresh_notification";
|
||||||
|
bool is_notification = ((not notification_text->state.empty()) or (not notification_label->state.empty()));
|
||||||
|
ESP_LOGV(TAG, "Notification: %s", is_notification ? "True" : "False");
|
||||||
disp1->send_command_printf("is_notification=%i", is_notification ? 0 : 1);
|
disp1->send_command_printf("is_notification=%i", is_notification ? 0 : 1);
|
||||||
set_component_color->execute("home.bt_notific", notification_unread->state ? id(home_notify_icon_color_unread) : id(home_notify_icon_color_normal));
|
set_component_color->execute("home.bt_notific", notification_unread->state ? id(home_notify_icon_color_unread) : id(home_notify_icon_color_normal));
|
||||||
if (current_page->state == "home") {
|
if (current_page->state == "home") {
|
||||||
|
|||||||
Binary file not shown.
@@ -290,7 +290,7 @@ Text wifi_icon
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î–¨
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -326,7 +326,7 @@ Text bt_notific
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î‡
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -343,7 +343,7 @@ Text bt_qrcode
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î²
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -357,7 +357,7 @@ Text bt_entities
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î·
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
|
|||||||
Binary file not shown.
@@ -290,7 +290,7 @@ Text wifi_icon
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î–¨
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -326,7 +326,7 @@ Text bt_notific
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î‡
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -343,7 +343,7 @@ Text bt_qrcode
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î²
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -357,7 +357,7 @@ Text bt_entities
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : on press and release
|
Send Component ID : on press and release
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text : î·
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
|
|||||||
BIN
nspanel_eu.tft
BIN
nspanel_eu.tft
Binary file not shown.
BIN
nspanel_us.tft
BIN
nspanel_us.tft
Binary file not shown.
Reference in New Issue
Block a user