From d1b0695a6b1f40bc71d0ed8af2f7fdd7d021ca4a Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:44:22 +0200 Subject: [PATCH] Triggers HA event when button is pressed on page `notification` Solves #2344 --- esphome/nspanel_esphome_core_page_notification.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/nspanel_esphome_core_page_notification.yaml b/esphome/nspanel_esphome_core_page_notification.yaml index 8c3295f3a..1e70afec5 100644 --- a/esphome/nspanel_esphome_core_page_notification.yaml +++ b/esphome/nspanel_esphome_core_page_notification.yaml @@ -48,6 +48,7 @@ display: if (page_id == 16) { // Page Notification switch (component_id) { case 7: // bt_accept + ha_button->execute("notification", "bt_accept", touch_event ? "press" : "released"); if (!touch_event) { // Release notification_label->publish_state(""); notification_text->publish_state(""); @@ -57,6 +58,7 @@ display: } break; case 8: // bt_clear + ha_button->execute("notification", "bt_clear", touch_event ? "press" : "released"); if (!touch_event) { // Release notification_unread->turn_off(); goto_page->execute("home", false);