I am trying to pass data to the alexa_media notify service in Node Red using a template. I have tested the data that am sending in Developer Tools, Services and it works as intended:
target: Lounge Echo
message: “Testing testing 1 2 3”
data:
type: announce
When I try to convert it to a template format for a ‘get template’ node and pass it to a ‘call service’ node with domain notify and service alexa_media, I get an error: “Call-service API error. Error Message: required key not provided @ data[‘message’]”
This is the syntax that I have used for the template:
{
“data_template”:{
“target”: “Lounge Echo”,
“message”: “Testing testing 1 2 3”
“data”:
“type”: “announce”
}
}
I’m completely stumped as to what formatting I have got wrong that is preventing this from working, can someone help please?
Cheers