This is my take on a momentary button with ajdustable latching.
[{"id":"57be3015.329b2","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"6db5213c.818eb","type":"ui_button","z":"57be3015.329b2","name":"O1 On","group":"f939857c.dafb1","order":10,"width":0,"height":0,"passthru":true,"label":"Reset1","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"","x":110,"y":60,"wires":[["647c7b57.f2986c"]]},{"id":"647c7b57.f2986c","type":"trigger","z":"57be3015.329b2","name":"","op1":"1","op2":"0","op1type":"num","op2type":"num","duration":"2","extend":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":2,"x":340,"y":60,"wires":[["5691c189.486888","7df9bc07.eaf54c","afe4324b.f05098"],["5db49b94.87d194"]]},{"id":"5691c189.486888","type":"pccc out","z":"57be3015.329b2","endpoint":"32383bbb.254bc4","variable":"HMI Reset","name":"","x":620,"y":60,"wires":[]},{"id":"7df9bc07.eaf54c","type":"pccc out","z":"57be3015.329b2","endpoint":"32383bbb.254bc4","variable":"Output2","name":"","x":620,"y":100,"wires":[]},{"id":"5db49b94.87d194","type":"trigger","z":"57be3015.329b2","name":"","op1":"0","op2":"","op1type":"num","op2type":"nul","duration":"3","extend":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":620,"y":140,"wires":[["d288f57b.4f7838","bd15d5cc.4cd068","c946dafa.cb9ff8"]]},{"id":"d288f57b.4f7838","type":"pccc out","z":"57be3015.329b2","endpoint":"32383bbb.254bc4","variable":"HMI Reset","name":"","x":780,"y":120,"wires":[]},{"id":"bd15d5cc.4cd068","type":"pccc out","z":"57be3015.329b2","endpoint":"32383bbb.254bc4","variable":"Output2","name":"","x":780,"y":160,"wires":[]},{"id":"afe4324b.f05098","type":"debug","z":"57be3015.329b2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":20,"wires":[]},{"id":"c946dafa.cb9ff8","type":"debug","z":"57be3015.329b2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":790,"y":200,"wires":[]},{"id":"f939857c.dafb1","type":"ui_group","z":"","name":"Boyd Wilson Demo Pump","tab":"c454a31f.5cf1b8","order":3,"disp":true,"width":"6","collapse":false},{"id":"32383bbb.254bc4","type":"pccc endpoint","z":"","address":"192.168.001.151","port":"44818","userouting":false,"routing":"0x01,0x00,0x01,0x00","cycletime":"500","timeout":"6000","name":"","vartable":[{"addr":"N100:0/0","name":"Output1"},{"addr":"N101:0/0","name":"Input1"},{"addr":"N99:1/0","name":"Alarm1"},{"addr":"N99:1/1","name":"Alarm2"},{"addr":"N99:1/2","name":"Alarm3"},{"addr":"N99:1/3","name":"Alarm4"},{"addr":"N200:0/0","name":"Sewer 1 FTR"},{"addr":"N9:0/1","name":"N9:0/1"},{"addr":"N10:0/0","name":"HMI Reset"},{"addr":"N100:0/1","name":"Output2"}]},{"id":"c454a31f.5cf1b8","type":"ui_tab","z":"","name":"SD750 DRIVES","icon":"dashboard","disabled":false,"hidden":false}]