Here is a bit of a re-write of the bottom section of the flow.
Works a bit better.
It needs the text to be better modified so it shows it as a FLAG (appended to the existing text)
[{"id":"3f918764.b079f","type":"switch","z":"aa48e352.9ad2f8","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"underVoltage","vt":"str"},{"t":"eq","v":"frequencyCapped","vt":"str"},{"t":"eq","v":"throttled","vt":"str"},{"t":"eq","v":"softTempLimit","vt":"str"},{"t":"eq","v":"underVoltageOccurred","vt":"str"},{"t":"eq","v":"frequencyCappedOccurred","vt":"str"},{"t":"eq","v":"throttledOccurred","vt":"str"},{"t":"eq","v":"softTempLimitOccurred","vt":"str"}],"checkall":"true","repair":false,"outputs":8,"x":490,"y":1570,"wires":[["23ac9937.3bdd86","eb0aed25.73403","37c38967.b379be","7d6b4836.5681d"],["767a874c.b4c7d8","eb0aed25.73403","dcd35d04.1586e8"],["dc24fa1.dfb3788","eb0aed25.73403","c04db9e3.232918"],["a74f3aa7.3c96","eb0aed25.73403","d04963bf.37dc98"],[],[],[],[]]},{"id":"23ac9937.3bdd86","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload === false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":700,"y":1430,"wires":[["5149696c.90c8"]]},{"id":"eb0aed25.73403","type":"link out","z":"aa48e352.9ad2f8","name":"","links":["14cd8aa1.52e2b5"],"x":665,"y":1350,"wires":[]},{"id":"37c38967.b379be","type":"debug","z":"aa48e352.9ad2f8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":520,"y":1460,"wires":[]},{"id":"767a874c.b4c7d8","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload === false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":700,"y":1470,"wires":[["ed5bd15a.3499f"]]},{"id":"dc24fa1.dfb3788","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload === false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":700,"y":1510,"wires":[["903b7b61.3ca84"]]},{"id":"a74f3aa7.3c96","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload === false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":700,"y":1550,"wires":[["d25bdb3a.99951"]]},{"id":"df809b4b.bd2f3","type":"change","z":"aa48e352.9ad2f8","name":"set","rules":[{"t":"set","p":"state","pt":"msg","to":"payload","tot":"msg"},{"t":"move","p":"parts.key","pt":"msg","to":"topic","tot":"msg"},{"t":"delete","p":"delay","pt":"msg"},{"t":"delete","p":"_event","pt":"msg"},{"t":"delete","p":"parts","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":1570,"wires":[["3f918764.b079f","b5f80b31.f1e5d8"]]},{"id":"7d6b4836.5681d","type":"fan","z":"aa48e352.9ad2f8","x":700,"y":1630,"wires":[["4a84ed89.e70fc4","a88f905f.6f95b"]]},{"id":"dcd35d04.1586e8","type":"fan","z":"aa48e352.9ad2f8","x":700,"y":1750,"wires":[["2217f23e.87521e","5d7faaf4.83590c"]]},{"id":"c04db9e3.232918","type":"fan","z":"aa48e352.9ad2f8","x":700,"y":1870,"wires":[["518bc33e.880e8c","57491809.1d9688"]]},{"id":"d04963bf.37dc98","type":"fan","z":"aa48e352.9ad2f8","x":700,"y":1990,"wires":[["e95243d.cdf544","41c38dfa.141354"]]},{"id":"5149696c.90c8","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":1,"width":0,"height":0,"name":"Under voltage","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":870,"y":1430,"wires":[]},{"id":"17fb240e.1f7f64","type":"inject","z":"aa48e352.9ad2f8","name":"Test","topic":"Testing","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":520,"y":1350,"wires":[["eb0aed25.73403","23ac9937.3bdd86","a88f905f.6f95b"]]},{"id":"ed5bd15a.3499f","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":2,"width":0,"height":0,"name":"Frequency capped","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":880,"y":1470,"wires":[]},{"id":"903b7b61.3ca84","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":3,"width":0,"height":0,"name":"Throttled","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":850,"y":1510,"wires":[]},{"id":"d25bdb3a.99951","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":4,"width":0,"height":0,"name":"Soft Temp Limit","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":870,"y":1550,"wires":[]},{"id":"f5c7e401.2a3a08","type":"split","z":"aa48e352.9ad2f8","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":350,"y":1530,"wires":[["df809b4b.bd2f3"]]},{"id":"b5f80b31.f1e5d8","type":"debug","z":"aa48e352.9ad2f8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":490,"y":1660,"wires":[]},{"id":"4a84ed89.e70fc4","type":"function","z":"aa48e352.9ad2f8","name":"One only.","func":"if (msg.topic == \"GATE\")\n{\n context.set(\"ALLOW\",1);\n node.status({fill: \"green\",text:\"ONE\"});\n return;\n}\nif (context.get(\"ALLOW\") == 1)\n{\n //\n context.set(\"ALLOW\",0);\n node.status({});\n return msg;\n}","outputs":1,"noerr":0,"x":860,"y":1670,"wires":[["7bc34e05.eb314"]]},{"id":"a88f905f.6f95b","type":"switch","z":"aa48e352.9ad2f8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":850,"y":1630,"wires":[["7bc34e05.eb314"]]},{"id":"2217f23e.87521e","type":"function","z":"aa48e352.9ad2f8","name":"One only.","func":"if (msg.topic == \"GATE\")\n{\n context.set(\"ALLOW\",1);\n node.status({fill: \"green\",text:\"ONE\"});\n return;\n}\nif (context.get(\"ALLOW\") == 1)\n{\n //\n context.set(\"ALLOW\",0);\n node.status({});\n return msg;\n}","outputs":1,"noerr":0,"x":860,"y":1790,"wires":[["60fa61ee.c6e828"]]},{"id":"5d7faaf4.83590c","type":"switch","z":"aa48e352.9ad2f8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":850,"y":1750,"wires":[["60fa61ee.c6e828"]]},{"id":"518bc33e.880e8c","type":"function","z":"aa48e352.9ad2f8","name":"One only.","func":"if (msg.topic == \"GATE\")\n{\n context.set(\"ALLOW\",1);\n node.status({fill: \"green\",text:\"ONE\"});\n return;\n}\nif (context.get(\"ALLOW\") == 1)\n{\n //\n context.set(\"ALLOW\",0);\n node.status({});\n return msg;\n}","outputs":1,"noerr":0,"x":860,"y":1910,"wires":[["4da13161.7dad8"]]},{"id":"57491809.1d9688","type":"switch","z":"aa48e352.9ad2f8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":850,"y":1870,"wires":[["4da13161.7dad8"]]},{"id":"e95243d.cdf544","type":"function","z":"aa48e352.9ad2f8","name":"One only.","func":"if (msg.topic == \"GATE\")\n{\n context.set(\"ALLOW\",1);\n node.status({fill: \"green\",text:\"ONE\"});\n return;\n}\nif (context.get(\"ALLOW\") == 1)\n{\n //\n context.set(\"ALLOW\",0);\n node.status({});\n return msg;\n}","outputs":1,"noerr":0,"x":860,"y":2030,"wires":[["54905501.00645c"]]},{"id":"41c38dfa.141354","type":"switch","z":"aa48e352.9ad2f8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":850,"y":1990,"wires":[["54905501.00645c"]]},{"id":"87488c6f.7c29b8","type":"link in","z":"aa48e352.9ad2f8","name":"","links":["33d21cd6.fd5f24"],"x":255,"y":1530,"wires":[["d674b951.e35488","f5c7e401.2a3a08"]]},{"id":"7bc34e05.eb314","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload == false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":1710,"wires":[["f429c430.9e74c8"]]},{"id":"12411f23.b76b29","type":"change","z":"aa48e352.9ad2f8","name":"set","rules":[{"t":"set","p":"payload","pt":"msg","to":"ALLOW","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"GATE","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1670,"wires":[["4a84ed89.e70fc4"]]},{"id":"fd244975.6c072","type":"change","z":"aa48e352.9ad2f8","name":"set","rules":[{"t":"set","p":"payload","pt":"msg","to":"ALLOW","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"GATE","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1790,"wires":[["2217f23e.87521e"]]},{"id":"60fa61ee.c6e828","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload == false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":1830,"wires":[["d722ce53.9ddf"]]},{"id":"a2996140.40b8b8","type":"change","z":"aa48e352.9ad2f8","name":"set","rules":[{"t":"set","p":"payload","pt":"msg","to":"ALLOW","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"GATE","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1910,"wires":[["518bc33e.880e8c"]]},{"id":"4da13161.7dad8","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload == false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":1950,"wires":[["581efcdc.8a4c5c"]]},{"id":"541088bb.3be5b8","type":"change","z":"aa48e352.9ad2f8","name":"set","rules":[{"t":"set","p":"payload","pt":"msg","to":"ALLOW","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"GATE","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":2030,"wires":[["e95243d.cdf544"]]},{"id":"54905501.00645c","type":"function","z":"aa48e352.9ad2f8","name":"","func":"//node.warn(msg.topic);\nif (msg.payload == false)\n{\n //\n msg = {payload: '<font color=\\\"lime\\\" ><i class=\"fa fa-thumbs-o-up fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"green\",shape:\"dot\",text:\"Good\"});\n //\n} else\n{\n //\n msg = {payload: '<font color =\\\"red\\\"><i class=\"fa fa-thumbs-o-down fa-2x\" style=\"font-size:8px;\"></i></font>',topic: msg.topic};\n node.status({fill:\"red\",shape:\"dot\",text:\"Bad\"});\n //\n}\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":2070,"wires":[["852dc302.35c65"]]},{"id":"d674b951.e35488","type":"debug","z":"aa48e352.9ad2f8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":350,"y":1490,"wires":[]},{"id":"f429c430.9e74c8","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":7,"width":0,"height":0,"name":"Under Voltage Flag","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":1050,"y":1710,"wires":[]},{"id":"25863144.93a08e","type":"link in","z":"aa48e352.9ad2f8","name":"","links":["a2497e8.7aaa88"],"x":515,"y":1830,"wires":[["3a7cacd6.e2e6ac","7bc34e05.eb314","12411f23.b76b29","60fa61ee.c6e828","fd244975.6c072","4da13161.7dad8","a2996140.40b8b8","54905501.00645c","541088bb.3be5b8"]]},{"id":"d722ce53.9ddf","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":8,"width":0,"height":0,"name":"Frequency Cap Flag","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":1060,"y":1830,"wires":[]},{"id":"581efcdc.8a4c5c","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":9,"width":0,"height":0,"name":"Throttled Flag","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":1040,"y":1950,"wires":[]},{"id":"852dc302.35c65","type":"ui_text","z":"aa48e352.9ad2f8","group":"e53f59db.f595f","order":10,"width":0,"height":0,"name":"Soft Temp Flag","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","x":1040,"y":2070,"wires":[]},{"id":"3a7cacd6.e2e6ac","type":"debug","z":"aa48e352.9ad2f8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":700,"y":2120,"wires":[]},{"id":"e53f59db.f595f","type":"ui_group","z":"","name":"Status","tab":"50f4e688.7d4b7","order":2,"disp":true,"width":"5","collapse":false},{"id":"50f4e688.7d4b7","type":"ui_tab","z":"","name":"Machine health","icon":"fa-heartbeat","order":4,"disabled":false,"hidden":false}]