I’m trying to showing up a persistent notification with the message body that come from the argoments of the sender, but in the persistent notification I get the exactly string {{ trigger.event.data.args }}
used on the code.
Same issue for the IFTTT trigger.
This is my code
- alias: 'Telegram test'
trigger:
- platform: event
event_type: telegram_command
event_data:
command: '/test'
action:
- service: persistent_notification.create
data:
title: 'Telegram chatbot'
message: >-
{{ trigger.event.data.args }}
notification_id: telegram_chatbot
… tried also to send a command via IFTTT with this code …
- id: 'ifttt_parser'
alias: IFTTT_parser
trigger:
- platform: event
event_type: ifttt_webhook_received
event_data:
action: call_service
action:
service_template: >-
{{ trigger.event.data.service }}
data_template:
entity_id: >-
{{ trigger.event.data.entity_id }}
… and by this way it works! so… the parameters is passed! well… why this isn’t true for the persistent notification?