How can I make it change colour? check below flow.
[{"id":"3ae3ca82.d1f066","type":"inject","z":"ea354143.5448a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":120,"wires":[["a96a0969.541778"]]},{"id":"b93c7989.6c9328","type":"ui_template","z":"ea354143.5448a","group":"fdef6040.7c391","name":"test","order":1,"width":12,"height":3,"format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":550,"y":160,"wires":[[]]},{"id":"a96a0969.541778","type":"template","z":"ea354143.5448a","name":"","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<style>\n[node-id=\"b93c7989.6c9328\"] {\n background-color: green !important;\n}\n</style>\n\n<h3 style=\"color:white;\">\nMachine is in running mode\n</h3>\n","output":"str","x":360,"y":120,"wires":[["b93c7989.6c9328"]]},{"id":"8ed5355.6dc91c8","type":"inject","z":"ea354143.5448a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":160,"wires":[["2afffe47.7583a2"]]},{"id":"2afffe47.7583a2","type":"template","z":"ea354143.5448a","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"\n<style>\n[node-id=\"b93c7989.6c9328\"] {\n background-color: orange !important;\n}\n</style>\n\n<h3 style=\"color:white;\">\nMachine is in idle mode\n</h3>\n","output":"str","x":360,"y":160,"wires":[["b93c7989.6c9328"]]},{"id":"9e6c1d79.5ed6b","type":"inject","z":"ea354143.5448a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":200,"wires":[["949cce40.8a515"]]},{"id":"949cce40.8a515","type":"template","z":"ea354143.5448a","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<style>\n[node-id=\"b93c7989.6c9328\"] {\n background-color: red !important;\n}\n</style>\n\n<h3 style=\"color:white;\">\nMachine is in stop mode\n</h3>\n","output":"str","x":360,"y":200,"wires":[["b93c7989.6c9328"]]},{"id":"fdef6040.7c391","type":"ui_group","name":"Group 1","tab":"df9f5de4.f3ee3","order":1,"disp":false,"width":"12","collapse":false},{"id":"df9f5de4.f3ee3","type":"ui_tab","name":"Tab 1","icon":"dashboard","order":1}]