extended_openai_conversation
extended_openai_conversation copied to clipboard
Adding item to 'todo.shopping_list '
I've been trying to work out the function to add items to my todo.shopping list...?
I've managed to get it working with this function I amended from your example just in case anyone else needs it!
- spec:
name: add_item_to_shopping_list
description: Add item todo shopping list
parameters:
type: object
properties:
item:
type: string
description: The item to be added to shopping_list
required:
- item
function:
type: script
sequence:
- service: todo.add_item data: item: '{{item'}}' target: entity_id: todo.shopping_list
if it's already been done just delete this...
the formatting is not showing correctly so it needs correcting
This is the spec that I was instructed to use that works 👍
- spec:
name: add_item_to_shopping_cart
description: Add item to shopping cart
parameters:
type: object
properties:
item:
type: string
description: The item to be added to cart
required:
- item
function:
type: script
sequence:
- service: shopping_list.add_item data: name: '{{item}}'
Hi thanks..for the reply but this doesn't work for the "Todo" shopping list...just thought I'd put up ammended function for the Home assistant Todo. Lists
just adding that?
any syntax?
Something went wrong: Action todo.add_task not found this is my error
Does it still have a problem when using the add_item_to_list example?
yes
Andres Roepke
On Wed, Jan 29, 2025 at 12:45 Min Jekal @.***> wrote:
Does it still have a problem when using the add_item_to_list https://github.com/jekalmin/extended_openai_conversation/tree/main/examples/function/shopping_list#add_item_to_list example?
— Reply to this email directly, view it on GitHub https://github.com/jekalmin/extended_openai_conversation/issues/168#issuecomment-2622011665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOTKWXLKPG5QFW33WHHMJT2NDZRHAVCNFSM6AAAAABULDB5UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRSGAYTCNRWGU . You are receiving this because you commented.Message ID: @.***>
Can you share yaml of function?
todo.add_task
should not be present in yaml