mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Update notification example for shopping list (#22164)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
be38b6a948
commit
30bb6b4a21
@ -58,18 +58,18 @@ Clear completed items from the shopping list.
|
|||||||
|
|
||||||
## Using in Automations
|
## 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.
|
The simplest way to use the 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 %}
|
{% raw %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: notify.notify
|
- service: notify.notify
|
||||||
title: "Time to shop?"
|
data:
|
||||||
message: 'Click to open the shopping list'
|
title: "Time to shop?"
|
||||||
data:
|
message: "Click to open the shopping list"
|
||||||
clickAction: "/shopping-list"
|
data:
|
||||||
url: "/shopping-list"
|
clickAction: "/shopping-list"
|
||||||
|
url: "/shopping-list"
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user