From 319bcba4510749c3960f529ed8bf22bbd3afcf43 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Mon, 28 Dec 2020 19:47:22 +0100 Subject: [PATCH] Example on notification to open the shopping list (#15983) --- source/_integrations/shopping_list.markdown | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/_integrations/shopping_list.markdown b/source/_integrations/shopping_list.markdown index 2e852ab46db..be4bee97dc0 100644 --- a/source/_integrations/shopping_list.markdown +++ b/source/_integrations/shopping_list.markdown @@ -43,3 +43,21 @@ You can add or remove items from your shopping list by using the following servi | Service data attribute | Optional | Description | |------------------------|----------|--------------------------------------------------------| | `name` | no | Name of the item to mark as completed. Example: "Milk" | + +## Using in Automations + +The simplest way use shopping list with automations (e.g., when entering a zone with shops) is to create a notification that can be clicked to open the shopping list. +This is tested to work with the Android companion app. + +{% raw %} + +```yaml +service: notify.notify +title: "Time to shop?" +message: 'Click to open the shopping list' +data: + clickAction: '/shopping-list' + url: '/shopping-list' +``` + +{% endraw %}