Dynamically change Gauge Units

Here is one way

example

[{"id":"a005a8da.bc11d8","type":"ui_gauge","z":"c74669a0.6a34f8","name":"","group":"8b5cde76.edd58","order":4,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"","format":"{{payload}}  {{unit}}","min":0,"max":"40","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":300,"y":4760,"wires":[]},{"id":"6e1dad61.9521f4","type":"inject","z":"c74669a0.6a34f8","name":"","props":[{"p":"payload"},{"p":"unit","v":"°C","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"24","payloadType":"num","x":120,"y":4800,"wires":[["a005a8da.bc11d8"]]},{"id":"8b5cde76.edd58","type":"ui_group","name":"","tab":"8f03e639.85956","order":1,"disp":true,"width":"12","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
1 Like