Hello. I want to add the ability to send a message to a telegram bot and have it automatically add the message I sent to the shopping list. I have two questions:
- How can I make the bot respond to the message: “House need buy %”. And instead of the % symbol, any text that will be added to the shopping list. The problem is that so far it only reacts to a complete text match, and I need it to partially match
- How can I make sure that only the items I wrote after “House need buy” are included in the shopping list?
alias: TestMessage
description: ""
trigger:
- platform: event
event_type: telegram_text
event_data:
text: House need buy
condition: []
action:
- service: shopping_list.add_item
metadata: {}
data:
name: "{{trigger.event.data.text}}"
mode: single
Thanks!