This code works just fine in dev tools
service: ecobee.delete_vacation
data:
entity_id: climate.thermostat
vacation_name: NotHome
But the same basic code does not work in Node-Red. Here’s a screenshot, including the debug error.
And if needed, here’s the actual (scrubbed) JSON. What’s going on here?
[{"id":"a3d5f4248db9b1ac","type":"inject","z":"4aafea6f.327f44","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1360,"y":300,"wires":[["d31319305db9e384"]]},{"id":"d31319305db9e384","type":"api-call-service","z":"4aafea6f.327f44","name":"","server":"","version":4,"debugenabled":false,"domain":"ecobee","service":"delete_vacation","target":{"areaId":[],"deviceId":[],"entityId":["climate.thermostat"]},"data":"{\"vacation_name\":\"NotHome\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1270,"y":200,"wires":[["ed168afe6d93d4d5"]]},{"id":"ed168afe6d93d4d5","type":"debug","z":"4aafea6f.327f44","name":"Ecobee","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1500,"y":200,"wires":[]}]