mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 18:06:54 +00:00
Add sort list service to Shopping List (#26839)
This commit is contained in:
parent
092a395511
commit
eae4e02a0d
@ -65,6 +65,14 @@ Mark all items as incomplete in the shopping list.
|
|||||||
|
|
||||||
Clear completed items from the shopping list.
|
Clear completed items from the shopping list.
|
||||||
|
|
||||||
|
### Service `shopping_list.sort`
|
||||||
|
|
||||||
|
Sort all items by name in the shopping list.
|
||||||
|
|
||||||
|
| Service data attribute | Optional | Description |
|
||||||
|
|------------------------|----------|---------------------------------------------------------------------|
|
||||||
|
| `reverse` | yes | Whether to sort in reverse (_descending_) order. (default: `False`) |
|
||||||
|
|
||||||
## Using in Automations
|
## Using in Automations
|
||||||
|
|
||||||
A `shopping_list_updated` event is triggered when items in the list are modified, with the following data payload attached to it. This can be used to trigger automations such as sending a push notification when someone adds an item to the shopping list, which when clicked, will open the list.
|
A `shopping_list_updated` event is triggered when items in the list are modified, with the following data payload attached to it. This can be used to trigger automations such as sending a push notification when someone adds an item to the shopping list, which when clicked, will open the list.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user