Maybe like this
[{"id":"139ccf82.c9432","type":"ui_switch","z":"846d7832.3348c8","name":"","label":"switch","tooltip":"","group":"29422079.db4db","order":2,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":180,"y":1380,"wires":[["1eea49e4.cc5be6"]]},{"id":"1eea49e4.cc5be6","type":"ui_slider","z":"846d7832.3348c8","name":"","label":"slider","tooltip":"","group":"29422079.db4db","order":1,"width":0,"height":0,"passthru":true,"outs":"all","topic":"","min":0,"max":"100","step":1,"x":330,"y":1380,"wires":[["54f5b2b3.b16f1c","6bac8cb8.78e7e4"]]},{"id":"54f5b2b3.b16f1c","type":"ui_gauge","z":"846d7832.3348c8","name":"","group":"29422079.db4db","order":0,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":550,"y":1380,"wires":[]},{"id":"6bac8cb8.78e7e4","type":"switch","z":"846d7832.3348c8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":170,"y":1520,"wires":[["139ccf82.c9432"],["3492729d.ffd83e"]]},{"id":"3492729d.ffd83e","type":"change","z":"846d7832.3348c8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":1520,"wires":[["139ccf82.c9432"]]},{"id":"29422079.db4db","type":"ui_group","z":"","name":"Default","tab":"4e7a1ada.29ed94","disp":true,"width":"6","collapse":false},{"id":"4e7a1ada.29ed94","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]