Hello, I’m trying to setup this automation .
the trigger is a json, and the value is checked in the condition part, this is working , as the action correctly sends the message if the message is a fixed string, but I’m not able to translate the json value into a string that the message can take.
How do I pass the mqtt json value as a string to the message parameter ?
alias: ‘CallerID 1’
trigger:
platform: mqtt
topic: home/sip
condition:
condition: template
value_template: ‘{{ “incoming” == trigger.payload_json.status }}’
action:
service: notify.salatv_tv
data:
message: ‘{{ trigger.payload_json.callerID }}’
Claudio
PS
here is the json value
{
“status”: “incoming”,
“callerID”:“391-555-5555”,
“uri”:“sip:[email protected];user=phone”
}