#Replacing a voice automation intent script.

1 messages · Page 1 of 1 (latest)

hoary jackal
#

I want to use a mealie shopping list when I tell the voice assistant "add eggs to my shopping list". I think that I figured most of it out. But, getting eggs as data is what is confusing me. What else do i need to do?

intent_script:
  HassShoppingListAddItem:
    speech:
      text: "Added {{ slots.item }} to your shopping list."
    action:
      - action: todo.add_item
        target:
          entity_id: todo.mealie_vance_home
        data:
          item: "{{ slots.item }}"
amber forge
#

Think the other thing is, you would just use the slot name in an intent script. So {{ item }} instead of {{ trigger.item }}