change notification_show parameter to message
For compatibility with ESPHome 2023.11. Solves #1247
This commit is contained in:
@@ -69,7 +69,10 @@ packages:
|
|||||||
If you have a custom automation using very long hold (more than 15s) of hardware buttons it may fail as now the panel will restart with button hold for 15s.
|
If you have a custom automation using very long hold (more than 15s) of hardware buttons it may fail as now the panel will restart with button hold for 15s.
|
||||||
|
|
||||||
4. Logger via UART is disable
|
4. Logger via UART is disable
|
||||||
You can add it back as a [customization](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/%28EN%29-Customization/_edit#logger-via-uart):
|
You can add it back as a [customization](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/%28EN%29-Customization/_edit#logger-via-uart).
|
||||||
|
|
||||||
|
5. Service `notification_show` parameter `text` was renamed to `message` to support ESPHome 2023.11.0.
|
||||||
|
|
||||||
|
|
||||||
## Overview of noteworthy changes
|
## Overview of noteworthy changes
|
||||||
1. New Upload TFT engine
|
1. New Upload TFT engine
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ api:
|
|||||||
- service: notification_show
|
- service: notification_show
|
||||||
variables:
|
variables:
|
||||||
label: string
|
label: string
|
||||||
text: string
|
message: string
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
ESP_LOGV("service.notification_show", "Starting");
|
ESP_LOGV("service.notification_show", "Starting");
|
||||||
@@ -373,10 +373,10 @@ api:
|
|||||||
disp1->goto_page("notification");
|
disp1->goto_page("notification");
|
||||||
disp1->set_component_text_printf("notification.notifi_label", "%s", label.c_str());
|
disp1->set_component_text_printf("notification.notifi_label", "%s", label.c_str());
|
||||||
|
|
||||||
display_wrapped_text->execute("notification.notifi_text01", text.c_str(), id(display_mode) == 2 ? 23 : 32);
|
display_wrapped_text->execute("notification.notifi_text01", message.c_str(), id(display_mode) == 2 ? 23 : 32);
|
||||||
|
|
||||||
notification_label->publish_state(label.c_str());
|
notification_label->publish_state(label.c_str());
|
||||||
notification_text->publish_state(text.c_str());
|
notification_text->publish_state(message.c_str());
|
||||||
timer_reset_all->execute(current_page->state.c_str());
|
timer_reset_all->execute(current_page->state.c_str());
|
||||||
notification_unread->turn_on();
|
notification_unread->turn_on();
|
||||||
if (notification_sound->state) buzzer->play("two short:d=4,o=5,b=100:16e6,16e6");
|
if (notification_sound->state) buzzer->play("two short:d=4,o=5,b=100:16e6,16e6");
|
||||||
|
|||||||
Reference in New Issue
Block a user