You need to convert the msg.payload
string to an object
Use the JSON
node
Then move the data to msg.payload
using a CHANGE
node
[{"id":"c154269.edb92d8","type":"inject","z":"8b2ca025.238bc","name":"","topic":"","payload":"{\"voltage\":5360}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":143.5,"y":119,"wires":[["45b0fc42.726164","c4d39c9a.ad81b8"]]},{"id":"45b0fc42.726164","type":"json","z":"8b2ca025.238bc","name":"","property":"payload","action":"","pretty":false,"x":322.5,"y":158,"wires":[["33b0acc9.2dc8bc","8784797e.f92868"]]},{"id":"819816e2.a86c98","type":"debug","z":"8b2ca025.238bc","name":"OUTPUT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":516.5,"y":361,"wires":[]},{"id":"c4d39c9a.ad81b8","type":"debug","z":"8b2ca025.238bc","name":"INPUT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":317.5,"y":43,"wires":[]},{"id":"33b0acc9.2dc8bc","type":"change","z":"8b2ca025.238bc","name":"","rules":[{"t":"move","p":"payload.voltage","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":517.5,"y":202,"wires":[["819816e2.a86c98"]]},{"id":"8784797e.f92868","type":"debug","z":"8b2ca025.238bc","name":"Converted to Javascript Object","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":561.5,"y":99,"wires":[]},{"id":"12e8b130.577bdf","type":"comment","z":"8b2ca025.238bc","name":"The input is a string so you need to convert it to a javascript object","info":"The input is a string so you need to convert it to a javascript object","x":256.5,"y":243,"wires":[]},{"id":"178125f6.9c0b2a","type":"comment","z":"8b2ca025.238bc","name":"Then use a change node to move it to msg.payload","info":"","x":227.5,"y":299,"wires":[]}]```