extended_openai_conversation icon indicating copy to clipboard operation
extended_openai_conversation copied to clipboard

Adding item to 'todo.shopping_list '

Open debdalerichard opened this issue 11 months ago • 2 comments

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

debdalerichard avatar Mar 05 '24 19:03 debdalerichard

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}}'

TGrounds avatar Mar 05 '24 20:03 TGrounds

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

debdalerichard avatar Mar 08 '24 11:03 debdalerichard

just adding that?

any syntax?

Something went wrong: Action todo.add_task not found this is my error

kiloptero avatar Dec 29 '24 20:12 kiloptero

Does it still have a problem when using the add_item_to_list example?

jekalmin avatar Jan 29 '25 15:01 jekalmin

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: @.***>

kiloptero avatar Jan 29 '25 16:01 kiloptero

Can you share yaml of function? todo.add_task should not be present in yaml

jekalmin avatar Jan 30 '25 07:01 jekalmin