Sorry by mistake I have selected only HTTP node , please find the flow below.
[{"id":"35f40a33.0c9b46","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"136562b0.9ca1cd","type":"inject","z":"35f40a33.0c9b46","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":210,"y":80,"wires":[["b028e4a.a8b4f18"]]},{"id":"b028e4a.a8b4f18","type":"http request","z":"35f40a33.0c9b46","name":"","method":"GET","ret":"obj","url":"","tls":"","x":370,"y":80,"wires":[["5dd9dc8c.1e9ed4"]]},{"id":"6eec1c38.fadb34","type":"change","z":"35f40a33.0c9b46","name":"","rules":[{"t":"set","p":"sensorid","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":200,"wires":[["f0aff9e4.f3e848","4ffd0c1d.3c3364"]]},{"id":"f0aff9e4.f3e848","type":"debug","z":"35f40a33.0c9b46","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"sensorid","x":1010,"y":160,"wires":[]},{"id":"5e82b87e.0974d8","type":"ui_dropdown","z":"35f40a33.0c9b46","name":"Data source","label":"Sensor ID","tooltip":"","place":"Select Controller ID","group":"d09cf9ee.58e9d8","order":3,"width":"7","height":"1","passthru":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"datasource","x":430,"y":200,"wires":[["6eec1c38.fadb34"]]},{"id":"98e089da.76a558","type":"function","z":"35f40a33.0c9b46","name":"","func":"var arr=[];\nvar a=flow.get(\"res\");\nconsole.log('index---'+[a.findIndex(p => p.macId == msg.payload)]);\nfor(var i=0;i<a[a.findIndex(p => p.macId == msg.payload)].senConf.length;i++)\n{\n arr.push(a[a.findIndex(p => p.macId == msg.payload)].senConf[i].sensorMacId)\n}\nmsg.options=arr;\nreturn msg;\n\n\n","outputs":1,"noerr":0,"x":210,"y":200,"wires":[["5e82b87e.0974d8","ada70a4d.582e88"]]},{"id":"5dd9dc8c.1e9ed4","type":"function","z":"35f40a33.0c9b46","name":"","func":"// create random position\nvar res=msg.payload;\nflow.set(\"res\",res)\nvar a=[];\nfor(var i=0;i<res.length;i++)\n{\n \n \n if(res[i].deviceType==18)\n {\n a.push(res[i].macId)\n }\n \n \n}\n\nmsg.payload=a;\nconsole.log(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":80,"wires":[["8d368bb8.4ead88"]]},{"id":"8d368bb8.4ead88","type":"change","z":"35f40a33.0c9b46","name":"","rules":[{"t":"set","p":"options","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":80,"wires":[["f8d1fa50.84b878"]]},{"id":"f8d1fa50.84b878","type":"ui_dropdown","z":"35f40a33.0c9b46","name":"Data source","label":"Controller ID","tooltip":"","place":"Select Controller ID","group":"d09cf9ee.58e9d8","order":1,"width":"7","height":"1","passthru":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"msg.topic","x":890,"y":80,"wires":[["35c12b07.a0d444"]]},{"id":"209ba86a.c1eb68","type":"debug","z":"35f40a33.0c9b46","name":"controllerid-1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"controllerid","x":1270,"y":80,"wires":[]},{"id":"35c12b07.a0d444","type":"change","z":"35f40a33.0c9b46","name":"","rules":[{"t":"set","p":"controllerid","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":80,"wires":[["209ba86a.c1eb68","98e089da.76a558"]]},{"id":"ada70a4d.582e88","type":"debug","z":"35f40a33.0c9b46","name":"controllerid-2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":560,"y":300,"wires":[]},{"id":"4ffd0c1d.3c3364","type":"debug","z":"35f40a33.0c9b46","name":"controllerid-3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"controllerid","x":970,"y":260,"wires":[]},{"id":"d09cf9ee.58e9d8","type":"ui_group","z":"","name":"light rule","tab":"3022bccd.b5f134","order":2,"disp":true,"width":"20","collapse":false},{"id":"3022bccd.b5f134","type":"ui_tab","z":"","name":"testinput","icon":"dashboard","order":13,"disabled":false,"hidden":false}]