Nice to have in the library, maybe useful, who knows when
[{"id":"5ea18678.975138","type":"trigger","z":"d01d2553.fd9838","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-1","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":800,"y":2290,"wires":[["61d84db7.6342f4"]]},{"id":"5c39bd09.702d84","type":"ui_template","z":"d01d2553.fd9838","group":"16fdc5e1.9ee0fa","name":"","order":7,"width":0,"height":0,"format":"<button ng-mousedown=\"send({payload: 'down'})\" ng-mouseup=\"send({payload: 'up'})\">button1</button>\n","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":330,"y":2360,"wires":[["e6fdaafd.8f97d8","dcfb5cce.0431a"]]},{"id":"e6fdaafd.8f97d8","type":"debug","z":"d01d2553.fd9838","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":560,"y":2500,"wires":[]},{"id":"dcfb5cce.0431a","type":"switch","z":"d01d2553.fd9838","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"down","vt":"str"},{"t":"eq","v":"up","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":540,"y":2360,"wires":[["5ea18678.975138"],["8cdd0a6b.40bcd8"]]},{"id":"61d84db7.6342f4","type":"debug","z":"d01d2553.fd9838","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1050,"y":2360,"wires":[]},{"id":"8cdd0a6b.40bcd8","type":"change","z":"d01d2553.fd9838","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":2420,"wires":[["5ea18678.975138"]]},{"id":"16fdc5e1.9ee0fa","type":"ui_group","z":"","name":"Buttons","tab":"8f57f520.e87078","order":2,"disp":false,"width":"6","collapse":false},{"id":"8f57f520.e87078","type":"ui_tab","z":"","name":"Some stuff","icon":"dashboard","order":1,"disabled":false,"hidden":false}]