Trouble with Led on Dashboard

I have 3 Raspberry Pi that I am using and on two of them I am running Version 1.1.3 and on the other I am running version 1.0.6
The two running 1.1.3 i cannot deploy my Led or at least I cannot see my Led on the Dashboard when I create them.
I am doing exactly the same in 1.0.6 and it is not a problem they get deployed where they should be.
Is this a bug in 1.1.3 or is there a fix or am I doing something wrong.

I do not have problems in 1.0.6 but this latest version I cannot see them and they do not show up or light up on the Dashboard.

Welcome to the forum.

You haven't provided enough information to enable us to answer. We don't know, for example, how you are showing the LED on the dashboard. Have you installed a non-core node to display the LED?

Did you install node-red using the recommended install/upgrade script from the node red docs?

Create a very small flow consisting of just a few nodes exhibiting the problem. A couple of inject nodes and the led node would be ideal. Then Export just those nodes and paste it here. Use the </> button at the top of the text window when pasting it.

[["91823d6d.af40f","d1b2d75f.9ac4b8"]]},{"id":"91823d6d.af40f","type":"rpi-gpio out","z":"74b26c4d.138764","name":"Passerelle Raise","pin":"35","set":false,"level":"0","freq":"","out":"out","x":1010,"y":920,"wires":[]},{"id":"d4ce5928.323798","type":"ui_switch","z":"74b26c4d.138764","name":"Passerelle Lower","label":"Passarelle Lower","tooltip":"","group":"b22814f.205fde8","order":10,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"Passerelle Lower","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":250,"y":1080,"wires":[["a9175038.3b4c5","7d0e0ce.e821ff4"]]},{"id":"a9175038.3b4c5","type":"rpi-gpio out","z":"74b26c4d.138764","name":"Passerelle Lower","pin":"36","set":false,"level":"0","freq":"","out":"out","x":1020,"y":1080,"wires":[]},{"id":"76dbd0ac.ce851","type":"ui_switch","z":"74b26c4d.138764","name":"Passerelle Lights On / Off","label":"Passerelle Lights Off / On","tooltip":"","group":"b22814f.205fde8","order":11,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"Passerelle Lights On / Off","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":270,"y":420,"wires":[["fd565e2d.86b49"]]},{"id":"ba0b8ccb.d4bbc","type":"rpi-gpio out","z":"74b26c4d.138764","name":"Passerelle Lights On / Off","pin":"33","set":false,"level":"0","freq":"","out":"out","x":1030,"y":420,"wires":[]},{"id":"d4235032.12b0d","type":"countdown","z":"74b26c4d.138764","name":"5 minute Coundown timer","topic":"Coundown timer","payloadTimerStart":"0","payloadTimerStartType":"num","payloadTimerStop":"1","payloadTimerStopType":"num","timer":"300","resetWhileRunning":false,"setTimeToNewWhileRunning":true,"startCountdownOnControlMessage":false,"x":570,"y":220,"wires":[["5abcce6f.f3a59","e80f2a55.f4c7f8"],["3fb77ea3.ff7372"]]},{"id":"3fb77ea3.ff7372","type":"ui_gauge","z":"74b26c4d.138764","name":"","group":"b22814f.205fde8","order":13,"width":0,"height":0,"gtype":"gage","title":"Hydraulic Pump Timer","label":"units","format":"{{value}}","min":0,"max":"300","colors":["#b51600","#e6e600","#73ca38"],"seg1":"50","seg2":"150","x":1020,"y":260,"wires":[]},{"id":"fd565e2d.86b49","type":"countdown","z":"74b26c4d.138764","name":"8 minute Coundown timer","topic":"Coundown timer","payloadTimerStart":"1","payloadTimerStartType":"num","payloadTimerStop":"0","payloadTimerStopType":"num","timer":"360","resetWhileRunning":false,"setTimeToNewWhileRunning":true,"startCountdownOnControlMessage":false,"x":610,"y":480,"wires":[["ba0b8ccb.d4bbc","6cfd0ef3.dbe32"],[]]},{"id":"e80f2a55.f4c7f8","type":"ui_led","z":"74b26c4d.138764","group":"b22814f.205fde8","order":2,"width":"1","height":"1","label":"","labelPlacement":"right","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"num"},{"color":"red","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":970,"y":220,"wires":[]},{"id":"6cfd0ef3.dbe32","type":"ui_led","z":"74b26c4d.138764","group":"b22814f.205fde8","order":12,"width":"1","height":"1","label":"","labelPlacement":"right","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"num"},{"color":"red","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"name":"Led","x":970,"y":480,"wires":[]},{"id":"5e172db6.6c7fb4","type":"ui_led","z":"74b26c4d.138764","group":"b22814f.205fde8","order":3,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"blue","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":640,"y":660,"wires":[]},{"id":"ce912df9.279e8","type":"ui_led","z":"74b26c4d.138764","group":"b22814f.205fde8","order":5,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"yellow","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":630,"y":820,"wires":[]},{"id":"b095fe40.76d6f","type":"ui_switch","z":"74b26c4d.138764","name":"Passerelle Extend","label":"Passerelle Extend ","tooltip":"","group":"b22814f.205fde8","order":4,"width":"5","height":"1","passthru":false,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":270,"y":600,"wires":[["7839e55a.40914c","5e172db6.6c7fb4"]]},{"id":"d1b2d75f.9ac4b8","type":"ui_led","z":"74b26c4d.138764","group":"b22814f.205fde8","order":7,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"purple","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":654,"y":968,"wires":[]},{"id":"7d0e0ce.e821ff4","type":"ui_led","z":"74b26c4d.138764","group":"b22814f.205fde8","order":9,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"green","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":650,"y":1120,"wires":[]},{"id":"b22814f.205fde8","type":"ui_group","z":"","name":"Passerelle Controls","tab":"e342ed39.c13cf","order":1,"disp":true,"width":"6","collapse":false},{"id":"e342ed39.c13cf","type":"ui_tab","z":"","name":"Isola Passerelle","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

That is Version 1.1.3

[{"id":"6ddbacb1.ed7ca4","type":"tab","label":"Passarelle Control","disabled":false,"info":""},{"id":"a99d9660.b2e148","type":"ui_switch","z":"6ddbacb1.ed7ca4","name":"Hydraulic pump on ","label":"Hydraulic Pump On","tooltip":"","group":"9ccc239a.c23a3","order":1,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"Hydraulic Pump On ","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":250,"y":160,"wires":[["656ea8e6.befc38"]]},{"id":"2beacd9b.14e732","type":"rpi-gpio out","z":"6ddbacb1.ed7ca4","name":"Start Hydraulic Pump","pin":"40","set":false,"level":"1","freq":"","out":"out","x":1000,"y":160,"wires":[]},{"id":"ef1ce55b.1cbf98","type":"rpi-gpio out","z":"6ddbacb1.ed7ca4","name":"Passerelle Extend ","pin":"38","set":false,"level":"0","freq":"","out":"out","x":1000,"y":600,"wires":[]},{"id":"91aa6e2f.f8b4e","type":"ui_switch","z":"6ddbacb1.ed7ca4","name":"Passerelle Retract","label":"Passarelle Retract","tooltip":"","group":"9ccc239a.c23a3","order":6,"width":"5","height":"1","passthru":false,"decouple":"false","topic":"Passerelle Retract","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":250,"y":780,"wires":[["180f3ace.5b0e45","dfe548ba.0c3628"]]},{"id":"180f3ace.5b0e45","type":"rpi-gpio out","z":"6ddbacb1.ed7ca4","name":"Passerelle Retract","pin":"37","set":false,"level":"1","freq":"","out":"out","x":1020,"y":780,"wires":[]},{"id":"440f5b9c.1087f4","type":"ui_switch","z":"6ddbacb1.ed7ca4","name":"Passerelle Raise","label":"Passarelle Raise","tooltip":"","group":"9ccc239a.c23a3","order":8,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"Passerelle Raise","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":250,"y":920,"wires":[["13b930a0.5f467f","878b284.b8653d8"]]},{"id":"13b930a0.5f467f","type":"rpi-gpio out","z":"6ddbacb1.ed7ca4","name":"Passerelle Raise","pin":"35","set":false,"level":"0","freq":"","out":"out","x":1010,"y":920,"wires":[]},{"id":"7417e447.cf314c","type":"ui_switch","z":"6ddbacb1.ed7ca4","name":"Passerelle Lower","label":"Passarelle Lower","tooltip":"","group":"9ccc239a.c23a3","order":10,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"Passerelle Lower","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":250,"y":1080,"wires":[["406cc450.43d9ec","10e7b3bf.5101cc"]]},{"id":"406cc450.43d9ec","type":"rpi-gpio out","z":"6ddbacb1.ed7ca4","name":"Passerelle Lower","pin":"36","set":false,"level":"0","freq":"","out":"out","x":1020,"y":1080,"wires":[]},{"id":"1a19e9b.ecab716","type":"ui_switch","z":"6ddbacb1.ed7ca4","name":"Passerelle Lights On / Off","label":"Passerelle Lights Off / On","tooltip":"","group":"9ccc239a.c23a3","order":11,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"Passerelle Lights On / Off","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":270,"y":420,"wires":[["6b21e8d8.0f5fd8"]]},{"id":"3cb34eb4.3fdd82","type":"rpi-gpio out","z":"6ddbacb1.ed7ca4","name":"Passerelle Lights On / Off","pin":"33","set":false,"level":"0","freq":"","out":"out","x":1030,"y":420,"wires":[]},{"id":"656ea8e6.befc38","type":"countdown","z":"6ddbacb1.ed7ca4","name":"5 minute Coundown timer","topic":"Coundown timer","payloadTimerStart":"0","payloadTimerStartType":"num","payloadTimerStop":"1","payloadTimerStopType":"num","timer":"300","resetWhileRunning":false,"setTimeToNewWhileRunning":true,"startCountdownOnControlMessage":false,"x":570,"y":220,"wires":[["2beacd9b.14e732","b79b3599.7adc58"],["1fd7900f.09722"]]},{"id":"1fd7900f.09722","type":"ui_gauge","z":"6ddbacb1.ed7ca4","name":"","group":"9ccc239a.c23a3","order":13,"width":0,"height":0,"gtype":"gage","title":"Hydraulic Pump Timer","label":"units","format":"{{value}}","min":0,"max":"300","colors":["#b51600","#e6e600","#73ca38"],"seg1":"50","seg2":"150","x":1020,"y":260,"wires":[]},{"id":"6b21e8d8.0f5fd8","type":"countdown","z":"6ddbacb1.ed7ca4","name":"8 minute Coundown timer","topic":"Coundown timer","payloadTimerStart":"1","payloadTimerStartType":"num","payloadTimerStop":"0","payloadTimerStopType":"num","timer":"360","resetWhileRunning":false,"setTimeToNewWhileRunning":true,"startCountdownOnControlMessage":false,"x":610,"y":480,"wires":[["3cb34eb4.3fdd82","1f658684.3424d9"],[]]},{"id":"b79b3599.7adc58","type":"ui_led","z":"6ddbacb1.ed7ca4","group":"9ccc239a.c23a3","order":2,"width":"1","height":"1","label":"","labelPlacement":"right","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"num"},{"color":"red","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":970,"y":220,"wires":[]},{"id":"1f658684.3424d9","type":"ui_led","z":"6ddbacb1.ed7ca4","group":"9ccc239a.c23a3","order":12,"width":"1","height":"1","label":"","labelPlacement":"right","labelAlignment":"right","colorForValue":[{"color":"green","value":"0","valueType":"num"},{"color":"red","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"name":"Led","x":970,"y":480,"wires":[]},{"id":"4c9c2e03.87e5b","type":"ui_led","z":"6ddbacb1.ed7ca4","group":"9ccc239a.c23a3","order":3,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"blue","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":640,"y":660,"wires":[]},{"id":"dfe548ba.0c3628","type":"ui_led","z":"6ddbacb1.ed7ca4","group":"9ccc239a.c23a3","order":5,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"yellow","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":630,"y":820,"wires":[]},{"id":"7dba62b5.f637dc","type":"ui_switch","z":"6ddbacb1.ed7ca4","name":"Passerelle Extend","label":"Passerelle Extend ","tooltip":"","group":"9ccc239a.c23a3","order":4,"width":"5","height":"1","passthru":false,"decouple":"false","topic":"","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":270,"y":600,"wires":[["ef1ce55b.1cbf98","4c9c2e03.87e5b"]]},{"id":"878b284.b8653d8","type":"ui_led","z":"6ddbacb1.ed7ca4","group":"9ccc239a.c23a3","order":7,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"purple","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":654,"y":968,"wires":[]},{"id":"10e7b3bf.5101cc","type":"ui_led","z":"6ddbacb1.ed7ca4","group":"9ccc239a.c23a3","order":9,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"green","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":650,"y":1120,"wires":[]},{"id":"9ccc239a.c23a3","type":"ui_group","z":"","name":"Passerelle Controls","tab":"91421e9e.70feb","order":1,"disp":true,"width":"6","collapse":false},{"id":"91421e9e.70feb","type":"ui_tab","z":"","name":"Isola Passerelle","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

That is exactly the same program in Version 1.0.6

Hello Colin
I am using the same ui Led it is the Node red Contrib UI Led version 0.3.3 using in same version of Node Red.
Yes I installed the upgrade version from the Node Red upgrade here.
When I import a flow from version 1.0.6 that has the Led working and showing fine into the new version 1.1.3 they are not there anymore

My simple flows are above they are exactly the same flow one copied and installed in version 1.0.6 and the Led work then I exported the flow to Version 1.1.3 and the Led are no longer there and cannot be seen

I hope that this helps I am new to here and if I have made a mistake I appreciate any help

Regards Alan

I don't think you used the </> button (which is one of the icons at the top of the text entry window in the forum). I will edit your flow post for you to fix it.

It seems that some of the first one is missing. But anyway, we don't want a massive flow. Please construct a simple flow showing the problem, possibly just a couple of inject nodes and the led node.

Here is Version 1.0.6

<[{"id":"2dc0708.74d029","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"3c958b4a.5c1ed4","type":"rpi-gpio in","z":"2dc0708.74d029","name":"Grey water tank High","pin":"22","intype":"down","debounce":"25","read":true,"x":260,"y":260,"wires":[["8868c2cd.df87a"]]},{"id":"d24ec6e8.eabad8","type":"inject","z":"2dc0708.74d029","name":"Inject","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":160,"wires":[["8868c2cd.df87a"]]},{"id":"8868c2cd.df87a","type":"switch","z":"2dc0708.74d029","name":"Context based routing","property":"state","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":500,"y":260,"wires":[["8ae168d8.45f288"],["3825d9fa.b7c566"],["1452489d.d470c7"]]},{"id":"1452489d.d470c7","type":"debug","z":"2dc0708.74d029","name":"Output 3","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":700,"y":300,"wires":},{"id":"d0800699.a50598","type":"change","z":"2dc0708.74d029","name":"Set flow.state","rules":[{"t":"set","p":"state","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":445,"wires":[]},{"id":"3825d9fa.b7c566","type":"template","z":"2dc0708.74d029","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"The Grey water tank is high level needs to be pumped out: {{payload}} !","output":"str","x":860,"y":260,"wires":[]},{"id":"d92ca863.38da08","type":"ui_switch","z":"2dc0708.74d029","name":"","label":"Red Alarm Off Green On","tooltip":"","group":"69e36399.a247cc","order":1,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"2","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":250,"y":440,"wires":[["d0800699.a50598","276832ea.244efe"]]},{"id":"8ae168d8.45f288","type":"debug","z":"2dc0708.74d029","name":"Output 1","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":700,"y":220,"wires":},{"id":"276832ea.244efe","type":"ui_led","z":"2dc0708.74d029","group":"69e36399.a247cc","order":2,"width":"1","height":"1","label":"","labelPlacement":"right","labelAlignment":"right","colorForValue":[{"color":"red","value":"0","valueType":"num"},{"color":"green","value":"2","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":510,"y":500,"wires":},{"id":"69e36399.a247cc","type":"ui_group","z":"","name":"Switch to Turn Alarms Off or On","tab":"36c9bfdc.e475e","order":1,"disp":true,"width":"6","collapse":false},{"id":"36c9bfdc.e475e","type":"ui_tab","z":"","name":"Turning Alarms Off and On","icon":"dashboard","order":3,"disabled":false,"hidden":false}]>

That one the Led work great and not problem

The same program or nearly exactly the same the wording maybe slightly different but the have the same switch and Led.

This is version 1.1.3

<[{"id":"4031cdf4.4575f4","type":"ui_switch","z":"e95a8d91.5db02","name":"","label":"Red Off Green On","tooltip":"","group":"dbfd0366.95b9","order":1,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"2","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":290,"y":480,"wires":[["ea539eb1.89f36","53a0dc48.cfbce4"]]},{"id":"dbfd0366.95b9","type":"ui_group","z":"","name":"Switch turn Intruder Alarms Off / On","tab":"21f85675.0e591a","order":1,"disp":true,"width":"6","collapse":false},{"id":"21f85675.0e591a","type":"ui_tab","z":"","name":"Intruder Alert ","icon":"dashboard","disabled":false,"hidden":false}]>

sorry I made a Mistake here is exactly the same flow in Version 1.0.6 where the LED works

[{"id":"4feb4c3c.97d284","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"678413f.8f58aec","type":"rpi-gpio in","z":"4feb4c3c.97d284","name":"Stbd Aft Intruder","pin":"7","intype":"down","debounce":"25","read":false,"x":200,"y":320,"wires":[["f121c2f3.ea5ea"]]},{"id":"8eb407ba.9dfde8","type":"inject","z":"4feb4c3c.97d284","name":"Inject","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":220,"wires":[["f121c2f3.ea5ea"]]},{"id":"f121c2f3.ea5ea","type":"switch","z":"4feb4c3c.97d284","name":"Context based routing","property":"state","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":490,"y":320,"wires":[["82f075fb.482e08"],["fe07ec3c.b6572"],["3a4accc6.218984"]]},{"id":"82f075fb.482e08","type":"debug","z":"4feb4c3c.97d284","name":"Output 1","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":690,"y":260,"wires":[]},{"id":"da177f53.b3cba","type":"debug","z":"4feb4c3c.97d284","name":"Output 2","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":980,"y":320,"wires":[]},{"id":"3a4accc6.218984","type":"debug","z":"4feb4c3c.97d284","name":"Output 3","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":690,"y":380,"wires":[]},{"id":"fe07ec3c.b6572","type":"template","z":"4feb4c3c.97d284","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Stbd side aft Intruder alarm has been set off: {{payload}} !","output":"str","x":770,"y":320,"wires":[["da177f53.b3cba"]]},{"id":"bf8cc2f7.c3736","type":"change","z":"4feb4c3c.97d284","name":"Set flow.state","rules":[{"t":"set","p":"state","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":480,"wires":[[]]},{"id":"9a9bf1b6.87633","type":"ui_led","z":"4feb4c3c.97d284","group":"cce8d266.a7459","order":2,"width":"1","height":"1","label":"","labelPlacement":"right","labelAlignment":"center","colorForValue":[{"color":"red","value":"0","valueType":"num"},{"color":"green","value":"2","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":510,"y":520,"wires":[]},{"id":"9abe9b7f.b8b688","type":"ui_switch","z":"4feb4c3c.97d284","name":"","label":"Red Off Green On","tooltip":"","group":"cce8d266.a7459","order":1,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"2","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":290,"y":480,"wires":[["bf8cc2f7.c3736","9a9bf1b6.87633"]]},{"id":"cce8d266.a7459","type":"ui_group","z":"","name":"Switch turn Intruder Alarms Off / On","tab":"55da37ae.5df648","order":1,"disp":true,"width":"6","collapse":false},{"id":"55da37ae.5df648","type":"ui_tab","z":"","name":"Intruder Alert ","icon":"dashboard","disabled":false,"hidden":false}]

Here is exactly the same flow in Version 1.1.3 where the Led do not work.

[{"id":"e95a8d91.5db02","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"28a64c65.2167c4","type":"rpi-gpio in","z":"e95a8d91.5db02","name":"Stbd Aft Intruder","pin":"7","intype":"down","debounce":"25","read":false,"x":200,"y":320,"wires":[["9fc5120b.e4d99"]]},{"id":"b2a15c13.1fca1","type":"inject","z":"e95a8d91.5db02","name":"Inject","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":210,"y":220,"wires":[["9fc5120b.e4d99"]]},{"id":"9fc5120b.e4d99","type":"switch","z":"e95a8d91.5db02","name":"Context based routing","property":"state","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":490,"y":320,"wires":[["ac85e304.16f13"],["9de2d7fa.404548"],["2f0b339b.e1b72c"]]},{"id":"ac85e304.16f13","type":"debug","z":"e95a8d91.5db02","name":"Output 1","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":690,"y":260,"wires":[]},{"id":"4e06c0fb.3e4a3","type":"debug","z":"e95a8d91.5db02","name":"Output 2","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":980,"y":320,"wires":[]},{"id":"2f0b339b.e1b72c","type":"debug","z":"e95a8d91.5db02","name":"Output 3","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":690,"y":380,"wires":[]},{"id":"9de2d7fa.404548","type":"template","z":"e95a8d91.5db02","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Stbd side aft Intruder alarm has been set off: {{payload}} !","output":"str","x":770,"y":320,"wires":[["4e06c0fb.3e4a3"]]},{"id":"ea539eb1.89f36","type":"change","z":"e95a8d91.5db02","name":"Set flow.state","rules":[{"t":"set","p":"state","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":480,"wires":[[]]},{"id":"53a0dc48.cfbce4","type":"ui_led","z":"e95a8d91.5db02","group":"dbfd0366.95b9","order":2,"width":"1","height":"1","label":"","labelPlacement":"right","labelAlignment":"center","colorForValue":[{"color":"red","value":"0","valueType":"num"},{"color":"green","value":"2","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":510,"y":520,"wires":[]},{"id":"4031cdf4.4575f4","type":"ui_switch","z":"e95a8d91.5db02","name":"","label":"Red Off Green On","tooltip":"","group":"dbfd0366.95b9","order":1,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"2","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":290,"y":480,"wires":[["ea539eb1.89f36","53a0dc48.cfbce4"]]},{"id":"dbfd0366.95b9","type":"ui_group","z":"","name":"Switch turn Intruder Alarms Off / On","tab":"21f85675.0e591a","order":1,"disp":true,"width":"6","collapse":false},{"id":"21f85675.0e591a","type":"ui_tab","z":"","name":"Intruder Alert ","icon":"dashboard","disabled":false,"hidden":false}]

Regards Alan

@ALPF5555 Please read this post on how to share flows/code.
Your flows in the posts above are currently unusable, please use the pencil icon below the post to edit and post your flows correctly.

[NOTE: I fixed the flows so they will import - you should edit the post to see how it is done]

Alan,
what version of OS are you running on the Pi running NR v1.0.6 and the one running 1.1.3?

I've imported both flows on my mac and they both work fine and I imported the 1.1.3 version on a pi running 1.1.3 and it works fine when I flip the switch.

Try this, import your 1.1.3 flow back into the same flow and see what happens.

Hello
I am running version 10 Buster on all three Raspberry Pi and I have tried to import the corrected version and I have exactly the same problem the switch works fine but the Led is not there.
I am going to uninstall Node Red and try and go back to version 1.0.6 as I know that works.
I can create a switch and put the Led there and have it show up on the dashboard.
I spent a good part of a days thinking it was my fault and I was doing something wrong but now I can see something is not correct with the version I have.

It would be better to persevere until the problem is isolated. That way the problem will either be isolated to a problem on your system or a bug in the code, in either case it will get fixed. If you go back to a previous version that is only a short term solution.

Can you post the startup log you get when you start node red please, that may give us a clue. Also check the Browser Developer Console for errors.

If you past the log here then use the same method you should have used when posting flows, which has been described several times.

Alan, I have to agree with Colin you should figure out what is going unless you intend to stay on 1.0.6 forever (and miss out on any new features).

The Pi I ran your flow on is also running Buster 10 so there has to be something else going on.

What else in your flows do you have? It is possible that if you have many tabs with other flows, something there is causing the problem. Is it possible that the complete flow on the Pi running 1.0.6 is different than this one running 1.1.3?

p.s. it is very easy to change releases of NR without changing the flow. To go from v1.0.6 to 1.1.3 in a terminal you would enter
npm install -g --unsafe-perm node-red@1.1.3
to go back to 1.0.6 you would use
npm install -g --unsafe-perm node-red@1.0.6
to go to the latest beta version you would use
npm install -g --unsafe-perm node-red@next

Hello Colin
I agree that is why I Installed Version 1.0.6 onto the Raspberry Pi what would not let me see the LED and it does not work still.
But on the other Raspberry Pi the Led work. They are both Raspberry Pi 4 with 4gb Ram and both boot from a 256 gb SSD.
I am now thinking of swapping over SSD from one Pi to the other. and see if the problem changes or if the problem stays with the Pi.
I am really sorry for all the mistakes I made yesterday I am new and was not really looking at the symbols at the top of the area on here where the </> symbol is.

I will see if the problem changes with the SSD drives or if it does not.

Regards Alan

@ALPF5555 interesting, I just installed your flow on a pi4 and the LED is NOT there - investigating!

Now that you have @zenofmud on the case I suspect the problem will soon be resolved :slight_smile:

Is it possible that you installed node-red-contrib-ui-led before installing node-red-dashbaord?

When I do, the LED does not appear and there are error messages inteh NR log:

4 Oct 06:02:52 - [info] Starting flows
While constructing LEDNode widget: Error: Cannot find module 'node-red-dashboard'
    at Object.requireModule [as require] (/usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/util.js:48:19)
    at new LEDNode (/home/pi/.node-red/node_modules/node-red-contrib-ui-led/led.js:13:26)
    at Object.createNode (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/util.js:483:31)
    at Flow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/Flow.js:189:48)
    at start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:329:33)
    at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:196:21
    at processTicksAndRejections (internal/process/task_queues.js:94:5) {
  code: 'MODULE_NOT_FOUND'
}
TypeError: Cannot read property 'padEnd' of undefined
    at Flow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/Flow.js:237:62)
    at start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:329:33)
    at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:196:21
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
4 Oct 06:02:52 - [info] Started flows

You need to remove the led node from the flow, uninstall it and reinstall it and it will work. I'll report this in a bit.

It gets even more Interesting I swapped over Boot drives from one Pi to another and now all the LED,s are working on all 3 Pi.
I am not 100% sure but I normally install the dashboard then install the Led contrib.
I have put the drives back in the original location and still all the LED,s are working on all 3 Pi.
I am at a Loss as to what has happened.

If I ever get to the bottom of this I will keep you posted. I do not know if I can upload my screen shots but I have taken all screen shots and saves the Flows on all 3 Pi so to prove to myself I am not going crazy.

As I said, I've reproduced this and there is a bug where you install the ui-led first then install the dashboard.

once you restart Node-RED things are resolved and the problem is gone, the led appears. So this is a weird edge case I'll report to the plugin author.

1 Like

Thank you very much for all your help I thought I was going crazy. I am just learning and trying to navigate my way through all the pit falls.

Once again thank you so much for all your help I will remember what you said.

Have a wonderful day regards Alan

if you want to follow the issue see: https://github.com/Adorkable/node-red-contrib-ui-led/issues/56

Nice find of an obscure bug!