Contact LED Location Release

How do you put the LEDs here in front of the letters as shown in the picture below?

By putting the led and switch in the same group (in this example the group is 6 blocks wide) and making the size of the LED 1 block and the switch 5 blocks, each led/switch set will line up together. Here is an example that should get you on your way:

[{"id":"6684cbba.fe825c","type":"ui_led","z":"3e01b20a.59e586","group":"deffddd3.ec9b","order":1,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"green","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"name":"","x":480,"y":80,"wires":[]},{"id":"af223186.01d4d","type":"ui_switch","z":"3e01b20a.59e586","name":"","label":"switch led 1","tooltip":"","group":"deffddd3.ec9b","order":2,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":290,"y":80,"wires":[["6684cbba.fe825c"]]},{"id":"7e893f00.eb4948","type":"ui_led","z":"3e01b20a.59e586","group":"deffddd3.ec9b","order":3,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"green","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"name":"","x":470,"y":160,"wires":[]},{"id":"b2a04d65.e27b28","type":"ui_switch","z":"3e01b20a.59e586","name":"","label":"switch led 2","tooltip":"","group":"deffddd3.ec9b","order":4,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":290,"y":160,"wires":[["7e893f00.eb4948"]]},{"id":"deffddd3.ec9b","type":"ui_group","z":"","name":"Default","tab":"4c73885e.ebb1f8","order":1,"disp":true,"width":"6","collapse":false},{"id":"4c73885e.ebb1f8","type":"ui_tab","z":"","name":"LED example","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
1 Like

Wow!!

It's going well because I applied according to the article you answered.

Thank you very much.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.