Can someone help me it does not work , with relay must go off or on, the switch works

[{"id":"2a063b3b.1c75f4","type":"tab","label":"test relay","disabled":false,"info":""},{"id":"fac98925.ada328","type":"ui_gauge","z":"2a063b3b.1c75f4","name":"","group":"7965524d.520eec","order":0,"width":0,"height":0,"gtype":"gage","title":"","label":"%","format":"{{value}}","min":"0","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":510,"y":360,"wires":},{"id":"f2fc93a3.fbc2e","type":"ui_gauge","z":"2a063b3b.1c75f4","name":"","group":"29e318f5.d6cd38","order":0,"width":0,"height":0,"gtype":"gage","title":"","label":"ºC","format":"{{value}}","min":"0","max":"35","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":962.0000610351562,"y":261,"wires":},{"id":"9db70d2b.667","type":"ui_chart","z":"2a063b3b.1c75f4","name":"","group":"7965524d.520eec","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"auto","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#1f77b4","#f90933","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":310,"y":400,"wires":[]},{"id":"6867060e.f0f6f8","type":"function","z":"2a063b3b.1c75f4","name":"Temperatuur conditie","func":"if (msg.temp<msg.tempmin)\n{\nmsg.payload="1";\nreturn(msg);\n}\n\nif (msg.temp>msg.tempmax)\n{\nmsg.payload="0";\nreturn(msg);\n}","outputs":1,"noerr":0,"x":756,"y":124.99998474121094,"wires":[["d6bd9847.051588","7550d6a4.978af8"]]},{"id":"d6bd9847.051588","type":"debug","z":"2a063b3b.1c75f4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":988,"y":122.99998474121094,"wires":},{"id":"f1eb309e.71f7e","type":"ui_switch","z":"2a063b3b.1c75f4","name":"","label":"switch","tooltip":"","group":"7965524d.520eec","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":799,"y":333,"wires":[["7550d6a4.978af8"]]},{"id":"7550d6a4.978af8","type":"mqtt out","z":"2a063b3b.1c75f4","name":"relay","topic":"event","qos":"1","retain":"false","broker":"b1dfdfc3.019a8","x":939,"y":333,"wires":},{"id":"bc777c71.dd389","type":"change","z":"2a063b3b.1c75f4","name":"change payload discription","rules":[{"t":"move","p":"payload","pt":"msg","to":"tempmax","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":406.5,"y":137.99998474121094,"wires":[["6867060e.f0f6f8","2ae3f583.92399a"]]},{"id":"e7080e5c.78785","type":"change","z":"2a063b3b.1c75f4","name":"change payload discription","rules":[{"t":"move","p":"payload","pt":"msg","to":"tempmin","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":446.20001220703125,"y":82.19998168945312,"wires":[["6867060e.f0f6f8","d25c19ca.52e698"]]},{"id":"133ecb5.9832435","type":"ui_numeric","z":"2a063b3b.1c75f4","name":"tempmin","label":"tempmin","tooltip":"","group":"29e318f5.d6cd38","order":0,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":"0","max":"20","step":1,"x":143.5,"y":82.19998168945312,"wires":[["e7080e5c.78785"]]},{"id":"ea8ee219.8058f","type":"ui_numeric","z":"2a063b3b.1c75f4","name":"tempmax","label":"tempmax","tooltip":"","group":"29e318f5.d6cd38","order":0,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":"0","max":"24","step":1,"x":131.5,"y":137.19998168945312,"wires":[["bc777c71.dd389"]]},{"id":"2ae3f583.92399a","type":"debug","z":"2a063b3b.1c75f4","name":"tempmax","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"tempmax","targetType":"msg","x":775,"y":172.99998474121094,"wires":},{"id":"228a1dc6.ac4aa2","type":"ui_numeric","z":"2a063b3b.1c75f4","name":"","label":"plus en min","tooltip":"","group":"29e318f5.d6cd38","order":0,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":"0","max":"35","step":1,"x":290,"y":200,"wires":[["c079567f.0a1308","f2fc93a3.fbc2e"]]},{"id":"c079567f.0a1308","type":"change","z":"2a063b3b.1c75f4","name":"change payload discription","rules":[{"t":"move","p":"payload","pt":"msg","to":"temp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":543.2000122070312,"y":196.19998168945312,"wires":[["6867060e.f0f6f8"]]},{"id":"d25c19ca.52e698","type":"debug","z":"2a063b3b.1c75f4","name":"tempmin","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"tempmin","targetType":"msg","x":715,"y":52.99998474121094,"wires":},{"id":"2bdd4674.c4247a","type":"mqtt in","z":"2a063b3b.1c75f4","name":"","topic":"bme280temp","qos":"2","datatype":"auto","broker":"b1dfdfc3.019a8","x":110,"y":260,"wires":[["228a1dc6.ac4aa2"]]},{"id":"8ceb76eb.47bfb8","type":"mqtt in","z":"2a063b3b.1c75f4","name":"","topic":"bme280hum","qos":"2","datatype":"auto","broker":"b1dfdfc3.019a8","x":110,"y":320,"wires":[["9db70d2b.667","fac98925.ada328"]]},{"id":"7965524d.520eec","type":"ui_group","z":"","name":"humedad","tab":"d9c25484.23fca8","order":3,"disp":true,"width":"6","collapse":false},{"id":"29e318f5.d6cd38","type":"ui_group","z":"","name":"tempmax","tab":"d9c25484.23fca8","order":2,"disp":true,"width":"6","collapse":false},{"id":"b1dfdfc3.019a8","type":"mqtt-broker","z":"","name":"","broker":"192.168.0.205","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"d9c25484.23fca8","type":"ui_tab","z":"","name":"Ubicación 1","icon":"dashboard","order":1}]

Hi @sioenl, welcome to the forum.

Please read this post which describes how to properly share flows: How to share code or flow json

Please also update your post to describe a bit more about what you are trying to do and what problem you are facing.

Thanks