I want to call multiple services in a chain, and set all necessary values in a function node at the beginning of the flow, but can’t pass the values to the service node. I must be doing wrong way. How can I correct this? Thanks.
[{"id":"97ef2d54.967f5","type":"inject","z":"845016a6.b38828","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":600,"wires":[["f4f05ff3.7bb9d"]]},{"id":"46b8e2a4.45f71c","type":"api-call-service","z":"845016a6.b38828","name":"msg","server":"e8b4e59e.644ec8","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media","entityId":"","data":"{\"data\":{\"type\":\"tts\",\"method\":\"all\"},\"message\": {{flow.get(\"v\")}},\"target\":[\"media_player.xx_s_echo_dot\"]}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":570,"y":600,"wires":[[]]},{"id":"1ea17760.839549","type":"api-call-service","z":"845016a6.b38828","name":"volume","server":"e8b4e59e.644ec8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.xx_s_echo_dot","data":"{\"volume_level\": {{ flow.get(\"v\"}} }","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":420,"y":600,"wires":[["46b8e2a4.45f71c"]]},{"id":"f4f05ff3.7bb9d","type":"function","z":"845016a6.b38828","name":"","func":"flow.set(\"v\", 0.4);\nflow.set(\"m\", \"ok\")\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":600,"wires":[["1ea17760.839549"]]},{"id":"e8b4e59e.644ec8","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]