Is there a Dashboard matrix switch

I was daydreaming the other day about a generic wireless mqtt hardware switch panel that could easily be moved around and be reconfigured to switch different devices. What’s the most convenient way to change the mqtt topic or redirect the payloads coming from this switch panel?

I wondered if node red has a matrix switch dashboard node.

Consider Node-RED as a tool box. I'm sure you can build it using all possible available nodes and features (i.e. javascript code in function nodes if required). Sometimes you will even find other peoples examples very close to what you need, at least gives you the ideas. But the work to do is still yours in most cases

1 Like

I feel my question is misunderstood. I'd rather not re-invent the wheel so to speak if someone else has already done it, maybe I just don't know the correct terms to search for. Maybe "crossbar-switch" is a better known term. I'm asking if there exists a UI node that can handle easily selecting which MQTT "input" topic is linked to an "output" topic in a crossbar/matrix type of setup. I know how to do it manually with mqtt in & out nodes but to edit those with a mobile device would be quite clumsy.

@m_elias,
I don't think something like this will exist yet.
Do you have any screenshots with examples of how it should look like in your dashboard? Perhaps then somebody can give you some ideas of how to get started..
Bart

4 instances of @BartButenaers' own node-red-contrib-ui-multistate-switch is perhaps the closest match.
image
Each line independently acts like a radio button - only one selection possible.

5 Likes

Or something like this


Style as you wish

Each incoming message can be routed to zero, one or multiple outputs.

[{"id":"8277cc623bba0cd1","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"str","x":410,"y":560,"wires":[["e9436f4a796f7b22"]]},{"id":"e9436f4a796f7b22","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"temp","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"matrix.one","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":560,"wires":[["66b58439f7bf3656"]]},{"id":"66b58439f7bf3656","type":"split","z":"b9860b4b9de8c8da","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":730,"y":600,"wires":[["97b35c2d9c980697","53b6b6d031a51902"]]},{"id":"a4265041007a0f94","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"temp","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"matrix.three","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":640,"wires":[["66b58439f7bf3656"]]},{"id":"26ea6dd9455df221","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"temp","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"matrix.two","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":600,"wires":[["66b58439f7bf3656"]]},{"id":"97b35c2d9c980697","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":850,"y":600,"wires":[["f648d65f3f13e1dd"]]},{"id":"2de257ccd4282b1a","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"3","payloadType":"str","x":410,"y":640,"wires":[["a4265041007a0f94"]]},{"id":"17752f08120b5260","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"2","payloadType":"str","x":410,"y":600,"wires":[["26ea6dd9455df221"]]},{"id":"f648d65f3f13e1dd","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"move","p":"temp","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1000,"y":600,"wires":[["b9ef86d0ba451f72"]]},{"id":"b9ef86d0ba451f72","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"parts.key","propertyType":"msg","rules":[{"t":"eq","v":"one","vt":"str"},{"t":"eq","v":"two","vt":"str"},{"t":"eq","v":"three","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":1150,"y":600,"wires":[["ae3508fb45a8a025"],["81bf8287b77bf8cf"],["56c4072c7f0f10a9"]]},{"id":"ae3508fb45a8a025","type":"debug","z":"b9860b4b9de8c8da","name":"debug one","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1290,"y":560,"wires":[]},{"id":"81bf8287b77bf8cf","type":"debug","z":"b9860b4b9de8c8da","name":"debug two","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1290,"y":600,"wires":[]},{"id":"56c4072c7f0f10a9","type":"debug","z":"b9860b4b9de8c8da","name":"debug three","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1290,"y":640,"wires":[]},{"id":"82785297ba381fa4","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"33","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":false,"decouple":"false","topic":"[\"three\",\"three\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":500,"wires":[["b96eb0844f7cfa1f"]]},{"id":"60be798faaf2d268","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"32","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":false,"decouple":"false","topic":"[\"three\",\"two\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":440,"wires":[["b96eb0844f7cfa1f"]]},{"id":"9b6e62364cb1c3fa","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"31","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":false,"decouple":"false","topic":"[\"three\",\"one\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":380,"wires":[["b96eb0844f7cfa1f"]]},{"id":"ef6719afe6f30c5c","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"23","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":false,"decouple":"false","topic":"[\"two\",\"three\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":320,"wires":[["b96eb0844f7cfa1f"]]},{"id":"53b6b6d031a51902","type":"debug","z":"b9860b4b9de8c8da","name":"debug 340","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":810,"y":480,"wires":[]},{"id":"2c7f5e09235716ae","type":"debug","z":"b9860b4b9de8c8da","name":"debug 339","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":830,"y":320,"wires":[]},{"id":"ef9f346b3d12d1eb","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"matrix[msg.topic[0]][msg.topic[1]]","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"matrix","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":260,"wires":[["2c7f5e09235716ae"]]},{"id":"b96eb0844f7cfa1f","type":"json","z":"b9860b4b9de8c8da","name":"","property":"topic","action":"obj","pretty":false,"x":530,"y":260,"wires":[["ef9f346b3d12d1eb"]]},{"id":"2094e06135d405dd","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"22","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":false,"decouple":"false","topic":"[\"two\",\"two\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":260,"wires":[["b96eb0844f7cfa1f"]]},{"id":"5b8c4acb244808de","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"21","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"[\"two\",\"one\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":200,"wires":[["b96eb0844f7cfa1f"]]},{"id":"926ba3e7ca3c1c5f","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"13","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"[\"one\",\"three\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":140,"wires":[["b96eb0844f7cfa1f"]]},{"id":"e688aae9859bc966","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"12","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"[\"one\",\"two\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":80,"wires":[["b96eb0844f7cfa1f"]]},{"id":"c9c1fb971c5897da","type":"ui_switch","z":"b9860b4b9de8c8da","name":"","label":"11","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"[\"one\",\"one\"]","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":20,"wires":[["b96eb0844f7cfa1f"]]},{"id":"cd335283cf1927d8","type":"ui_group","name":"matrix","tab":"8f03e639.85956","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

Add more switches and message routes as needed.
[edit] removed unneeded JSONata expressions

4 Likes

This made me curious so I played for a bit. I went on the idea that if S13, S21 and S31 are on and you turn S11 then it should shut S13, S21 and S31 off.

multi-switch

So here is a flow that will do that

 [{"id":"c371a29076a0599a","type":"tab","label":"multi-switch ","disabled":false,"info":"","env":[]},{"id":"a8444901e2a69139","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"11","tooltip":"","group":"cd335283cf1927d8","order":1,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"11","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":120,"wires":[["f14ed4056f751f65"]]},{"id":"5d49e4551fe986c5","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"12","tooltip":"","group":"cd335283cf1927d8","order":2,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"12","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":180,"wires":[["f14ed4056f751f65"]]},{"id":"0a7d3e3743a6e5c4","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"13","tooltip":"","group":"cd335283cf1927d8","order":3,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"13","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":240,"wires":[["f14ed4056f751f65"]]},{"id":"5cd1f341b4709403","type":"link in","z":"c371a29076a0599a","name":"S11","links":["935306dc261b9b49","9a13e872ad245702","4d084b995d5b60f3","ad14e8aba66c1fe2"],"x":950,"y":120,"wires":[["a8444901e2a69139"]],"l":true},{"id":"b2841b664f0eba80","type":"link out","z":"c371a29076a0599a","name":"s11 out ","mode":"link","links":["36f4c34cb13a8466","7522ad1bc484eb78","a58166e4219dc82c","fd8b6b03592cb4e5"],"x":790,"y":180,"wires":[],"l":true},{"id":"36f4c34cb13a8466","type":"link in","z":"c371a29076a0599a","name":"S12","links":["b2841b664f0eba80","9a13e872ad245702","791a2c02540eb25e","53a718fe3302fb15"],"x":950,"y":180,"wires":[["5d49e4551fe986c5"]],"l":true},{"id":"7522ad1bc484eb78","type":"link in","z":"c371a29076a0599a","name":"S13","links":["b2841b664f0eba80","935306dc261b9b49","6b6957f747cc15b2","5635a7a9d3e65da6"],"x":950,"y":240,"wires":[["0a7d3e3743a6e5c4"]],"l":true},{"id":"935306dc261b9b49","type":"link out","z":"c371a29076a0599a","name":"s12 out","mode":"link","links":["32cbe001f9863d12","5cd1f341b4709403","7522ad1bc484eb78","d24ef15217f6c285"],"x":790,"y":220,"wires":[],"l":true},{"id":"9a13e872ad245702","type":"link out","z":"c371a29076a0599a","name":"s13 out","mode":"link","links":["2ee36a95fc3acfda","36f4c34cb13a8466","5cd1f341b4709403","8625331225cb9124"],"x":790,"y":260,"wires":[],"l":true},{"id":"6201d6a9ebe6d835","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"21","tooltip":"","group":"cd335283cf1927d8","order":4,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"21","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":300,"wires":[["f14ed4056f751f65"]]},{"id":"7fcc1163dc424ffd","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"22","tooltip":"","group":"cd335283cf1927d8","order":5,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"22","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":360,"wires":[["f14ed4056f751f65"]]},{"id":"4b866caf860bc047","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"23","tooltip":"","group":"cd335283cf1927d8","order":6,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"23","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":420,"wires":[["f14ed4056f751f65"]]},{"id":"fd8b6b03592cb4e5","type":"link in","z":"c371a29076a0599a","name":"S21","links":["6b6957f747cc15b2","791a2c02540eb25e","b2841b664f0eba80","ad14e8aba66c1fe2"],"x":950,"y":300,"wires":[["6201d6a9ebe6d835"]],"l":true},{"id":"4d084b995d5b60f3","type":"link out","z":"c371a29076a0599a","name":"s21 out","mode":"link","links":["32cbe001f9863d12","5cd1f341b4709403","8625331225cb9124","a58166e4219dc82c"],"x":790,"y":300,"wires":[],"l":true},{"id":"32cbe001f9863d12","type":"link in","z":"c371a29076a0599a","name":"S22","links":["4d084b995d5b60f3","6b6957f747cc15b2","935306dc261b9b49","53a718fe3302fb15"],"x":950,"y":360,"wires":[["7fcc1163dc424ffd"]],"l":true},{"id":"8625331225cb9124","type":"link in","z":"c371a29076a0599a","name":"S23","links":["4d084b995d5b60f3","791a2c02540eb25e","9a13e872ad245702","5635a7a9d3e65da6"],"x":950,"y":420,"wires":[["4b866caf860bc047"]],"l":true},{"id":"791a2c02540eb25e","type":"link out","z":"c371a29076a0599a","name":"s22 out","mode":"link","links":["36f4c34cb13a8466","8625331225cb9124","d24ef15217f6c285","fd8b6b03592cb4e5"],"x":790,"y":340,"wires":[],"l":true},{"id":"6b6957f747cc15b2","type":"link out","z":"c371a29076a0599a","name":"s23 out","mode":"link","links":["2ee36a95fc3acfda","32cbe001f9863d12","7522ad1bc484eb78","fd8b6b03592cb4e5"],"x":790,"y":380,"wires":[],"l":true},{"id":"da428e08d1cccc8b","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"31","tooltip":"","group":"cd335283cf1927d8","order":7,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"31","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":480,"wires":[["f14ed4056f751f65"]]},{"id":"23fd5b8e46b57394","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"32","tooltip":"","group":"cd335283cf1927d8","order":8,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"32","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":540,"wires":[["f14ed4056f751f65"]]},{"id":"de18fe09bd21d611","type":"ui_switch","z":"c371a29076a0599a","name":"","label":"33","tooltip":"","group":"cd335283cf1927d8","order":9,"width":"2","height":"2","passthru":true,"decouple":"false","topic":"33","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1110,"y":600,"wires":[["f14ed4056f751f65"]]},{"id":"a58166e4219dc82c","type":"link in","z":"c371a29076a0599a","name":"S31","links":["5635a7a9d3e65da6","53a718fe3302fb15","b2841b664f0eba80","4d084b995d5b60f3"],"x":950,"y":480,"wires":[["da428e08d1cccc8b"]],"l":true},{"id":"ad14e8aba66c1fe2","type":"link out","z":"c371a29076a0599a","name":"s31 out","mode":"link","links":["2ee36a95fc3acfda","5cd1f341b4709403","d24ef15217f6c285","fd8b6b03592cb4e5"],"x":790,"y":420,"wires":[],"l":true},{"id":"d24ef15217f6c285","type":"link in","z":"c371a29076a0599a","name":"S32","links":["ad14e8aba66c1fe2","5635a7a9d3e65da6","935306dc261b9b49","791a2c02540eb25e"],"x":950,"y":540,"wires":[["23fd5b8e46b57394"]],"l":true},{"id":"2ee36a95fc3acfda","type":"link in","z":"c371a29076a0599a","name":"S33","links":["ad14e8aba66c1fe2","53a718fe3302fb15","9a13e872ad245702","6b6957f747cc15b2","e2f8d6294cf52029","eeb88439a3bb9612","fb6d5bdbed246d05","9ba131ce5f897beb"],"x":950,"y":600,"wires":[["de18fe09bd21d611"]],"l":true},{"id":"53a718fe3302fb15","type":"link out","z":"c371a29076a0599a","name":"s32 out","mode":"link","links":["2ee36a95fc3acfda","32cbe001f9863d12","36f4c34cb13a8466","a58166e4219dc82c"],"x":790,"y":460,"wires":[],"l":true},{"id":"5635a7a9d3e65da6","type":"link out","z":"c371a29076a0599a","name":"s33  out","mode":"link","links":["7522ad1bc484eb78","8625331225cb9124","a58166e4219dc82c","d24ef15217f6c285"],"x":790,"y":500,"wires":[],"l":true},{"id":"ce8db58731f459d2","type":"link in","z":"c371a29076a0599a","name":"switch test","links":["f14ed4056f751f65"],"x":400,"y":220,"wires":[["a02d2d1b758a0b21"]],"l":true},{"id":"a02d2d1b758a0b21","type":"switch","z":"c371a29076a0599a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":390,"y":280,"wires":[["135e7a8264811e4e"]]},{"id":"f14ed4056f751f65","type":"link out","z":"c371a29076a0599a","name":"to switch test","mode":"link","links":["ce8db58731f459d2"],"x":1370,"y":360,"wires":[],"l":true},{"id":"d3a31a6529b755d1","type":"switch","z":"c371a29076a0599a","name":"","property":"rowcol","propertyType":"msg","rules":[{"t":"eq","v":"11","vt":"num"},{"t":"eq","v":"12","vt":"num"},{"t":"eq","v":"13","vt":"num"},{"t":"eq","v":"21","vt":"num"},{"t":"eq","v":"22","vt":"num"},{"t":"eq","v":"23","vt":"num"},{"t":"eq","v":"31","vt":"num"},{"t":"eq","v":"32","vt":"num"},{"t":"eq","v":"33","vt":"num"}],"checkall":"true","repair":false,"outputs":9,"x":570,"y":340,"wires":[["b2841b664f0eba80"],["935306dc261b9b49"],["9a13e872ad245702"],["4d084b995d5b60f3"],["791a2c02540eb25e"],["6b6957f747cc15b2"],["ad14e8aba66c1fe2"],["53a718fe3302fb15"],["5635a7a9d3e65da6"]]},{"id":"135e7a8264811e4e","type":"function","z":"c371a29076a0599a","name":"function v2","func":"let rowcol = parseInt(msg.topic)\n\n//let myArray = rowcol.split(\",\")\n//node.warn(\"myArray[0]=\" + myArray[0])\n\n//node.warn(\"myArray=[1]=\" + myArray[1])\n\n//let row = parseInt(myArray[0])\n//let column = parseInt(myArray[1])\n//rowcol = (row*10)+column\n\n//msg.row = row\n//msg.column = column\nmsg.rowcol = rowcol\nmsg.payload = false\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":340,"wires":[["d3a31a6529b755d1"]]},{"id":"cd335283cf1927d8","type":"ui_group","name":"matrix","tab":"8f03e639.85956","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
4 Likes

All great ideas! I think I like @zenofmud idea the best, it offers the most flexibility for linking or unlinking inputs/outputs.

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