It is not trivial but still possible . Try flow below:
[{"id":"b954bdf6.7ca99","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"de3905bc.b94e48","type":"dsm","z":"b954bdf6.7ca99","name":"pump (forum)","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"running\",\n \"states\": {\n \"stopped\": {\n \"1\": \"running\"\n },\n \"running\": {\n \"0\": \"stopped\"\n }\n },\n \"methods\": {\n \"0\": \"sta.fill='red';\",\n \"1\": \"sta.fill='green';\"\n }\n}\n","x":380,"y":230,"wires":[["55e0c831.9bfc38","579cadf6.da28c4","61219a50.6c5804"]]},{"id":"55e0c831.9bfc38","type":"debug","z":"b954bdf6.7ca99","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":690,"y":240,"wires":[]},{"id":"26b12a92.7bc486","type":"dsm","z":"b954bdf6.7ca99","name":"pump","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"stopped\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"1\": \"sta.fill='red';\",\n \"0\": \"sta.fill='green';\"\n }\n}","x":366,"y":344,"wires":[["fb78b749.0678b8","78a9a1d1.82666","74564550.acddbc"]]},{"id":"fb78b749.0678b8","type":"debug","z":"b954bdf6.7ca99","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":610,"y":360,"wires":[]},{"id":"579cadf6.da28c4","type":"ui_button","z":"b954bdf6.7ca99","name":"","group":"dae20864.9f1898","order":2,"width":0,"height":0,"passthru":false,"label":"Everything is OK","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":490,"y":60,"wires":[[]]},{"id":"78a9a1d1.82666","type":"ui_button","z":"b954bdf6.7ca99","name":"","group":"27357b0e.7ff314","order":0,"width":0,"height":0,"passthru":false,"label":"Warning!!!!!!!!!!!!!!!!!!","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":597,"y":310,"wires":[[]]},{"id":"55646978.bdf258","type":"inject","z":"b954bdf6.7ca99","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":220,"wires":[["de3905bc.b94e48","26b12a92.7bc486"]]},{"id":"7e533f32.69977","type":"inject","z":"b954bdf6.7ca99","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":300,"wires":[["de3905bc.b94e48","26b12a92.7bc486"]]},{"id":"61219a50.6c5804","type":"function","z":"b954bdf6.7ca99","name":"Set gauge color","func":"if (msg.payload == 1) {\n msg.ui_control = {\"options\":{\"levelColors\": [\"#00ff00\",\"#00ff00\",\"#808080\"]}}\n} else if (msg.payload == 0) {\n msg.ui_control = {\"options\":{\"gaugeColor\":\"#00ff00\"}}\n}\nreturn msg;","outputs":1,"noerr":0,"x":620,"y":160,"wires":[["83493f96.278c5","f1adb18f.4a81"]]},{"id":"83493f96.278c5","type":"debug","z":"b954bdf6.7ca99","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":830,"y":120,"wires":[]},{"id":"f1adb18f.4a81","type":"ui_gauge","z":"b954bdf6.7ca99","name":"","group":"dae20864.9f1898","order":1,"width":0,"height":0,"gtype":"donut","title":"Left","label":"units","format":"{{value}}","min":"0","max":"1","colors":["#ffffff","#ffffff","#ffffff"],"seg1":"","seg2":"","x":850,"y":180,"wires":[]},{"id":"74564550.acddbc","type":"function","z":"b954bdf6.7ca99","name":"Set gauge color","func":"if (msg.payload == 1) {\n msg.ui_control = {\"options\":{\"levelColors\": [\"#ffffff\",\"#ffffff\",\"#ff0000\"]}}\n} \nreturn msg;","outputs":1,"noerr":0,"x":640,"y":420,"wires":[["78b2570d.c92d98","81de412b.ca197"]]},{"id":"78b2570d.c92d98","type":"debug","z":"b954bdf6.7ca99","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":850,"y":380,"wires":[]},{"id":"81de412b.ca197","type":"ui_gauge","z":"b954bdf6.7ca99","name":"","group":"27357b0e.7ff314","order":1,"width":0,"height":0,"gtype":"donut","title":"Right","label":"units","format":"{{value}}","min":"0","max":"1","colors":["#ffffff","#ffffff","#ffffff"],"seg1":"","seg2":"","x":870,"y":440,"wires":[]},{"id":"dae20864.9f1898","type":"ui_group","z":"","name":"Test 1","tab":"a3e07da6.f8a64","order":1,"disp":true,"width":"6","collapse":false},{"id":"27357b0e.7ff314","type":"ui_group","z":"","name":"Test 2","tab":"a3e07da6.f8a64","order":2,"disp":true,"width":"6","collapse":false},{"id":"a3e07da6.f8a64","type":"ui_tab","z":"","name":"Monitoring System","icon":"dashboard"}]