From d45f9bf00d82b73440522cc3334fd0a955f661ec Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Mon, 25 May 2020 15:54:10 +0300 Subject: [PATCH] Update whats_new_1.1.0-b2.md --- service/whats_new_1.1.0-b2.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/service/whats_new_1.1.0-b2.md b/service/whats_new_1.1.0-b2.md index 28a8964..579a896 100644 --- a/service/whats_new_1.1.0-b2.md +++ b/service/whats_new_1.1.0-b2.md @@ -1,5 +1,21 @@ - **Actionable notifications**. Actions could call service or fire events. The event type is `ha_client_event`. - **Additional notification options**. Add `image` to the notification `data` with image url to show image in notification. Use `tag` in notification `data` to replace already exsisting notification with the same `tag`. Use `dismiss: true` in notification `data` to dismiss previously shown notification with the same `tag`. Use `autoDismiss: false` to prevent notification from being dismissed after tap/click. Use `channelId` to create and use custom notification channels. +### Example of `notify` service data: +``` +message: "Notification text" +title: "Hey!" +data: + tag: myNotificationTag + autoDismiss: false + actions: + - action: call-service + title: Call service + service: light.turn_on + service_data: + entity_id: light.hallway + - action: my_event_action + title: Fire event +``` - **Full badges support** including *entity_filter* - **Light card suppot**. Brightness could be changed by tapping, but not dragging for now. Dragging support will be added later - **States-like UI** are now generated if you don't have Lovlease UI config yet