Use of UI control

I have got a flow like that in the screenshot and i want to use and ui control in order to manage the groups. I followed a guide but it doesn't work. My goal is to select, through a button, the gauge or the chart that i want to see in my dashboard.


My flow is this:

[{"id":"7dd2e45c.5e8f6c","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"c8b2567.da0a8a8","type":"debug","z":"7dd2e45c.5e8f6c","name":"","active":false,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","x":960,"y":380,"wires":[]},{"id":"49f6c272.1480fc","type":"delay","z":"7dd2e45c.5e8f6c","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":650,"y":380,"wires":[["c8b2567.da0a8a8","83896a07.4dba68","25a56ca1.1e8b44","9a4024dd.0e1be8"]]},{"id":"477c0204.bc136c","type":"split","z":"7dd2e45c.5e8f6c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":490,"y":380,"wires":[["49f6c272.1480fc"]]},{"id":"ac583345.f9909","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.input","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":380,"wires":[["477c0204.bc136c"]]},{"id":"5cc58f70.66d19","type":"json","z":"7dd2e45c.5e8f6c","name":"","property":"payload","action":"obj","pretty":true,"x":190,"y":380,"wires":[["ac583345.f9909"]]},{"id":"b0955680.609088","type":"pythonshell in","z":"7dd2e45c.5e8f6c","name":"","pyfile":"C:\\Users\\fabio\\OneDrive\\Desktop\\Input.py","virtualenv":"","continuous":false,"stdInData":false,"x":280,"y":440,"wires":[["5cc58f70.66d19"]]},{"id":"b7f926b7.9b1988","type":"debug","z":"7dd2e45c.5e8f6c","name":"","active":false,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","x":940,"y":580,"wires":[]},{"id":"fd4527f4.556388","type":"delay","z":"7dd2e45c.5e8f6c","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":750,"y":580,"wires":[["b7f926b7.9b1988","fe9d06b5.161478"]]},{"id":"ee961548.65ccb8","type":"split","z":"7dd2e45c.5e8f6c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":610,"y":580,"wires":[["fd4527f4.556388"]]},{"id":"aef6c77a.9d0158","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.modello","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":580,"wires":[["ee961548.65ccb8"]]},{"id":"a77fedce.96bfd","type":"json","z":"7dd2e45c.5e8f6c","name":"","property":"payload","action":"obj","pretty":true,"x":290,"y":580,"wires":[["aef6c77a.9d0158"]]},{"id":"279e665d.06f19a","type":"pythonshell in","z":"7dd2e45c.5e8f6c","name":"","pyfile":"C:\\Users\\fabio\\OneDrive\\Desktop\\modellomu.py","virtualenv":"","continuous":false,"stdInData":false,"x":340,"y":660,"wires":[["a77fedce.96bfd"]]},{"id":"83896a07.4dba68","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"Input","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":440,"wires":[["320a0a6.18486f6","6b807cc.38a1484"]]},{"id":"fe9d06b5.161478","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"modello","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":500,"wires":[["320a0a6.18486f6","6b807cc.38a1484","72992740.205178"]]},{"id":"48a40a6c.180cc4","type":"inject","z":"7dd2e45c.5e8f6c","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":520,"wires":[["b0955680.609088","279e665d.06f19a","1a5c585d.81ceb8","928273f8.65334"]]},{"id":"b2efe209.fa7bd","type":"debug","z":"7dd2e45c.5e8f6c","name":"","active":false,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","x":940,"y":720,"wires":[]},{"id":"c2a59e72.19709","type":"delay","z":"7dd2e45c.5e8f6c","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"0.95","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":750,"y":720,"wires":[["b2efe209.fa7bd","fc1ef998.ea8bc8","b9f0f37d.a555"]]},{"id":"7f72921e.f23a4c","type":"split","z":"7dd2e45c.5e8f6c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":610,"y":720,"wires":[["c2a59e72.19709"]]},{"id":"1e23bb48.cbaff5","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.modellopsig","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":720,"wires":[["7f72921e.f23a4c"]]},{"id":"2a31ec97.97b8d4","type":"json","z":"7dd2e45c.5e8f6c","name":"","property":"payload","action":"obj","pretty":true,"x":290,"y":720,"wires":[["1e23bb48.cbaff5"]]},{"id":"1a5c585d.81ceb8","type":"pythonshell in","z":"7dd2e45c.5e8f6c","name":"","pyfile":"C:\\Users\\fabio\\OneDrive\\Desktop\\modellopiusigma.py","virtualenv":"","continuous":false,"stdInData":false,"x":260,"y":780,"wires":[["2a31ec97.97b8d4"]]},{"id":"fc1ef998.ea8bc8","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"modello + sigma","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":660,"wires":[["320a0a6.18486f6","46b8f5b5.5b787c","6b807cc.38a1484"]]},{"id":"263ebb81.d293f4","type":"debug","z":"7dd2e45c.5e8f6c","name":"","active":false,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","x":940,"y":860,"wires":[]},{"id":"ce2d0428.4c2948","type":"delay","z":"7dd2e45c.5e8f6c","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"0.95","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":750,"y":860,"wires":[["263ebb81.d293f4","c32f4f3c.84ea4","bff6df83.4e8f2"]]},{"id":"bed8dc8.f09f12","type":"split","z":"7dd2e45c.5e8f6c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":610,"y":860,"wires":[["ce2d0428.4c2948"]]},{"id":"8c7ab493.e84478","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.modellomsig","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":860,"wires":[["bed8dc8.f09f12"]]},{"id":"f07bdaef.e8c4c8","type":"json","z":"7dd2e45c.5e8f6c","name":"","property":"payload","action":"obj","pretty":true,"x":290,"y":860,"wires":[["8c7ab493.e84478"]]},{"id":"928273f8.65334","type":"pythonshell in","z":"7dd2e45c.5e8f6c","name":"","pyfile":"C:\\Users\\fabio\\OneDrive\\Desktop\\modellomenosigma.py","virtualenv":"","continuous":false,"stdInData":false,"x":340,"y":940,"wires":[["f07bdaef.e8c4c8"]]},{"id":"c32f4f3c.84ea4","type":"change","z":"7dd2e45c.5e8f6c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"modello - sigma","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":800,"wires":[["320a0a6.18486f6","902c9948.8a76e8","6b807cc.38a1484"]]},{"id":"320a0a6.18486f6","type":"ui_chart","z":"7dd2e45c.5e8f6c","name":"","group":"add1e20f.14a69","order":0,"width":"15","height":"15","label":"Input e modello","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"20","removeOlderPoints":"","removeOlderUnit":"1","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":1280,"y":600,"wires":[[]]},{"id":"72992740.205178","type":"ui_gauge","z":"7dd2e45c.5e8f6c","name":"","group":"b01370db.2b04b","order":0,"width":0,"height":0,"gtype":"gage","title":"Modello","label":"units","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1220,"y":420,"wires":[]},{"id":"46b8f5b5.5b787c","type":"ui_gauge","z":"7dd2e45c.5e8f6c","name":"","group":"283acb9d.f52a04","order":0,"width":0,"height":0,"gtype":"gage","title":"Modello + Sigma","label":"units","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1190,"y":700,"wires":[]},{"id":"902c9948.8a76e8","type":"ui_gauge","z":"7dd2e45c.5e8f6c","name":"","group":"fc56c741.448528","order":0,"width":0,"height":0,"gtype":"gage","title":"Modello - Sigma","label":"units","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1140,"y":800,"wires":[]},{"id":"c2805f0f.58b58","type":"debug","z":"7dd2e45c.5e8f6c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1450,"y":600,"wires":[]},{"id":"a058505.70bc1b","type":"debug","z":"7dd2e45c.5e8f6c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1070,"y":320,"wires":[]},{"id":"b9f0f37d.a555","type":"function","z":"7dd2e45c.5e8f6c","name":"global","func":"global.set(\"limitesup\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":750,"y":640,"wires":[[]]},{"id":"bff6df83.4e8f2","type":"function","z":"7dd2e45c.5e8f6c","name":"global","func":"global.set(\"limiteinf\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":870,"y":940,"wires":[[]]},{"id":"25a56ca1.1e8b44","type":"switch","z":"7dd2e45c.5e8f6c","name":"nei limiti","property":"payload","propertyType":"msg","rules":[{"t":"btwn","v":"limitesup","vt":"global","v2":"limiteinf","v2t":"global"}],"checkall":"true","repair":false,"outputs":1,"x":740,"y":300,"wires":[["8c94c4a0.d66958"]]},{"id":"8c94c4a0.d66958","type":"function","z":"7dd2e45c.5e8f6c","name":"","func":"msg.payload=-20\nreturn msg;","outputs":1,"noerr":0,"x":870,"y":320,"wires":[["a058505.70bc1b","4f7b7160.0d1d"]]},{"id":"c072a438.b0bd88","type":"inject","z":"7dd2e45c.5e8f6c","name":"hmanutenzione","topic":"","payload":"500","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":520,"y":140,"wires":[["67470a35.40ae74"]]},{"id":"8699272e.6724d8","type":"join","z":"7dd2e45c.5e8f6c","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"payload","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":950,"y":140,"wires":[["4b05f33e.cf409c"]]},{"id":"8c85d345.78a96","type":"debug","z":"7dd2e45c.5e8f6c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1690,"y":160,"wires":[]},{"id":"67470a35.40ae74","type":"function","z":"7dd2e45c.5e8f6c","name":"into array","func":"msg.payload=[msg.payload]\nreturn msg;","outputs":1,"noerr":0,"x":740,"y":140,"wires":[["8699272e.6724d8"]]},{"id":"4f7b7160.0d1d","type":"function","z":"7dd2e45c.5e8f6c","name":"into array","func":"msg.payload=[msg.payload]\nreturn msg;","outputs":1,"noerr":0,"x":880,"y":260,"wires":[["8699272e.6724d8"]]},{"id":"4b05f33e.cf409c","type":"function","z":"7dd2e45c.5e8f6c","name":"somma","func":"var result = [];\nmsg.payload[0].forEach(function(v,i) {\n   result.push(v+msg.payload[1][i]); \n});\nmsg.payload = result;\nreturn msg;\n","outputs":1,"noerr":0,"x":1100,"y":80,"wires":[["20cbef92.4621e"]]},{"id":"20cbef92.4621e","type":"function","z":"7dd2e45c.5e8f6c","name":"into number","func":"[msg.payload]=msg.payload\nreturn msg;","outputs":1,"noerr":0,"x":1170,"y":160,"wires":[["a986dbe1.709268","89b77b84.2a8548"]]},{"id":"9a4024dd.0e1be8","type":"switch","z":"7dd2e45c.5e8f6c","name":"fuori dai limiti","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"limitesup","vt":"global"},{"t":"lte","v":"limiteinf","vt":"global"}],"checkall":"true","repair":false,"outputs":2,"x":390,"y":220,"wires":[["f8cc2858.ce1bd8"],["f8cc2858.ce1bd8"]]},{"id":"f8cc2858.ce1bd8","type":"function","z":"7dd2e45c.5e8f6c","name":"","func":"msg.payload=0\nreturn msg;","outputs":1,"noerr":0,"x":550,"y":220,"wires":[["20776025.cf333"]]},{"id":"20776025.cf333","type":"function","z":"7dd2e45c.5e8f6c","name":"into array","func":"msg.payload=[msg.payload]\nreturn msg;","outputs":1,"noerr":0,"x":720,"y":220,"wires":[["8699272e.6724d8"]]},{"id":"a2da2cb2.c3936","type":"ui_template","z":"7dd2e45c.5e8f6c","group":"a232e2dd.5ba2","name":"","order":8,"width":0,"height":0,"format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1560,"y":360,"wires":[[]]},{"id":"4e181880.44ed08","type":"ui_template","z":"7dd2e45c.5e8f6c","group":"b01370db.2b04b","name":"","order":0,"width":0,"height":0,"format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1560,"y":460,"wires":[[]]},{"id":"f0bf9a39.0af168","type":"ui_template","z":"7dd2e45c.5e8f6c","group":"283acb9d.f52a04","name":"","order":0,"width":0,"height":0,"format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1480,"y":740,"wires":[[]]},{"id":"9596fe56.ccaff","type":"ui_template","z":"7dd2e45c.5e8f6c","group":"fc56c741.448528","name":"","order":0,"width":0,"height":0,"format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1500,"y":860,"wires":[[]]},{"id":"e1c26a67.696da8","type":"ui_button","z":"7dd2e45c.5e8f6c","name":"","group":"c850d7f6.285d88","order":0,"width":0,"height":0,"passthru":false,"label":"button1","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\":{\"hide\":[\"Homeee_Group_2\",\"Homeee_Group_3\",\"Homeee_Group_4\"],\"show\":[\"Homeee_Group_1\"]}}","payloadType":"json","topic":"","x":1560,"y":420,"wires":[["6b807cc.38a1484"]]},{"id":"1688f4e4.a2d16b","type":"ui_button","z":"7dd2e45c.5e8f6c","name":"","group":"c850d7f6.285d88","order":1,"width":0,"height":0,"passthru":false,"label":"button2","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\":{\"hide\":[\"Homeee_Group_1\",\"Homeee_Group_3\",\"Homeee_Group_4\"],\"show\":[\"Homeee_Group_2\"]}}","payloadType":"json","topic":"","x":1580,"y":500,"wires":[["6b807cc.38a1484"]]},{"id":"3321c789.a32388","type":"ui_button","z":"7dd2e45c.5e8f6c","name":"","group":"c850d7f6.285d88","order":2,"width":0,"height":0,"passthru":false,"label":"button3","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\":{\"hide\":[\"Homeee_Group_2\",\"Homeee_Group_1\",\"Homeee_Group_4\"],\"show\":[\"Homeee_Group_3\"]}}","payloadType":"json","topic":"","x":1480,"y":700,"wires":[["6b807cc.38a1484"]]},{"id":"2d0e7a12.21a8c6","type":"ui_button","z":"7dd2e45c.5e8f6c","name":"","group":"c850d7f6.285d88","order":3,"width":0,"height":0,"passthru":false,"label":"button4","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\":{\"hide\":[\"Homeee_Group_2\",\"Homeee_Group_3\",\"Homeee_Group_1\"],\"show\":[\"Homeee_Group_4\"]}}","payloadType":"json","topic":"","x":1480,"y":900,"wires":[["6b807cc.38a1484"]]},{"id":"6b807cc.38a1484","type":"ui_ui_control","z":"7dd2e45c.5e8f6c","name":"","events":"all","x":1920,"y":600,"wires":[[]]},{"id":"a986dbe1.709268","type":"switch","z":"7dd2e45c.5e8f6c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"500","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":1310,"y":200,"wires":[["895b3944.e7dc58"]]},{"id":"895b3944.e7dc58","type":"function","z":"7dd2e45c.5e8f6c","name":"","func":"msg.payload=500\nreturn msg;","outputs":1,"noerr":0,"x":1460,"y":240,"wires":[["8c85d345.78a96"]]},{"id":"89b77b84.2a8548","type":"switch","z":"7dd2e45c.5e8f6c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"500","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":1360,"y":120,"wires":[["fb0eee89.478ed"]]},{"id":"fb0eee89.478ed","type":"function","z":"7dd2e45c.5e8f6c","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":1490,"y":120,"wires":[["8c85d345.78a96"]]},{"id":"58eedde5.f552b4","type":"inject","z":"7dd2e45c.5e8f6c","name":"Substitution to pythonshell","topic":"","payload":"{\"media1\":[-5,-5,-5,-5,-5,-5,-5,-5,15,15]}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":470,"y":1040,"wires":[[]]},{"id":"add1e20f.14a69","type":"ui_group","z":"","name":"confronti","tab":"7ad96d8a.484be4","disp":true,"width":"6","collapse":false},{"id":"b01370db.2b04b","type":"ui_group","z":"","name":"Group 2","tab":"dbb30635.4b4fa8","disp":true,"width":"6","collapse":false},{"id":"283acb9d.f52a04","type":"ui_group","z":"","name":"Group 3","tab":"dbb30635.4b4fa8","disp":true,"width":"12","collapse":false},{"id":"fc56c741.448528","type":"ui_group","z":"","name":"Group 4","tab":"dbb30635.4b4fa8","disp":true,"width":"12","collapse":false},{"id":"a232e2dd.5ba2","type":"ui_group","z":"","name":"Group 1","tab":"dbb30635.4b4fa8","disp":true,"width":"6","collapse":false},{"id":"c850d7f6.285d88","type":"ui_group","z":"","name":"Homeee","tab":"dbb30635.4b4fa8","disp":true,"width":"10","collapse":false},{"id":"7ad96d8a.484be4","type":"ui_tab","z":"","name":"Prove","icon":"dashboard","disabled":false,"hidden":false},{"id":"dbb30635.4b4fa8","type":"ui_tab","z":"","name":"prove1","icon":"dashboard","disabled":false,"hidden":false}]

The python shell can be substituted with the inject node containing a string.

Yes, there was something wrong. The right flow is this:

[
    {
        "id": "7dd2e45c.5e8f6c",
        "type": "tab",
        "label": "Flow 2",
        "disabled": false,
        "info": ""
    },
    {
        "id": "c8b2567.da0a8a8",
        "type": "debug",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": true,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 960,
        "y": 380,
        "wires": []
    },
    {
        "id": "49f6c272.1480fc",
        "type": "delay",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 650,
        "y": 380,
        "wires": [
            [
                "c8b2567.da0a8a8",
                "83896a07.4dba68",
                "25a56ca1.1e8b44",
                "9a4024dd.0e1be8"
            ]
        ]
    },
    {
        "id": "477c0204.bc136c",
        "type": "split",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 490,
        "y": 380,
        "wires": [
            [
                "49f6c272.1480fc"
            ]
        ]
    },
    {
        "id": "ac583345.f9909",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.input",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 340,
        "y": 380,
        "wires": [
            [
                "477c0204.bc136c"
            ]
        ]
    },
    {
        "id": "5cc58f70.66d19",
        "type": "json",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "property": "payload",
        "action": "obj",
        "pretty": true,
        "x": 190,
        "y": 380,
        "wires": [
            [
                "ac583345.f9909"
            ]
        ]
    },
    {
        "id": "b0955680.609088",
        "type": "pythonshell in",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pyfile": "C:\\Users\\fabio\\OneDrive\\Desktop\\Input.py",
        "virtualenv": "",
        "continuous": false,
        "stdInData": false,
        "x": 280,
        "y": 440,
        "wires": [
            [
                "5cc58f70.66d19"
            ]
        ]
    },
    {
        "id": "b7f926b7.9b1988",
        "type": "debug",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": true,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 940,
        "y": 580,
        "wires": []
    },
    {
        "id": "fd4527f4.556388",
        "type": "delay",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 750,
        "y": 580,
        "wires": [
            [
                "b7f926b7.9b1988",
                "fe9d06b5.161478"
            ]
        ]
    },
    {
        "id": "ee961548.65ccb8",
        "type": "split",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 610,
        "y": 580,
        "wires": [
            [
                "fd4527f4.556388"
            ]
        ]
    },
    {
        "id": "aef6c77a.9d0158",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.modello",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 460,
        "y": 580,
        "wires": [
            [
                "ee961548.65ccb8"
            ]
        ]
    },
    {
        "id": "a77fedce.96bfd",
        "type": "json",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "property": "payload",
        "action": "obj",
        "pretty": true,
        "x": 290,
        "y": 580,
        "wires": [
            [
                "aef6c77a.9d0158"
            ]
        ]
    },
    {
        "id": "279e665d.06f19a",
        "type": "pythonshell in",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pyfile": "C:\\Users\\fabio\\OneDrive\\Desktop\\modellomu.py",
        "virtualenv": "",
        "continuous": false,
        "stdInData": false,
        "x": 340,
        "y": 660,
        "wires": [
            [
                "a77fedce.96bfd"
            ]
        ]
    },
    {
        "id": "83896a07.4dba68",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "Input",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 890,
        "y": 440,
        "wires": [
            [
                "320a0a6.18486f6",
                "6b807cc.38a1484"
            ]
        ]
    },
    {
        "id": "fe9d06b5.161478",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "modello",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 810,
        "y": 500,
        "wires": [
            [
                "320a0a6.18486f6",
                "6b807cc.38a1484",
                "72992740.205178"
            ]
        ]
    },
    {
        "id": "48a40a6c.180cc4",
        "type": "inject",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 210,
        "y": 520,
        "wires": [
            [
                "b0955680.609088",
                "279e665d.06f19a",
                "1a5c585d.81ceb8",
                "928273f8.65334"
            ]
        ]
    },
    {
        "id": "b2efe209.fa7bd",
        "type": "debug",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": true,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 940,
        "y": 720,
        "wires": []
    },
    {
        "id": "c2a59e72.19709",
        "type": "delay",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "0.95",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 750,
        "y": 720,
        "wires": [
            [
                "b2efe209.fa7bd",
                "fc1ef998.ea8bc8",
                "b9f0f37d.a555"
            ]
        ]
    },
    {
        "id": "7f72921e.f23a4c",
        "type": "split",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 610,
        "y": 720,
        "wires": [
            [
                "c2a59e72.19709"
            ]
        ]
    },
    {
        "id": "1e23bb48.cbaff5",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.modellopsig",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 460,
        "y": 720,
        "wires": [
            [
                "7f72921e.f23a4c"
            ]
        ]
    },
    {
        "id": "2a31ec97.97b8d4",
        "type": "json",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "property": "payload",
        "action": "obj",
        "pretty": true,
        "x": 290,
        "y": 720,
        "wires": [
            [
                "1e23bb48.cbaff5"
            ]
        ]
    },
    {
        "id": "1a5c585d.81ceb8",
        "type": "pythonshell in",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pyfile": "C:\\Users\\fabio\\OneDrive\\Desktop\\modellopiusigma.py",
        "virtualenv": "",
        "continuous": false,
        "stdInData": false,
        "x": 260,
        "y": 780,
        "wires": [
            [
                "2a31ec97.97b8d4"
            ]
        ]
    },
    {
        "id": "fc1ef998.ea8bc8",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "modello + sigma",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 990,
        "y": 660,
        "wires": [
            [
                "320a0a6.18486f6",
                "46b8f5b5.5b787c",
                "6b807cc.38a1484"
            ]
        ]
    },
    {
        "id": "263ebb81.d293f4",
        "type": "debug",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": true,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 940,
        "y": 860,
        "wires": []
    },
    {
        "id": "ce2d0428.4c2948",
        "type": "delay",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "0.95",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 750,
        "y": 860,
        "wires": [
            [
                "263ebb81.d293f4",
                "c32f4f3c.84ea4",
                "bff6df83.4e8f2"
            ]
        ]
    },
    {
        "id": "bed8dc8.f09f12",
        "type": "split",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 610,
        "y": 860,
        "wires": [
            [
                "ce2d0428.4c2948"
            ]
        ]
    },
    {
        "id": "8c7ab493.e84478",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.modellomsig",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 460,
        "y": 860,
        "wires": [
            [
                "bed8dc8.f09f12"
            ]
        ]
    },
    {
        "id": "f07bdaef.e8c4c8",
        "type": "json",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "property": "payload",
        "action": "obj",
        "pretty": true,
        "x": 290,
        "y": 860,
        "wires": [
            [
                "8c7ab493.e84478"
            ]
        ]
    },
    {
        "id": "928273f8.65334",
        "type": "pythonshell in",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "pyfile": "C:\\Users\\fabio\\OneDrive\\Desktop\\modellomenosigma.py",
        "virtualenv": "",
        "continuous": false,
        "stdInData": false,
        "x": 340,
        "y": 940,
        "wires": [
            [
                "f07bdaef.e8c4c8"
            ]
        ]
    },
    {
        "id": "c32f4f3c.84ea4",
        "type": "change",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "modello - sigma",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 810,
        "y": 800,
        "wires": [
            [
                "320a0a6.18486f6",
                "902c9948.8a76e8",
                "6b807cc.38a1484"
            ]
        ]
    },
    {
        "id": "320a0a6.18486f6",
        "type": "ui_chart",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "add1e20f.14a69",
        "order": 0,
        "width": "15",
        "height": "15",
        "label": "Input e modello",
        "chartType": "line",
        "legend": "true",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "20",
        "removeOlderPoints": "",
        "removeOlderUnit": "1",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1280,
        "y": 600,
        "wires": [
            []
        ]
    },
    {
        "id": "72992740.205178",
        "type": "ui_gauge",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "b01370db.2b04b",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Modello",
        "label": "units",
        "format": "{{value}}",
        "min": 0,
        "max": "50",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1220,
        "y": 420,
        "wires": []
    },
    {
        "id": "46b8f5b5.5b787c",
        "type": "ui_gauge",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "283acb9d.f52a04",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Modello + Sigma",
        "label": "units",
        "format": "{{value}}",
        "min": 0,
        "max": "50",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1190,
        "y": 700,
        "wires": []
    },
    {
        "id": "902c9948.8a76e8",
        "type": "ui_gauge",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "fc56c741.448528",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Modello - Sigma",
        "label": "units",
        "format": "{{value}}",
        "min": 0,
        "max": "50",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1140,
        "y": 800,
        "wires": []
    },
    {
        "id": "c2805f0f.58b58",
        "type": "debug",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "x": 1450,
        "y": 600,
        "wires": []
    },
    {
        "id": "a058505.70bc1b",
        "type": "debug",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 1070,
        "y": 320,
        "wires": []
    },
    {
        "id": "b9f0f37d.a555",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "global",
        "func": "global.set(\"limitesup\",msg.payload);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 750,
        "y": 640,
        "wires": [
            []
        ]
    },
    {
        "id": "bff6df83.4e8f2",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "global",
        "func": "global.set(\"limiteinf\",msg.payload);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 870,
        "y": 940,
        "wires": [
            []
        ]
    },
    {
        "id": "25a56ca1.1e8b44",
        "type": "switch",
        "z": "7dd2e45c.5e8f6c",
        "name": "nei limiti",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "btwn",
                "v": "limitesup",
                "vt": "global",
                "v2": "limiteinf",
                "v2t": "global"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 740,
        "y": 300,
        "wires": [
            [
                "8c94c4a0.d66958"
            ]
        ]
    },
    {
        "id": "8c94c4a0.d66958",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "func": "msg.payload=-20\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 870,
        "y": 320,
        "wires": [
            [
                "a058505.70bc1b",
                "4f7b7160.0d1d"
            ]
        ]
    },
    {
        "id": "c072a438.b0bd88",
        "type": "inject",
        "z": "7dd2e45c.5e8f6c",
        "name": "hmanutenzione",
        "topic": "",
        "payload": "500",
        "payloadType": "num",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 520,
        "y": 140,
        "wires": [
            [
                "67470a35.40ae74"
            ]
        ]
    },
    {
        "id": "8699272e.6724d8",
        "type": "join",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "mode": "custom",
        "build": "array",
        "property": "payload",
        "propertyType": "msg",
        "key": "payload",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "num",
        "reduceFixup": "",
        "x": 950,
        "y": 140,
        "wires": [
            [
                "4b05f33e.cf409c"
            ]
        ]
    },
    {
        "id": "8c85d345.78a96",
        "type": "debug",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 1690,
        "y": 160,
        "wires": []
    },
    {
        "id": "67470a35.40ae74",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "into array",
        "func": "msg.payload=[msg.payload]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 740,
        "y": 140,
        "wires": [
            [
                "8699272e.6724d8"
            ]
        ]
    },
    {
        "id": "4f7b7160.0d1d",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "into array",
        "func": "msg.payload=[msg.payload]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 880,
        "y": 260,
        "wires": [
            [
                "8699272e.6724d8"
            ]
        ]
    },
    {
        "id": "4b05f33e.cf409c",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "somma",
        "func": "var result = [];\nmsg.payload[0].forEach(function(v,i) {\n   result.push(v+msg.payload[1][i]); \n});\nmsg.payload = result;\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 1100,
        "y": 80,
        "wires": [
            [
                "20cbef92.4621e"
            ]
        ]
    },
    {
        "id": "20cbef92.4621e",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "into number",
        "func": "[msg.payload]=msg.payload\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 1170,
        "y": 160,
        "wires": [
            [
                "a986dbe1.709268",
                "89b77b84.2a8548"
            ]
        ]
    },
    {
        "id": "9a4024dd.0e1be8",
        "type": "switch",
        "z": "7dd2e45c.5e8f6c",
        "name": "fuori dai limiti",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "limitesup",
                "vt": "global"
            },
            {
                "t": "lte",
                "v": "limiteinf",
                "vt": "global"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 390,
        "y": 220,
        "wires": [
            [
                "f8cc2858.ce1bd8"
            ],
            [
                "f8cc2858.ce1bd8"
            ]
        ]
    },
    {
        "id": "f8cc2858.ce1bd8",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "func": "msg.payload=0\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 550,
        "y": 220,
        "wires": [
            [
                "20776025.cf333"
            ]
        ]
    },
    {
        "id": "20776025.cf333",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "into array",
        "func": "msg.payload=[msg.payload]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 720,
        "y": 220,
        "wires": [
            [
                "8699272e.6724d8"
            ]
        ]
    },
    {
        "id": "a2da2cb2.c3936",
        "type": "ui_template",
        "z": "7dd2e45c.5e8f6c",
        "group": "a232e2dd.5ba2",
        "name": "",
        "order": 8,
        "width": 0,
        "height": 0,
        "format": "<div ng-bind-html=\"msg.payload\"></div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "templateScope": "local",
        "x": 1560,
        "y": 360,
        "wires": [
            []
        ]
    },
    {
        "id": "4e181880.44ed08",
        "type": "ui_template",
        "z": "7dd2e45c.5e8f6c",
        "group": "b01370db.2b04b",
        "name": "",
        "order": 0,
        "width": 0,
        "height": 0,
        "format": "<div ng-bind-html=\"msg.payload\"></div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "templateScope": "local",
        "x": 1560,
        "y": 460,
        "wires": [
            []
        ]
    },
    {
        "id": "f0bf9a39.0af168",
        "type": "ui_template",
        "z": "7dd2e45c.5e8f6c",
        "group": "283acb9d.f52a04",
        "name": "",
        "order": 0,
        "width": 0,
        "height": 0,
        "format": "<div ng-bind-html=\"msg.payload\"></div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "templateScope": "local",
        "x": 1480,
        "y": 740,
        "wires": [
            []
        ]
    },
    {
        "id": "9596fe56.ccaff",
        "type": "ui_template",
        "z": "7dd2e45c.5e8f6c",
        "group": "fc56c741.448528",
        "name": "",
        "order": 0,
        "width": 0,
        "height": 0,
        "format": "<div ng-bind-html=\"msg.payload\"></div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "templateScope": "local",
        "x": 1500,
        "y": 860,
        "wires": [
            []
        ]
    },
    {
        "id": "e1c26a67.696da8",
        "type": "ui_button",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "c850d7f6.285d88",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "button1",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "icon": "",
        "payload": "{\"group\":{\"hide\":[\"Homeee_Group_2\",\"Homeee_Group_3\",\"Homeee_Group_4\"],\"show\":[\"Homeee_Group_1\"]}}",
        "payloadType": "json",
        "topic": "",
        "x": 1560,
        "y": 420,
        "wires": [
            [
                "6b807cc.38a1484"
            ]
        ]
    },
    {
        "id": "1688f4e4.a2d16b",
        "type": "ui_button",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "c850d7f6.285d88",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "button2",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "icon": "",
        "payload": "{\"group\":{\"hide\":[\"Homeee_Group_1\",\"Homeee_Group_3\",\"Homeee_Group_4\"],\"show\":[\"Homeee_Group_2\"]}}",
        "payloadType": "json",
        "topic": "",
        "x": 1580,
        "y": 500,
        "wires": [
            [
                "6b807cc.38a1484"
            ]
        ]
    },
    {
        "id": "3321c789.a32388",
        "type": "ui_button",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "c850d7f6.285d88",
        "order": 2,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "button3",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "icon": "",
        "payload": "{\"group\":{\"hide\":[\"Homeee_Group_2\",\"Homeee_Group_1\",\"Homeee_Group_4\"],\"show\":[\"Homeee_Group_3\"]}}",
        "payloadType": "json",
        "topic": "",
        "x": 1480,
        "y": 700,
        "wires": [
            [
                "6b807cc.38a1484"
            ]
        ]
    },
    {
        "id": "2d0e7a12.21a8c6",
        "type": "ui_button",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "group": "c850d7f6.285d88",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "button4",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "icon": "",
        "payload": "{\"group\":{\"hide\":[\"Homeee_Group_2\",\"Homeee_Group_3\",\"Homeee_Group_1\"],\"show\":[\"Homeee_Group_4\"]}}",
        "payloadType": "json",
        "topic": "",
        "x": 1480,
        "y": 900,
        "wires": [
            [
                "6b807cc.38a1484"
            ]
        ]
    },
    {
        "id": "6b807cc.38a1484",
        "type": "ui_ui_control",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "events": "all",
        "x": 1920,
        "y": 600,
        "wires": [
            []
        ]
    },
    {
        "id": "a986dbe1.709268",
        "type": "switch",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "500",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1310,
        "y": 200,
        "wires": [
            [
                "895b3944.e7dc58"
            ]
        ]
    },
    {
        "id": "895b3944.e7dc58",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "func": "msg.payload=500\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 1460,
        "y": 240,
        "wires": [
            [
                "8c85d345.78a96"
            ]
        ]
    },
    {
        "id": "89b77b84.2a8548",
        "type": "switch",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "500",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1360,
        "y": 120,
        "wires": [
            [
                "fb0eee89.478ed"
            ]
        ]
    },
    {
        "id": "fb0eee89.478ed",
        "type": "function",
        "z": "7dd2e45c.5e8f6c",
        "name": "",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 1490,
        "y": 120,
        "wires": [
            [
                "8c85d345.78a96"
            ]
        ]
    },
    {
        "id": "add1e20f.14a69",
        "type": "ui_group",
        "z": "",
        "name": "confronti",
        "tab": "7ad96d8a.484be4",
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "b01370db.2b04b",
        "type": "ui_group",
        "z": "",
        "name": "Group 2",
        "tab": "dbb30635.4b4fa8",
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "283acb9d.f52a04",
        "type": "ui_group",
        "z": "",
        "name": "Group 3",
        "tab": "dbb30635.4b4fa8",
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "fc56c741.448528",
        "type": "ui_group",
        "z": "",
        "name": "Group 4",
        "tab": "dbb30635.4b4fa8",
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "a232e2dd.5ba2",
        "type": "ui_group",
        "z": "",
        "name": "Group 1",
        "tab": "dbb30635.4b4fa8",
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "c850d7f6.285d88",
        "type": "ui_group",
        "z": "",
        "name": "Homeee",
        "tab": "dbb30635.4b4fa8",
        "disp": true,
        "width": "10",
        "collapse": false
    },
    {
        "id": "7ad96d8a.484be4",
        "type": "ui_tab",
        "z": "",
        "name": "Prove",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "dbb30635.4b4fa8",
        "type": "ui_tab",
        "z": "",
        "name": "prove1",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

@fabio, I have edited your posts above, but in future please ensure that whenever you post any code, you do so in the format that the forum expects, otherwise other forum users will no be able to assist you.

See this post;

Thank you very much.

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