Adorkable / node-red-contrib-ui-led

A simple LED status indicator for the Node-RED Dashboard
MIT License
16 stars 12 forks source link

Led does not stay toggle after modification of node #117

Open KnottyCord opened 1 year ago

KnottyCord commented 1 year ago

Describe the bug When you modified the ui_led. The led does not Toggle anymore. It's just blink's and turn off. I don't know if there's a way to toggle the led. But when I add a new one it works and does not turn of and stays the right colors.

To Reproduce Steps to reproduce the behavior:

  1. Add a ui_led
  2. Deploy the project
  3. Make a modification
  4. And redeploy

[{"id":"76b4db7e96ac8e37","type":"function","z":"6a21517c893f1583","name":"Check if message includes","func":"if (msg.payload.includes(\"MA OK 09\")) {\n msg.payload = \"MA OK 09\";\n} else if (msg.payload.includes(\"MA OK 08\")){\n msg.payload = \"MA OK 08\";\n}\nelse if (msg.payload.includes(\"AM STBY\")) {\n msg.payload = \"AM STBY\";\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":260,"wires":[["a9f2d39ef6337522"]]},{"id":"a9f2d39ef6337522","type":"change","z":"6a21517c893f1583","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":260,"wires":[["de97a364c348401c"]]},{"id":"de97a364c348401c","type":"ui_led","z":"6a21517c893f1583","order":1,"group":"9b2f1202cabbddaf","width":0,"height":0,"label":"Jenny","labelPlacement":"right","labelAlignment":"left","colorForValue":[{"color":"#00ff00","value":"MA OK 09","valueType":"str"},{"color":"#ff0000","value":"MA OK 08","valueType":"str"},{"color":"#ffff00","value":"AM STBY","valueType":"str"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"Jenny (A)","x":1000,"y":260,"wires":[]},{"id":"9b2f1202cabbddaf","type":"ui_group","name":"Maisons des Fées","tab":"48d05d927832262e","order":2,"disp":true,"width":"5","collapse":false,"className":""},{"id":"48d05d927832262e","type":"ui_tab","name":"Dashboard","icon":"dashboard","order":2,"disabled":false,"hidden":false}]