I’m going crazy trying to solve this problem. I have an alarm that sends me a message to my cell phone and telegram bot indicating the sensor that caused the trigger.
Sending to mobile works fine and is as follows:
data:
title: Antifurto
message: |
🚨 Allarme intervenuto per!
{{states('input_text.primo_sensore_attivato') }}
action: notify.mobile_app_myphone
enabled: true
I receive the sensor written in correctly: ‘input_text.primo_sensore_attivato’.
For the telegram bo I use this
data:
title: ANTIFURTO
message: |
🚨 Allarme
{{ states('input_text.primo_sensore_attivato')}}
action: notify.telegram
enabled: true
So nothing arrives on Telegram. If I remove the template from the telegram bot I get the message 🚨 Allarme
but without the sensor that activated it.
I tried various examples found in the forum but without success. Do you have any suggestions for me?
thanks