The first thing we need is a basic flow to separate button presses into different outputs. [{"id":"50b49ab2.1e6f64","type":"mqtt in","z":"7805686.aa4fd98","name":"","topic":"button_glove","qos":"0","datatype":"auto","broker":"","x":310,"y":2180,"wires":[["ea9f502f.2dd17"]]},{"id":"ea9f502f.2dd17","type":"json","z":"7805686.aa4fd98","name":"","property":"payload","action":"obj","pretty":false,"x":490,"y":2180,"wires":[["425aef92.aa3da8"]]},{"id":"425aef92.aa3da8","type":"function","z":"7805686.aa4fd98","name":"ButtonSeperator","func":"var...