Hello
I try to set up the max value for my gauge and another timestamp gives me payload for the current value. but the max value allways overwrite it. How to stop this?
[{"id":"a1a2d60b.87d168","type":"function","z":"c1b1a21f.c1f7e","name":"","func":"var newSectors = [{t:\"min\",val:0},{t:\"max\",val:msg.payload}]\nmsg.control = {icon:\"iconify-carbon:flash\",center:4, decimals:1, sectors: newSectors}\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":580,"y":1880,"wires":[["e4c46882.f41298"]]},{"id":"e4c46882.f41298","type":"ui_artlessgauge","z":"c1b1a21f.c1f7e","group":"364119bf.ea20c6","order":4,"width":3,"height":3,"name":"Strom","icon":"iconify-carbon:flash","label":"Strom","unit":"A","layout":"radial","decimals":"1","differential":false,"minmax":true,"colorTrack":"#555555","style":"","colorFromTheme":true,"property":"strom","secondary":"secondary","inline":false,"animate":true,"sectors":[{"val":0,"col":"#288bd7","t":"min","dot":0},{"val":20,"col":"#288bd7","t":"max","dot":0}],"lineWidth":3,"bgcolorFromTheme":false,"diffCenter":"","x":890,"y":1820,"wires":[]},{"id":"16cf7b65.6a2225","type":"inject","z":"c1b1a21f.c1f7e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"5","payloadType":"num","x":150,"y":1820,"wires":[["404b394f.981a98"]]},{"id":"55292f4e.ef622","type":"inject","z":"c1b1a21f.c1f7e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"12","payloadType":"num","x":150,"y":1880,"wires":[["a1a2d60b.87d168"]]},{"id":"404b394f.981a98","type":"change","z":"c1b1a21f.c1f7e","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"strom","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":1820,"wires":[["e4c46882.f41298"]]},{"id":"364119bf.ea20c6","type":"ui_group","name":"Ladepunkt 2","tab":"dabba02e.b632a","order":1,"disp":true,"width":"6","collapse":false},{"id":"dabba02e.b632a","type":"ui_tab","name":"Ladepunkt 2","icon":"dashboard","order":7,"disabled":false,"hidden":true}]