try
[{"id":"48a8c089.2b66c8","type":"inject","z":"bf9e1e33.030598","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":1340,"wires":[["9ff3864f.bcc7c8"]]},{"id":"9ff3864f.bcc7c8","type":"function","z":"bf9e1e33.030598","name":"","func":"\n\nmsg.options = Object.keys(flow.get(\"options\"))\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":130,"y":1400,"wires":[["12d9b644.b28a32"]]},{"id":"12d9b644.b28a32","type":"ui_dropdown","z":"bf9e1e33.030598","name":"","label":"Raaka-aine:","tooltip":"Valitse valmistettavan tuotteen raaka-aine","place":"Valitse raaka-aine","group":"be67f9b3.51a828","order":5,"width":0,"height":0,"passthru":false,"multiple":false,"options":[],"payload":"","topic":"choice1","topicType":"str","className":"","x":320,"y":1400,"wires":[["9ca8f72b.2670d8","a68ff12d.cac3b"]]},{"id":"9ca8f72b.2670d8","type":"function","z":"bf9e1e33.030598","name":"","func":"msg.options = Object.keys(flow.get(\"options.\" + msg.payload) || {\"error\":\"error\"})\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":590,"y":1400,"wires":[["9529da1e.63fa28","8700dc67.e7925"]]},{"id":"a68ff12d.cac3b","type":"join","z":"bf9e1e33.030598","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":610,"y":1500,"wires":[["417541.d0f2f2c","8226d599.17ea58"]]},{"id":"9529da1e.63fa28","type":"ui_dropdown","z":"bf9e1e33.030598","name":"Tuote:","label":"Tuote: ","tooltip":"Valitse valmistettava tuote","place":"Valitse tuote","group":"be67f9b3.51a828","order":7,"width":0,"height":0,"passthru":false,"multiple":false,"options":[],"payload":"","topic":"choice2","topicType":"str","className":"","x":760,"y":1400,"wires":[["8700dc67.e7925","a68ff12d.cac3b"]]},{"id":"8700dc67.e7925","type":"debug","z":"bf9e1e33.030598","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":930,"y":1340,"wires":[]},{"id":"8226d599.17ea58","type":"change","z":"bf9e1e33.030598","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.choice1","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"choice1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":1500,"wires":[["a68ff12d.cac3b"]]},{"id":"417541.d0f2f2c","type":"function","z":"bf9e1e33.030598","name":"","func":"msg.choices = Object.values(msg.payload);\nmsg.payload = flow.get(\"options.\" + msg.choices.join(\".\")) || \"error\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":1500,"wires":[["425d9f8e.e700d"]]},{"id":"425d9f8e.e700d","type":"debug","z":"bf9e1e33.030598","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":830,"y":1580,"wires":[]},{"id":"2169f539.7a138a","type":"inject","z":"bf9e1e33.030598","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":1300,"wires":[["286e0e35.c60c72"]]},{"id":"286e0e35.c60c72","type":"change","z":"bf9e1e33.030598","name":"","rules":[{"t":"set","p":"options","pt":"flow","to":"{\"kana\":{\"koipi\":{\"ominaisuuslämpökerroin\":3490},\"reisi\":{\"ominaisuuslämpökerroin\":3110}},\"nauta\":{\"brisket\":{\"ominaisuuslämpökerroin\":3190},\"paisti\":{\"ominaisuuslämpökerroin\":3390}}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":1300,"wires":[[]]},{"id":"be67f9b3.51a828","type":"ui_group","name":"Tuotteen1 tiedot","tab":"9e4c8e2faf1237cf","order":1,"disp":true,"width":6,"collapse":false,"className":""},{"id":"9e4c8e2faf1237cf","type":"ui_tab","name":"Aloitus","icon":"dashboard","order":1,"disabled":false,"hidden":false}]