Node to display fa-icon

Is there a node that only displays a fa-icon as a status e.g. an alarm is enabled or disabled but that is not clickable, so output-only? I have been searching the library but cannot find something.
I now use node-red-contrib-ui-led but I would like someting fancier. :grinning:

You could use a text node like this

[{"id":"6abb3691bc22305c","type":"ui_text","z":"11d893a59fb76b84","group":"3ce32370.c60f1c","order":5,"width":"2","height":"1","name":"","label":"","format":"{{msg.icon}}","layout":"col-center","className":"","x":730,"y":180,"wires":[]},{"id":"b9896e72eb60772f","type":"ui_button","z":"11d893a59fb76b84","name":"","group":"3ce32370.c60f1c","order":21,"width":"2","height":"1","passthru":false,"label":"Big Red","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":260,"y":180,"wires":[["cae1370e4e05fee9"]]},{"id":"cae1370e4e05fee9","type":"function","z":"11d893a59fb76b84","name":"","func":"msg.icon = '<font color = \"red\" i class=\"fa fa-bicycle fa-3x\"></i>';\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":180,"wires":[["6abb3691bc22305c"]]},{"id":"5dac6198d73ca148","type":"ui_button","z":"11d893a59fb76b84","name":"","group":"3ce32370.c60f1c","order":21,"width":"2","height":"1","passthru":false,"label":"Yellow","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":250,"y":220,"wires":[["c81b692a7d065231"]]},{"id":"c81b692a7d065231","type":"function","z":"11d893a59fb76b84","name":"","func":"msg.icon = '<font color = \"yellow\" i class=\"fa fa-university\"></i>';\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":220,"wires":[["6abb3691bc22305c"]]},{"id":"3ce32370.c60f1c","type":"ui_group","name":"Demo","tab":"d74bbed4.c2cfb","order":2,"disp":false,"width":"18","collapse":false,"className":""},{"id":"d74bbed4.c2cfb","type":"ui_tab","name":"Demo","icon":"dashboard","order":4,"disabled":false,"hidden":false}]
1 Like