Hi
I saw some other post about this topic but I don't know how apply to my case.
I'm trying to use msg. ui_control without success can someone help me with that?
The following flow is just to test how it would works whet it comes to change gauge color gradient.
[{"id":"1f5495f4.9a15da","type":"ui_gauge","z":"2c9e8824.fd75b8","name":"","group":"bfffd362.67af3","order":5,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{value|number:1}}","min":0,"max":"300","colors":["#c0c0c0","#c0c0c0","#c0c0c0"],"seg1":"","seg2":"","x":850,"y":60,"wires":[]},{"id":"e6c933ab.fe833","type":"inject","z":"2c9e8824.fd75b8","name":"","topic":"","payload":"140","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":390,"y":80,"wires":[["6064d8a3.3b07b8"]]},{"id":"6064d8a3.3b07b8","type":"function","z":"2c9e8824.fd75b8","name":"Change color","func":"var payload = msg.payload;\n\nif(payload>150) {\n msg.ui_gauge=[\"#ff4d4d\",\"#ff4d4d\",\"#ff4d4d\"];}\n\nelse{msg.ui_gauge=[\"#ffff66\",\"#ffff66\",\"#ffff66\"];\n \n}\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":160,"wires":[["1f5495f4.9a15da","e5b6f3c2.fb53b"]]},{"id":"e5d232c7.1962d","type":"inject","z":"2c9e8824.fd75b8","name":"","topic":"","payload":"200","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":160,"wires":[["6064d8a3.3b07b8"]]},{"id":"e5b6f3c2.fb53b","type":"debug","z":"2c9e8824.fd75b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":910,"y":160,"wires":[]},{"id":"bfffd362.67af3","type":"ui_group","z":"","name":"Pressures","tab":"e14475ad.995118","order":2,"disp":true,"width":"6","collapse":false},{"id":"e14475ad.995118","type":"ui_tab","z":"","name":"Settings","icon":"dashboard","order":3}]
Thank you in advance