This simple code has been done for nodered , a LED style with text inside, input & output are classic boolean true or false. User can change the switchbox state by a click. change the style parameters inside the template Text, dimensions and colors can be adjusted as need.
flow
Usage : import the Json code from node-red "import" command. Example : the example show my implementation with 7 switchbox and input/output as integer value where each bit rappresent a day of the week, starting with bit 0 = status of Sunday.


