Closed martinhoess closed 4 years ago
https://zachowj.github.io/node-red-contrib-home-assistant-websocket/node/call-service.html#data
The node input requires the data to be in the msg.payload.data
property.
{
"data": {
"data": {
"attachment": "http://xyl.abc",
"priority": 0,
"sound": "intermission",
"url": "homeassistant://",
"url_title": "Home Assistant"
},
"message": " ",
"title": "🚨"
}
}
Describe the bug
I'm trying to call a HA service with JSON. If the JSON is set directly in the call service node as data the call works but if the data is coming from a template only some parts of the JSON is used
To Reproduce
use the provided flow, the called service should not matter
Expected behavior
the complete JSON should be used as data value not only some parts
Screenshots
Example Flow
Environment (please complete the following information):
Other (please complete the following information):
I've tried using plain text, using JSON converter, function with JSON.stringify ... no luck. I know that there is a pushover node ... but this affects all HA service calls
Additional context