totolino
(totolino)
1
Hi guys.
I’m trying to create an intent for the shopping list.
addShoppingListItem:
action:
- service: shopping_list.add_item
data_template:
name: {{ shopping_item }}
This gives me this error:
Tue Jan 01 2019 15:19:43 GMT+0100 (Mitteleuropäische Normalzeit)
invalid key: "OrderedDict([('shopping_item', None)])"
in "/home/homeassistant/.homeassistant/intent_script.yaml", line 167, column 0
totolino
(totolino)
2
When i do it like that :
addShoppingListItem:
action:
- service: shopping_list.add_item
data:
name: '{{ shopping_item }}'
{{ shopping_item }}
is added to my shopping list as a word
I think I’m a little late here. but
conversation:
intents:
shoppinglistadditem:
- "[morgen] {item} [auf die] [einkaufen] [kaufen] [einkaufsliste] "
intent_script:
shoppinglistadditem:
action:
service: shopping_list.add_item
data_template:
name: "{{item}}"
speech:
text: "{{item}} ist auf deiner Liste"
just stumbled across here because I try to find a template to get the items out as a string