From f2ca4936ae154ae2ac84a3f01696e76034a6da3a Mon Sep 17 00:00:00 2001 From: landon rohatensky Date: Tue, 30 Jul 2024 22:42:33 -0700 Subject: [PATCH] add service for notifications --- common/device_base.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/device_base.yaml b/common/device_base.yaml index 2e3cfc8..f1abcf0 100644 --- a/common/device_base.yaml +++ b/common/device_base.yaml @@ -25,6 +25,14 @@ api: then: - lambda: |- id(homeThingMenu)->goToScreenFromString(screen_name); + - service: notify_homething + variables: + title: string + message: string + # type_str: string + then: + - lambda: |- + id(homeThingMenu)->addNotification(title, message, "", true); time: - platform: homeassistant