Debug before function:
Debug after function vith NaN (working correctly):
Debug ater function without NaN(reset gauge, becouse payload:NaN)
Simulation flow:
[{"id":"8536e33b.3185","type":"tab","label":"simulation","disabled":false,"info":""},{"id":"779d214.49cdbe","type":"function","z":"8536e33b.3185","name":"analyze","func":"\nvar sid=msg.payload.sid;\nvar tmp=msg.payload.data.temperature;\nif (sid===\"158a\")\n{\n\nmsg.temp1=tmp/100;\nreturn msg}","outputs":1,"noerr":0,"x":660,"y":320,"wires":[["bc95db1f.e96768","a188cd3.fb0c53"]]},{"id":"5ac59fad.5c771","type":"inject","z":"8536e33b.3185","name":"inject temperature value","topic":"","payload":"{\"sid\":\"158a\",\"data\":{\"temperature\":2544}}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":450,"y":280,"wires":[["779d214.49cdbe"]]},{"id":"395fb0ca.8e47c","type":"inject","z":"8536e33b.3185","name":"inject humidity value","topic":"","payload":"{\"sid\":\"158a\",\"data\":{\"humidity\":101850}}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":460,"y":360,"wires":[["779d214.49cdbe"]]},{"id":"a188cd3.fb0c53","type":"debug","z":"8536e33b.3185","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":950,"y":320,"wires":[]},{"id":"bc95db1f.e96768","type":"ui_gauge","z":"8536e33b.3185","name":"","group":"d314cc9d.55b41","order":6,"width":0,"height":0,"gtype":"gage","title":"test_temp","label":"units","format":"{{msg.temp1}}","min":0,"max":"40","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":970,"y":280,"wires":[]},{"id":"d314cc9d.55b41","type":"ui_group","z":"","name":"Default","tab":"e54ff8dd.4c97a8","disp":true,"width":"6","collapse":false},{"id":"e54ff8dd.4c97a8","type":"ui_tab","z":"","name":"simulation","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
Debug from simulation flow: