Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add HassListCompleteItem #3004

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions intents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ HassShoppingListAddItem:
description: "Item to add"
required: true

HassShoppingListRemoveItem:
supported: false
domain: shopping_list
description: "Checks off an item from a shopping list"
slots:
item:
description: "Item to check off"
required: true

# -----------------------------------------------------------------------------
# weather
# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -327,6 +336,18 @@ HassListAddItem:
description: "Name of the list"
required: true

HassListRemoveItem:
supported: false
domain: todo
description: "Checks off an item from a todo list"
slots:
item:
description: "Item to check off"
required: true
name:
description: "Name of the list"
required: true

# -----------------------------------------------------------------------------
# vacuum
# -----------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions responses/en/HassListRemoveItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: "en"
responses:
intents:
HassListRemoveItem:
item_removed: "Checked off {{ slots.item }}"
5 changes: 5 additions & 0 deletions responses/en/HassShoppingListRemoveItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: "en"
responses:
intents:
HassShoppingListRemoveItem:
item_removed: "Checked off {{ slots.item }}"
10 changes: 10 additions & 0 deletions sentences/en/shopping_list_HassShoppingListRemoveItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: "en"
intents:
HassShoppingListRemoveItem:
data:
- sentences:
- (check off|delete|remove) <item> (from|on|in) <my_list>
response: item_removed
expansion_rules:
my_list: "[my|the] [shopping] list"
item: "{shopping_list_item:item}"
12 changes: 12 additions & 0 deletions sentences/en/todo_HassListRemoveItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: "en"
intents:
HassListRemoveItem:
data:
- sentences:
- (check off|delete|remove) <item> (from|on|in) <my_list>
response: item_removed
requires_context:
domain: todo
expansion_rules:
my_list: "[my|the] {name} [list]"
item: "{shopping_list_item:item}"
11 changes: 11 additions & 0 deletions tests/en/shopping_list_HassShoppingListRemoveItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: en
tests:
- sentences:
- check off apples from my shopping list
- delete apples in my shopping list
- remove apples on my shopping list
intent:
name: HassShoppingListRemoveItem
slots:
item: "apples"
response: Checked off apples
12 changes: 12 additions & 0 deletions tests/en/todo_HassListRemoveItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: en
tests:
- sentences:
- check off apples from my trader joes list
- delete apples in my trader joes list
- remove apples on my trader joes list
intent:
name: HassListRemoveItem
slots:
item: "apples"
name: "Trader Joes"
response: Checked off apples