I wanted to create a single automation using if then statement to integrate different commands.
I tried to set it up like this:
alias: Telegram
description: ""
triggers:
- event_type: telegram_command
trigger: event
conditions: []
actions:
- if:
- condition: template
value_template: "{{ trigger.event.data.command }} == \"/ping\""
then:
- action: notify.notifyuser
metadata: {}
data:
message: Pong
mode: single
The proble is the the value_template of the condition is always false.
First of all I do not know how to escape the /, i tryed using quotes, doublequotes, no quotes but the result is always false.
Considering I couldnāt find any sample I was wondering if this can work.
Regards