Hi Erwin,
I've prepared something for you.
[{"id":"ef1fc105685aed46","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"08ed4bf3d8fe21d9","type":"ui_switch","z":"ef1fc105685aed46","name":"","label":"NAS on/off","tooltip":"","group":"e924fd1fd06cf83a","order":0,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"topic","topicType":"msg","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":370,"y":240,"wires":[["0344fa4b5d334dbe"]]},{"id":"040e3cd0157b0925","type":"change","z":"ef1fc105685aed46","name":"","rules":[{"t":"set","p":"gate","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":160,"wires":[[]]},{"id":"0344fa4b5d334dbe","type":"switch","z":"ef1fc105685aed46","name":"","property":"gate","propertyType":"flow","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":300,"wires":[["08ed4bf3d8fe21d9","4610c433a0a4734d"],[]]},{"id":"2302680fbf4e2b27","type":"ui_switch","z":"ef1fc105685aed46","name":"","label":"Enable","tooltip":"","group":"e924fd1fd06cf83a","order":1,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"topic","topicType":"msg","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":360,"y":80,"wires":[["c9376a86c72a1cbd"]]},{"id":"c9376a86c72a1cbd","type":"trigger","z":"ef1fc105685aed46","name":"","op1":"true","op2":"false","op1type":"bool","op2type":"bool","duration":"5","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":540,"y":140,"wires":[["2302680fbf4e2b27","040e3cd0157b0925","9d39129e738d8f80"]]},{"id":"9d39129e738d8f80","type":"ui_text","z":"ef1fc105685aed46","group":"e924fd1fd06cf83a","order":2,"width":0,"height":0,"name":"","label":"Enable:","format":"{{msg.payload}}","layout":"row-spread","className":"","x":740,"y":120,"wires":[]},{"id":"4610c433a0a4734d","type":"ui_text","z":"ef1fc105685aed46","group":"e924fd1fd06cf83a","order":2,"width":0,"height":0,"name":"","label":"NAS:","format":"{{msg.payload}}","layout":"row-spread","className":"","x":730,"y":300,"wires":[]},{"id":"e924fd1fd06cf83a","type":"ui_group","name":"Default","tab":"854bd9cd49df7ac1","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"854bd9cd49df7ac1","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
I hope I have understood your needs well.
Stepan