I've made a flow sequence with multiple inject nodes that go through the same process, so I need the end result to be unique. That is to be a Home Assistant sensor, but i need the sensor name to be based on the data that is scraped in the process. I can't figure out a way to use msg.payload.title as the sensor name. Is there another way around this that i'm not seeing? Here's the code anyway:
[{"id":"74b7d864.c68ae8","type":"inject","z":"4f7a68fe.44caa8","name":"Global Indeks A","topic":"","payload":"F00000JORS","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":60,"wires":[["4e81d2a5.088efc"]]},{"id":"6999504e.40c27","type":"inject","z":"4f7a68fe.44caa8","name":"Health Care R","topic":"","payload":"F00000ZFFV","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":100,"wires":[["4e81d2a5.088efc"]]},{"id":"9d22c900.7b7c78","type":"inject","z":"4f7a68fe.44caa8","name":"Norge Indeks A","topic":"","payload":"F00000JORR","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":140,"wires":[["4e81d2a5.088efc"]]},{"id":"3fea5597.6382ea","type":"inject","z":"4f7a68fe.44caa8","name":"Teknologi R","topic":"","payload":"F00000ZFG1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":180,"wires":[["4e81d2a5.088efc"]]},{"id":"23400103.ee59ee","type":"inject","z":"4f7a68fe.44caa8","name":"USA Indeks A","topic":"","payload":"F0GBR04OTI","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":220,"wires":[["4e81d2a5.088efc"]]},{"id":"4e81d2a5.088efc","type":"change","z":"4f7a68fe.44caa8","name":"","rules":[{"t":"set","p":"post","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":140,"wires":[["26130e98.7fc472","ffab6cf.c0c2b9"]]},{"id":"26130e98.7fc472","type":"http request","z":"4f7a68fe.44caa8","name":"GET Main","method":"GET","ret":"txt","paytoqs":false,"url":"https://www.morningstar.no/no/funds/snapshot/snapshot.aspx?id={{{post}}}","tls":"","persist":false,"proxy":"","authType":"","x":480,"y":100,"wires":[["92268fd7.d5a04","66a9e49f.19e67c","1f3cb4ed.c0675b"]]},{"id":"ffab6cf.c0c2b9","type":"http request","z":"4f7a68fe.44caa8","name":"GET History","method":"GET","ret":"txt","paytoqs":false,"url":"https://www.morningstar.no/no/funds/snapshot/snapshot.aspx?id={{{post}}}&tab=1","tls":"","persist":false,"proxy":"","authType":"","x":490,"y":180,"wires":[["4ae13990.aba6f8","d684101c.b1105","cfbb8ea7.ee16d","98318502.83fc98"]]},{"id":"66a9e49f.19e67c","type":"html","z":"4f7a68fe.44caa8","name":"Title","property":"payload","outproperty":"payload","tag":"h1","ret":"text","as":"multi","x":650,"y":20,"wires":[["c81858c7.03e9b8"]]},{"id":"1f3cb4ed.c0675b","type":"html","z":"4f7a68fe.44caa8","name":"Date","property":"payload","outproperty":"payload","tag":"#overviewQuickstatsDiv tr:nth-child(2) td.line.heading span","ret":"text","as":"multi","x":650,"y":60,"wires":[["3d165f16.618a3"]]},{"id":"92268fd7.d5a04","type":"html","z":"4f7a68fe.44caa8","name":"Price","property":"payload","outproperty":"payload","tag":"#overviewQuickstatsDiv tr:nth-of-type(2) td:nth-of-type(3)","ret":"text","as":"single","x":650,"y":100,"wires":[["6e34f137.06e3e"]]},{"id":"4ae13990.aba6f8","type":"html","z":"4f7a68fe.44caa8","name":"1 Day","property":"payload","outproperty":"payload","tag":"#returnsTrailingDiv tr:nth-child(3) td.col2.value.number","ret":"text","as":"single","x":650,"y":140,"wires":[["48f29160.3c608"]]},{"id":"d684101c.b1105","type":"html","z":"4f7a68fe.44caa8","name":"1 Week","property":"payload","outproperty":"payload","tag":"#returnsTrailingDiv tr:nth-child(4) td.col2.value.number","ret":"text","as":"single","x":660,"y":180,"wires":[["8b68aff6.657c4"]]},{"id":"cfbb8ea7.ee16d","type":"html","z":"4f7a68fe.44caa8","name":"1 Month","property":"payload","outproperty":"payload","tag":"#returnsTrailingDiv tr:nth-child(5) td.col2.value.number","ret":"text","as":"single","x":660,"y":220,"wires":[["d4bf002e.75ffd"]]},{"id":"98318502.83fc98","type":"html","z":"4f7a68fe.44caa8","name":"1 Year","property":"payload","outproperty":"payload","tag":"#returnsTrailingDiv tr:nth-child(9) td.col2.value.number","ret":"text","as":"single","x":650,"y":260,"wires":[["7fc10c40.ad5774"]]},{"id":"e02d3f6f.6e111","type":"function","z":"4f7a68fe.44caa8","name":"String>Float","func":"msg.payload = /(?:[^A-z]+)/.exec(msg.payload)[0].replace(\",\",\".\");\nmsg.payload = parseFloat(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":990,"y":200,"wires":[["3962740f.0173cc"]]},{"id":"de523f4c.bf1fe","type":"debug","z":"4f7a68fe.44caa8","name":"","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","x":1000,"y":40,"wires":[]},{"id":"3962740f.0173cc","type":"join","z":"4f7a68fe.44caa8","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"7","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":970,"y":140,"wires":[["de523f4c.bf1fe","b1aa9f58.5648e"]]},{"id":"48f29160.3c608","type":"change","z":"4f7a68fe.44caa8","name":"day","rules":[{"t":"set","p":"topic","pt":"msg","to":"day","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":140,"wires":[["e02d3f6f.6e111"]]},{"id":"8b68aff6.657c4","type":"change","z":"4f7a68fe.44caa8","name":"week","rules":[{"t":"set","p":"topic","pt":"msg","to":"week","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":180,"wires":[["e02d3f6f.6e111"]]},{"id":"d4bf002e.75ffd","type":"change","z":"4f7a68fe.44caa8","name":"month","rules":[{"t":"set","p":"topic","pt":"msg","to":"month","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":220,"wires":[["e02d3f6f.6e111"]]},{"id":"7fc10c40.ad5774","type":"change","z":"4f7a68fe.44caa8","name":"year","rules":[{"t":"set","p":"topic","pt":"msg","to":"year","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":260,"wires":[["e02d3f6f.6e111"]]},{"id":"c81858c7.03e9b8","type":"change","z":"4f7a68fe.44caa8","name":"title","rules":[{"t":"set","p":"topic","pt":"msg","to":"title","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":20,"wires":[["3962740f.0173cc"]]},{"id":"3d165f16.618a3","type":"change","z":"4f7a68fe.44caa8","name":"date","rules":[{"t":"set","p":"topic","pt":"msg","to":"date","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":60,"wires":[["3962740f.0173cc"]]},{"id":"6e34f137.06e3e","type":"change","z":"4f7a68fe.44caa8","name":"price","rules":[{"t":"set","p":"topic","pt":"msg","to":"price","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":100,"wires":[["e02d3f6f.6e111"]]},{"id":"b1aa9f58.5648e","type":"ha-entity","z":"4f7a68fe.44caa8","name":"{{msg.payload.title}}","server":"e707d943.9c83a8","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"{{msg.payload.title}}"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"kr"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","x":1080,"y":80,"wires":[[]]},{"id":"e707d943.9c83a8","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]