Node-red lagging

I used to use node-red very easy and fast with the code, which can change the color and size of the button icon imediatly. But now I have to reload the ui webpage to upload new status of the button. Can you guy help me.[{"id":"455ffa9e.b8e254","type":"ui_button","z":"308ffad0.16b866","name":"light","group":"5e211b7a.2bd3e4","order":13,"width":"3","height":"3","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"gray","icon":"fa-lightbulb-o bigIcon","payload":"1","payloadType":"str","topic":"","x":730,"y":180,"wires":[["ed4ac092.6ee3b"]]},{"id":"5e211b7a.2bd3e4","type":"ui_group","name":"Default","tab":"79c634a1.b3d44c","order":1,"disp":true,"width":"6","collapse":false},{"id":"79c634a1.b3d44c","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

I just realized that the source code in node-red forum is not working too . Is there any change with node-red lasted update[{"id":"86dce912.04f0a8","type":"ui_button","z":"34b4a5e.a6f4b5a","name":"","group":"357d373a.2d1478","order":0,"width":"3","height":"3","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-male bigIcon","payload":"","payloadType":"str","topic":"","x":550,"y":380,"wires":[[]]},{"id":"cda848ce.b96c58","type":"ui_template","z":"34b4a5e.a6f4b5a","group":"357d373a.2d1478","name":"icon style","order":1,"width":0,"height":0,"format":"<style>\n .bigIcon{\n font-size:9em;\n transition: 1s;\n }\n .bigIcon.red{\n color:red;\n }\n \n</style>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"global","x":560,"y":320,"wires":[[]]},{"id":"34b25f13.91062","type":"inject","z":"34b4a5e.a6f4b5a","name":"inject","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":360,"wires":[["8365ec1f.f4eaf"]]},{"id":"bab885f9.56dcf8","type":"inject","z":"34b4a5e.a6f4b5a","name":"inject","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":400,"wires":[["e9b8f766.0ffc08"]]},{"id":"8365ec1f.f4eaf","type":"change","z":"34b4a5e.a6f4b5a","name":"","rules":[{"t":"set","p":"ui_control.icon","pt":"msg","to":"fa-male bigIcon","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":360,"wires":[["86dce912.04f0a8"]]},{"id":"e9b8f766.0ffc08","type":"change","z":"34b4a5e.a6f4b5a","name":"","rules":[{"t":"set","p":"ui_control.icon","pt":"msg","to":"fa-male bigIcon red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":400,"wires":[["86dce912.04f0a8"]]},{"id":"357d373a.2d1478","type":"ui_group","z":"","name":"Default","tab":"40d8b907.a41218","disp":true,"width":"6","collapse":false},{"id":"40d8b907.a41218","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

See this comment on a duplicate topic - Node-red button - #4 by dceejay

sorry I thought that I delete this topic already

What should I do to fix this problem ?

Update to the latest Dashboard version 2.27.0. The bug has been fixed there.

It is still not working even I update to version 2.27

You don't need to use ui_control to set the icon colour - just use any msg property - eg

[{"id":"86dce912.04f0a8","type":"ui_button","z":"cca8d493.5a61e8","name":"","group":"357d373a.2d1478","order":0,"width":"3","height":"3","passthru":false,"label":"","tooltip":"","color":"{{mycolor}}","bgcolor":"","icon":"fa-male bigIcon","payload":"","payloadType":"str","topic":"","x":530,"y":520,"wires":[[]]},{"id":"cda848ce.b96c58","type":"ui_template","z":"cca8d493.5a61e8","group":"","name":"icon style","order":1,"width":0,"height":0,"format":"<style>\n .bigIcon{\n font-size:9em;\n transition: 1s;\n }\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"global","x":540,"y":460,"wires":[[]]},{"id":"34b25f13.91062","type":"inject","z":"cca8d493.5a61e8","name":"inject","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":500,"wires":[["8365ec1f.f4eaf"]]},{"id":"bab885f9.56dcf8","type":"inject","z":"cca8d493.5a61e8","name":"inject","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":540,"wires":[["e9b8f766.0ffc08"]]},{"id":"8365ec1f.f4eaf","type":"change","z":"cca8d493.5a61e8","name":"","rules":[{"t":"set","p":"mycolor","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":500,"wires":[["86dce912.04f0a8"]]},{"id":"e9b8f766.0ffc08","type":"change","z":"cca8d493.5a61e8","name":"","rules":[{"t":"set","p":"mycolor","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":540,"wires":[["86dce912.04f0a8"]]},{"id":"357d373a.2d1478","type":"ui_group","name":"Default","tab":"40d8b907.a41218","order":1,"disp":true,"width":"6","collapse":false},{"id":"40d8b907.a41218","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

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