# How to separate receiving dashboards from two different devices

**URL:** <https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111>\
**Category:** Dashboard\
**Created:** [14 March 2020 18:20 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111 "2020-03-14T18:20:27Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardoluiztodero](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eduardoluiztodero](https://discourse.nodered.org/u/eduardoluiztodero)\
**Post date:** [14 March 2020 18:20 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/1 "2020-03-14T18:20:27Z")

</div>

Hello guys, I have a problem. I'm doing a project using LoRa. I receive data from several devices with different IDs on the same gateway, which is sending data to an MQTT broker. I want to build a dashboard for the device I receive, for example, if I receive temperature and humidity from device ID 3289211400 it will show in gauges 1 and 2, if I receive it from device ID 681017712 it will show in gauges 3 and 4 ... with you do this on Node-red? Thanks!

 ![nodered1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/0/908919d72dd86fd8e7ccbd93ebcac53b745bfcb2.png) ![ndoered2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a6cc4f1a97bb2b20dcf079c1f699c48a7abe8cf1.png) ![nodered3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7b738166cb60c73d996353e15e708098c5f61888.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 March 2020 18:35 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/2 "2020-03-14T18:35:21Z")

</div>

You can use a Switch node (not the dashboard switch) to route the message along separate paths for the two ID values.

---

<div class="post-metadata">

**Author:** ![eduardoluiztodero](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eduardoluiztodero](https://discourse.nodered.org/u/eduardoluiztodero)\
**Post date:** [16 March 2020 12:22 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/3 "2020-03-16T12:22:39Z")

</div>

I still haven't been able to reach a good result using the node switch .. it doesn't do what I wanted it to do): I'm going to share my project ..

[{"id":"d72b056f.0d3248","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"ac6f5e08.195e3","type":"mqtt in","z":"d72b056f.0d3248","name":"TCC","topic":"Teste","qos":"0","datatype":"json","broker":"c7266bc3.062ef8","x":78,"y":48,"wires":[["bfa75558.0dcca8","f874f639.70b688"]]},{"id":"9f4f2111.81f77","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[0]","targetType":"msg","x":492.5,"y":40,"wires":},{"id":"f5f9f94d.b40778","type":"ui\_gauge","z":"d72b056f.0d3248","name":"umidade","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"umidade","label":"%","format":"{{msg.payload[0].valores[2]}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":492,"y":132,"wires":},{"id":"260fb5ab.7bdeea","type":"ui\_text","z":"d72b056f.0d3248","group":"d8123882.e133f8","order":2,"width":0,"height":0,"name":"","label":"ID","format":"{{msg.payload[0].valores[0]}}","layout":"row-spread","x":489.5,"y":181,"wires":},{"id":"9a1e500c.0772c","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1013.5,"y":104,"wires":},{"id":"f874f639.70b688","type":"change","z":"d72b056f.0d3248","name":"aviario1","rules":[{"t":"set","p":"payload[0]","pt":"msg","to":"payload.**[valores[0]=681017712].valores","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":262,"y":45,"wires":[["9f4f2111.81f77","ec66510c.9f189","f5f9f94d.b40778","260fb5ab.7bdeea"]]},{"id":"bfa75558.0dcca8","type":"change","z":"d72b056f.0d3248","name":"aviario2","rules":[{"t":"set","p":"payload[0]","pt":"msg","to":"payload.**[valores[0]=3289211400].valores","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":266,"y":264,"wires":[["4310fb87.f23c44","8d496871.e689f8","88ccaae0.2b5aa8","3d3c71ee.834e7e"]]},{"id":"ec66510c.9f189","type":"ui\_gauge","z":"d72b056f.0d3248","name":"temperatura","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"temperatura","label":"ºC","format":"{{msg.payload[0].valores[1]}}","min":"-10","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":497.5,"y":88,"wires":},{"id":"4310fb87.f23c44","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[0]","targetType":"msg","x":489,"y":269,"wires":},{"id":"88ccaae0.2b5aa8","type":"ui\_gauge","z":"d72b056f.0d3248","name":"umidade","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"umidade","label":"%","format":"{{msg.payload[0].valores[2]}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":488.5,"y":361,"wires":},{"id":"3d3c71ee.834e7e","type":"ui\_text","z":"d72b056f.0d3248","group":"d8123882.e133f8","order":2,"width":0,"height":0,"name":"","label":"ID","format":"{{msg.payload[0].valores[0]}}","layout":"row-spread","x":486,"y":410,"wires":},{"id":"8d496871.e689f8","type":"ui\_gauge","z":"d72b056f.0d3248","name":"temperatura","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"temperatura","label":"ºC","format":"{{msg.payload[0].valores[1]}}","min":"-10","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":494,"y":317,"wires":},{"id":"c7266bc3.062ef8","type":"mqtt-broker","z":"","name":"TCC ","broker":"[m24.cloudmqtt.com](http://m24.cloudmqtt.com)","port":"14910","clientid":"","usetls":false,"compatmode":true,"keepalive":"1","cleansession":true,"birthTopic":"esp/test","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"d8123882.e133f8","type":"ui\_group","z":"","name":"Aviário IFSC ","tab":"52698c4b.9a7b34","disp":true,"width":"6","collapse":false},{"id":"52698c4b.9a7b34","type":"ui\_tab","z":"","name":"TCC - Movitoramento de Aviários","icon":"TCC - Movitoramento de Aviários","disabled":false,"hidden":false}]

 ![node9](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7d9e61460d6d586277b4b29bb107e6532cba7600.png)

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [16 March 2020 12:34 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/4 "2020-03-16T12:34:37Z")

</div>

Your flow is not importable. Please read the link below and then edit your post above. (use the pencil icon)

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

---

<div class="post-metadata">

**Author:** ![eduardoluiztodero](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eduardoluiztodero](https://discourse.nodered.org/u/eduardoluiztodero)\
**Post date:** [16 March 2020 12:57 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/5 "2020-03-16T12:57:31Z")

</div>

[  
{  
"id": "d72b056f.0d3248",  
"type": "tab",  
"label": "Flow 1",  
"disabled": false,  
"info": ""  
},  
{  
"id": "ac6f5e08.195e3",  
"type": "mqtt in",  
"z": "d72b056f.0d3248",  
"name": "TCC",  
"topic": "Teste",  
"qos": "0",  
"datatype": "json",  
"broker": "c7266bc3.062ef8",  
"x": 78,  
"y": 48,  
"wires": [  
[  
"bfa75558.0dcca8",  
"f874f639.70b688"  
]  
]  
},  
{  
"id": "9f4f2111.81f77",  
"type": "debug",  
"z": "d72b056f.0d3248",  
"name": "",  
"active": true,  
"tosidebar": true,  
"console": false,  
"tostatus": false,  
"complete": "payload[0]",  
"targetType": "msg",  
"x": 492.5,  
"y": 40,  
"wires":   
},  
{  
"id": "f5f9f94d.b40778",  
"type": "ui\_gauge",  
"z": "d72b056f.0d3248",  
"name": "umidade",  
"group": "d8123882.e133f8",  
"order": 1,  
"width": 0,  
"height": 0,  
"gtype": "gage",  
"title": "umidade",  
"label": "%",  
"format": "{{msg.payload[0].valores[2]}}",  
"min": 0,  
"max": "100",  
"colors": [  
"#00b500",  
"#e6e600",  
"#ca3838"  
],  
"seg1": "",  
"seg2": "",  
"x": 492,  
"y": 132,  
"wires":   
},  
{  
"id": "260fb5ab.7bdeea",  
"type": "ui\_text",  
"z": "d72b056f.0d3248",  
"group": "d8123882.e133f8",  
"order": 2,  
"width": 0,  
"height": 0,  
"name": "",  
"label": "ID",  
"format": "{{msg.payload[0].valores[0]}}",  
"layout": "row-spread",  
"x": 489.5,  
"y": 181,  
"wires":   
},  
{  
"id": "9a1e500c.0772c",  
"type": "debug",  
"z": "d72b056f.0d3248",  
"name": "",  
"active": true,  
"tosidebar": true,  
"console": false,  
"tostatus": false,  
"complete": "false",  
"x": 1013.5,  
"y": 104,  
"wires":   
},  
{  
"id": "f874f639.70b688",  
"type": "change",  
"z": "d72b056f.0d3248",  
"name": "aviario1",  
"rules": [  
{  
"t": "set",  
"p": "payload[0]",  
"pt": "msg",  
"to": "payload.**[valores[0]=681017712].valores",  
"tot": "jsonata"  
}  
],  
"action": "",  
"property": "",  
"from": "",  
"to": "",  
"reg": false,  
"x": 262,  
"y": 45,  
"wires": [  
[  
"9f4f2111.81f77",  
"ec66510c.9f189",  
"f5f9f94d.b40778",  
"260fb5ab.7bdeea"  
]  
]  
},  
{  
"id": "bfa75558.0dcca8",  
"type": "change",  
"z": "d72b056f.0d3248",  
"name": "aviario2",  
"rules": [  
{  
"t": "set",  
"p": "payload[0]",  
"pt": "msg",  
"to": "payload.**[valores[0]=3289211400].valores",  
"tot": "jsonata"  
}  
],  
"action": "",  
"property": "",  
"from": "",  
"to": "",  
"reg": false,  
"x": 266,  
"y": 264,  
"wires": [  
[  
"4310fb87.f23c44",  
"8d496871.e689f8",  
"88ccaae0.2b5aa8",  
"3d3c71ee.834e7e"  
]  
]  
},  
{  
"id": "ec66510c.9f189",  
"type": "ui\_gauge",  
"z": "d72b056f.0d3248",  
"name": "temperatura",  
"group": "d8123882.e133f8",  
"order": 1,  
"width": 0,  
"height": 0,  
"gtype": "gage",  
"title": "temperatura",  
"label": "ºC",  
"format": "{{msg.payload[0].valores[1]}}",  
"min": "-10",  
"max": "100",  
"colors": [  
"#00b500",  
"#e6e600",  
"#ca3838"  
],  
"seg1": "",  
"seg2": "",  
"x": 497.5,  
"y": 88,  
"wires":   
},  
{  
"id": "4310fb87.f23c44",  
"type": "debug",  
"z": "d72b056f.0d3248",  
"name": "",  
"active": true,  
"tosidebar": true,  
"console": false,  
"tostatus": false,  
"complete": "payload[0]",  
"targetType": "msg",  
"x": 489,  
"y": 269,  
"wires":   
},  
{  
"id": "88ccaae0.2b5aa8",  
"type": "ui\_gauge",  
"z": "d72b056f.0d3248",  
"name": "umidade",  
"group": "d8123882.e133f8",  
"order": 1,  
"width": 0,  
"height": 0,  
"gtype": "gage",  
"title": "umidade",  
"label": "%",  
"format": "{{msg.payload[0].valores[2]}}",  
"min": 0,  
"max": "100",  
"colors": [  
"#00b500",  
"#e6e600",  
"#ca3838"  
],  
"seg1": "",  
"seg2": "",  
"x": 488.5,  
"y": 361,  
"wires":   
},  
{  
"id": "3d3c71ee.834e7e",  
"type": "ui\_text",  
"z": "d72b056f.0d3248",  
"group": "d8123882.e133f8",  
"order": 2,  
"width": 0,  
"height": 0,  
"name": "",  
"label": "ID",  
"format": "{{msg.payload[0].valores[0]}}",  
"layout": "row-spread",  
"x": 486,  
"y": 410,  
"wires":   
},  
{  
"id": "8d496871.e689f8",  
"type": "ui\_gauge",  
"z": "d72b056f.0d3248",  
"name": "temperatura",  
"group": "d8123882.e133f8",  
"order": 1,  
"width": 0,  
"height": 0,  
"gtype": "gage",  
"title": "temperatura",  
"label": "ºC",  
"format": "{{msg.payload[0].valores[1]}}",  
"min": "-10",  
"max": "100",  
"colors": [  
"#00b500",  
"#e6e600",  
"#ca3838"  
],  
"seg1": "",  
"seg2": "",  
"x": 494,  
"y": 317,  
"wires":   
},  
{  
"id": "c7266bc3.062ef8",  
"type": "mqtt-broker",  
"z": "",  
"name": "TCC ",  
"broker": "[m24.cloudmqtt.com](http://m24.cloudmqtt.com)",  
"port": "14910",  
"clientid": "",  
"usetls": false,  
"compatmode": true,  
"keepalive": "1",  
"cleansession": true,  
"birthTopic": "esp/test",  
"birthQos": "0",  
"birthPayload": "",  
"closeTopic": "",  
"closeQos": "0",  
"closePayload": "",  
"willTopic": "",  
"willQos": "0",  
"willPayload": ""  
},  
{  
"id": "d8123882.e133f8",  
"type": "ui\_group",  
"z": "",  
"name": "Aviário IFSC ",  
"tab": "52698c4b.9a7b34",  
"disp": true,  
"width": "6",  
"collapse": false  
},  
{  
"id": "52698c4b.9a7b34",  
"type": "ui\_tab",  
"z": "",  
"name": "TCC - Movitoramento de Aviários",  
"icon": "TCC - Movitoramento de Aviários",  
"disabled": false,  
"hidden": false  
}  
]

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2020 15:20 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/6 "2020-03-16T15:20:06Z")

</div>

You don't have a switch node in your flow. Add a switch node right after the MQTT-in node so send the data where you want.

Also your flow is still not importable. Go read what @Paul-Reed pointed you at.

---

<div class="post-metadata">

**Author:** ![eduardoluiztodero](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eduardoluiztodero](https://discourse.nodered.org/u/eduardoluiztodero)\
**Post date:** [16 March 2020 16:38 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/7 "2020-03-16T16:38:27Z")

</div>

```auto
[{"id":"d72b056f.0d3248","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"ac6f5e08.195e3","type":"mqtt in","z":"d72b056f.0d3248","name":"TCC","topic":"Teste","qos":"0","datatype":"json","broker":"c7266bc3.062ef8","x":78,"y":48,"wires":[["bfa75558.0dcca8","f874f639.70b688"]]},{"id":"9f4f2111.81f77","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[0]","targetType":"msg","x":492.5,"y":40,"wires":[]},{"id":"f5f9f94d.b40778","type":"ui_gauge","z":"d72b056f.0d3248","name":"umidade","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"umidade","label":"%","format":"{{msg.payload[0].valores[2]}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":492,"y":132,"wires":[]},{"id":"260fb5ab.7bdeea","type":"ui_text","z":"d72b056f.0d3248","group":"d8123882.e133f8","order":2,"width":0,"height":0,"name":"","label":"ID","format":"{{msg.payload[0].valores[0]}}","layout":"row-spread","x":489.5,"y":181,"wires":[]},{"id":"9a1e500c.0772c","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1013.5,"y":104,"wires":[]},{"id":"f874f639.70b688","type":"change","z":"d72b056f.0d3248","name":"aviario1","rules":[{"t":"set","p":"payload[0]","pt":"msg","to":"payload.**[valores[0]=681017712].valores","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":262,"y":45,"wires":[["9f4f2111.81f77","ec66510c.9f189","f5f9f94d.b40778","260fb5ab.7bdeea"]]},{"id":"bfa75558.0dcca8","type":"change","z":"d72b056f.0d3248","name":"aviario2","rules":[{"t":"set","p":"payload[0]","pt":"msg","to":"payload.**[valores[0]=3289211400].valores","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":266,"y":264,"wires":[["4310fb87.f23c44","8d496871.e689f8","88ccaae0.2b5aa8","3d3c71ee.834e7e"]]},{"id":"ec66510c.9f189","type":"ui_gauge","z":"d72b056f.0d3248","name":"temperatura","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"temperatura","label":"ºC","format":"{{msg.payload[0].valores[1]}}","min":"-10","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":497.5,"y":88,"wires":[]},{"id":"4310fb87.f23c44","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[0]","targetType":"msg","x":489,"y":269,"wires":[]},{"id":"88ccaae0.2b5aa8","type":"ui_gauge","z":"d72b056f.0d3248","name":"umidade","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"umidade","label":"%","format":"{{msg.payload[0].valores[2]}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":488.5,"y":361,"wires":[]},{"id":"3d3c71ee.834e7e","type":"ui_text","z":"d72b056f.0d3248","group":"d8123882.e133f8","order":2,"width":0,"height":0,"name":"","label":"ID","format":"{{msg.payload[0].valores[0]}}","layout":"row-spread","x":486,"y":410,"wires":[]},{"id":"8d496871.e689f8","type":"ui_gauge","z":"d72b056f.0d3248","name":"temperatura","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"temperatura","label":"ºC","format":"{{msg.payload[0].valores[1]}}","min":"-10","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":494,"y":317,"wires":[]},{"id":"c7266bc3.062ef8","type":"mqtt-broker","z":"","name":"TCC ","broker":"m24.cloudmqtt.com","port":"14910","clientid":"","usetls":false,"compatmode":true,"keepalive":"1","cleansession":true,"birthTopic":"esp/test","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"d8123882.e133f8","type":"ui_group","z":"","name":"Aviário IFSC ","tab":"52698c4b.9a7b34","disp":true,"width":"6","collapse":false},{"id":"52698c4b.9a7b34","type":"ui_tab","z":"","name":"TCC - Movitoramento de Aviários","icon":"TCC - Movitoramento de Aviários","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![eduardoluiztodero](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eduardoluiztodero](https://discourse.nodered.org/u/eduardoluiztodero)\
**Post date:** [16 March 2020 17:01 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/8 "2020-03-16T17:01:55Z")

</div>

I think now I did it the right way, I'm new using node-red

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2020 18:41 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/9 "2020-03-16T18:41:59Z")

</div>

so where is the switch node?

---

<div class="post-metadata">

**Author:** ![eduardoluiztodero](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eduardoluiztodero](https://discourse.nodered.org/u/eduardoluiztodero)\
**Post date:** [16 March 2020 21:57 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/10 "2020-03-16T21:57:38Z")

</div>

sorry, in this node

```auto
[{"id":"d72b056f.0d3248","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"ac6f5e08.195e3","type":"mqtt in","z":"d72b056f.0d3248","name":"TCC","topic":"Teste","qos":"0","datatype":"json","broker":"c7266bc3.062ef8","x":78,"y":48,"wires":[["de12f99f.e3dad8","e41eb6c4.ee5148"]]},{"id":"9f4f2111.81f77","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":482.5,"y":40,"wires":[]},{"id":"f5f9f94d.b40778","type":"ui_gauge","z":"d72b056f.0d3248","name":"umidade","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"umidade","label":"%","format":"{{msg.payload[0].valores[2]}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":492,"y":132,"wires":[]},{"id":"260fb5ab.7bdeea","type":"ui_text","z":"d72b056f.0d3248","group":"d8123882.e133f8","order":2,"width":0,"height":0,"name":"","label":"ID","format":"{{msg.payload[0].valores[0]}}","layout":"row-spread","x":489.5,"y":181,"wires":[]},{"id":"9a1e500c.0772c","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1013.5,"y":104,"wires":[]},{"id":"ec66510c.9f189","type":"ui_gauge","z":"d72b056f.0d3248","name":"temperatura","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"temperatura","label":"ºC","format":"{{msg.payload[0].valores[1]}}","min":"-10","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":497.5,"y":88,"wires":[]},{"id":"4310fb87.f23c44","type":"debug","z":"d72b056f.0d3248","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[0]","targetType":"msg","x":489,"y":269,"wires":[]},{"id":"88ccaae0.2b5aa8","type":"ui_gauge","z":"d72b056f.0d3248","name":"umidade","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"umidade","label":"%","format":"{{msg.payload[0].valores[2]}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":488.5,"y":361,"wires":[]},{"id":"3d3c71ee.834e7e","type":"ui_text","z":"d72b056f.0d3248","group":"d8123882.e133f8","order":2,"width":0,"height":0,"name":"","label":"ID","format":"{{msg.payload[0].valores[0]}}","layout":"row-spread","x":486,"y":410,"wires":[]},{"id":"8d496871.e689f8","type":"ui_gauge","z":"d72b056f.0d3248","name":"temperatura","group":"d8123882.e133f8","order":1,"width":0,"height":0,"gtype":"gage","title":"temperatura","label":"ºC","format":"{{msg.payload[0].valores[1]}}","min":"-10","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":494,"y":317,"wires":[]},{"id":"de12f99f.e3dad8","type":"switch","z":"d72b056f.0d3248","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"payload.**[valores[0]=3289211400].valores","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":285.5,"y":42,"wires":[["9f4f2111.81f77"]]},{"id":"e41eb6c4.ee5148","type":"switch","z":"d72b056f.0d3248","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"payload.**[valores[0]=681017712].valores","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":281,"y":165,"wires":[["4310fb87.f23c44"]]},{"id":"c7266bc3.062ef8","type":"mqtt-broker","z":"","name":"TCC ","broker":"m24.cloudmqtt.com","port":"14910","clientid":"","usetls":false,"compatmode":true,"keepalive":"1","cleansession":true,"birthTopic":"esp/test","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"d8123882.e133f8","type":"ui_group","z":"","name":"Aviário IFSC ","tab":"52698c4b.9a7b34","disp":true,"width":"6","collapse":false},{"id":"52698c4b.9a7b34","type":"ui_tab","z":"","name":"TCC - Movitoramento de Aviários","icon":"TCC - Movitoramento de Aviários","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2020 22:21 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/11 "2020-03-16T22:21:10Z")

</div>

Do you realize that in a switch node, you can test for more than one thing?  
Attach a debug node (set to display the complete msg object) to the output of the `MQTT-in` node and open all the dropdown and taste whr you get here (only need one debug)

---

<div class="post-metadata">

**Author:** ![eduardoluiztodero](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eduardoluiztodero](https://discourse.nodered.org/u/eduardoluiztodero)\
**Post date:** [16 March 2020 22:59 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/12 "2020-03-16T22:59:02Z")

</div>

I still don't understand how to do this):

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2020 23:44 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/13 "2020-03-16T23:44:40Z")

</div>

> [@zenofmud](#):
>
> Attach a debug node (set to display the complete msg object) to the output of the `MQTT-in` node

 ![Screen Shot 2020-03-16 at 7.30.43 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/3/c37b7f880bb7227d66c01b148fa6f7c0799e772a.png)

run the flow and when you see the output in the debug tab, click ever one of the triangles  
 ![Screen Shot 2020-03-16 at 7.43.28 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/b/cb78a68d71c1f31f239b0602ce882abcbf7af584.png)

so the wholedebug shows  
 ![Screen Shot 2020-03-16 at 7.42.44 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/1/b14b5027fcb645cf8d6ade5b82400a27e7736db4.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 April 2020 23:44 UTC](https://discourse.nodered.org/t/how-to-separate-receiving-dashboards-from-two-different-devices/23111/14 "2020-04-15T23:44:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
