The thing is that in fact when the machine is stopped, they don´t send any update of their trougphut so no zero is being received. It´s upon restart, due to the stop the last cycle is giving a very low speed, before that it goes back to normal for the following cycles.
Here is an extract of the flow I use, it´s simplified but does the job of simulating one of my machines inputs.
[{"id":"bfb6be00.845aa","type":"ui_text","z":"e206e300.26be6","group":"b8ac51c2.e03f2","order":6,"width":0,"height":0,"name":"Last 10min Average Speed","label":"","format":"{{msg.payload}} uph","layout":"row-center","x":800,"y":740,"wires":[]},{"id":"84d2448f.656618","type":"function","z":"e206e300.26be6","name":"","func":"var machine_count = flow.get('machine_count')||0;\nvar machine_start = flow.get('machine_start')||0;\nvar dateNow = new Date().getTime();\n\nif (machine_count === 0)\n{\n //msg.payload = ((dateNow - machine_start)/1000)/8*3600;\n msg.payload = Math.round((3600/((dateNow - machine_start)/1000))*8);\n}\nelse\n{\n //msg.payload = ((dateNow - machine_count)/1000)/8*3600;\n msg.payload = Math.round((3600/((dateNow - machine_count)/1000))*8);\n}\nflow.set('machine_count',dateNow);\nmsg.max=4200;\nreturn msg;","outputs":1,"noerr":0,"x":270,"y":80,"wires":[["4dcbb6f3.1801e8","f46e8307.11776","542cf471.11028c","ff4cf222.268c3","58124c64.170914","9faf9903.bf1ad8","a6f4530b.042ee","ba0695e2.685958","b5961c8.0267be","30de6bbe.4bbff4"]]},{"id":"4dcbb6f3.1801e8","type":"ui_chart","z":"e206e300.26be6","name":"","group":"640e5b3e.410ae4","order":1,"width":0,"height":0,"label":"Last 1h Instant Troughput","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#ff7f0e","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":650,"y":180,"wires":[[],[]]},{"id":"ba0695e2.685958","type":"ui_chart","z":"e206e300.26be6","name":"","group":"b8ac51c2.e03f2","order":1,"width":0,"height":0,"label":"Last 1min Instant Troughput","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#ff7f0e","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":660,"y":100,"wires":[[],[]]},{"id":"f46e8307.11776","type":"ui_chart","z":"e206e300.26be6","name":"","group":"640e5b3e.410ae4","order":3,"width":0,"height":0,"label":"Last 24h Instant Troughput","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#ff7f0e","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":660,"y":220,"wires":[[],[]]},{"id":"bca84af7.554578","type":"ui_text","z":"e206e300.26be6","group":"b8ac51c2.e03f2","order":2,"width":0,"height":0,"name":"Last 1min average speed","label":"","format":"{{msg.payload}} uph","layout":"row-center","x":870,"y":280,"wires":[]},{"id":"14d86893.35bca7","type":"ui_text","z":"e206e300.26be6","group":"b8ac51c2.e03f2","order":4,"width":0,"height":0,"name":"Last 15min average speed","label":"","format":"{{msg.payload}} uph","layout":"row-center","x":880,"y":320,"wires":[]},{"id":"a033fb7c.fe2488","type":"ui_text","z":"e206e300.26be6","group":"640e5b3e.410ae4","order":2,"width":0,"height":0,"name":"Last 1h average speed","label":"","format":"{{msg.payload}} uph","layout":"row-center","x":870,"y":360,"wires":[]},{"id":"542cf471.11028c","type":"aggregator","z":"e206e300.26be6","name":"","topic":"Last 1min Average","intervalCount":"1","intervalUnits":"m","submitIncompleteInterval":true,"aggregationType":"mean","x":490,"y":280,"wires":[["3b2ad78c.2b5138"]]},{"id":"ff4cf222.268c3","type":"aggregator","z":"e206e300.26be6","name":"","topic":"Last 15min Average","intervalCount":"10","intervalUnits":"m","submitIncompleteInterval":true,"aggregationType":"mean","x":490,"y":320,"wires":[["330f440b.b0b7dc"]]},{"id":"58124c64.170914","type":"aggregator","z":"e206e300.26be6","name":"","topic":"Last 1h Average","intervalCount":"1","intervalUnits":"h","submitIncompleteInterval":true,"aggregationType":"mean","x":490,"y":360,"wires":[["72b8c98c.805668"]]},{"id":"9faf9903.bf1ad8","type":"aggregator","z":"e206e300.26be6","name":"","topic":"Last 24h Average","intervalCount":"24","intervalUnits":"h","submitIncompleteInterval":true,"aggregationType":"mean","x":490,"y":400,"wires":[["8be1d2b1.c607d"]]},{"id":"cbb37100.5ca08","type":"ui_text","z":"e206e300.26be6","group":"640e5b3e.410ae4","order":4,"width":0,"height":0,"name":"Last 24h average speed","label":"","format":"{{msg.payload}} uph","layout":"row-center","x":870,"y":400,"wires":[]},{"id":"a6f4530b.042ee","type":"ui_chart","z":"e206e300.26be6","name":"","group":"b8ac51c2.e03f2","order":3,"width":0,"height":0,"label":"Last 15min Instant Troughput","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"15","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#ff7f0e","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":670,"y":140,"wires":[[],[]]},{"id":"28a4f124.e46cae","type":"inject","z":"e206e300.26be6","name":"","topic":"pi/11","payload":"true","payloadType":"bool","repeat":"7.5","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":120,"wires":[["3455fc38.bad454"]]},{"id":"3b2ad78c.2b5138","type":"function","z":"e206e300.26be6","name":"","func":"//var intpayload = parseInt(msg.payload);\n//msg.payload = intpayload;\nmsg.payload = parseInt(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":280,"wires":[["bca84af7.554578"]]},{"id":"330f440b.b0b7dc","type":"function","z":"e206e300.26be6","name":"","func":"//var intpayload = parseInt(msg.payload);\n//msg.payload = intpayload;\nmsg.payload = parseInt(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":320,"wires":[["14d86893.35bca7"]]},{"id":"72b8c98c.805668","type":"function","z":"e206e300.26be6","name":"","func":"//var intpayload = parseInt(msg.payload);\n//msg.payload = intpayload;\nmsg.payload = parseInt(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":360,"wires":[["a033fb7c.fe2488"]]},{"id":"8be1d2b1.c607d","type":"function","z":"e206e300.26be6","name":"","func":"//var intpayload = parseInt(msg.payload);\n//msg.payload = intpayload;\nmsg.payload = parseInt(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":400,"wires":[["cbb37100.5ca08"]]},{"id":"3455fc38.bad454","type":"delay","z":"e206e300.26be6","name":"","pauseType":"random","timeout":"6","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"0","randomLast":"500","randomUnits":"milliseconds","drop":false,"x":240,"y":180,"wires":[["84d2448f.656618"]]},{"id":"adb702ee.a79fb","type":"ui_chart","z":"e206e300.26be6","name":"","group":"b2c65c53.4098b","order":1,"width":0,"height":0,"label":"Last 1h Instant Troughput","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#ff7f0e","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":790,"y":620,"wires":[[],[]]},{"id":"db697e37.85b57","type":"ui_chart","z":"e206e300.26be6","name":"","group":"7782aaaa.b67df4","order":3,"width":0,"height":0,"label":"Last 15min Instant Troughput","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"15","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#ff7f0e","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":810,"y":580,"wires":[[],[]]},{"id":"b5961c8.0267be","type":"function","z":"e206e300.26be6","name":"","func":"//var intpayload = parseInt(msg.payload);\n//msg.payload = intpayload;\nmsg.payload = msg.payload * 2;\nreturn msg;","outputs":1,"noerr":0,"x":550,"y":580,"wires":[["db697e37.85b57","adb702ee.a79fb"]]},{"id":"30de6bbe.4bbff4","type":"function","z":"e206e300.26be6","name":"10 minute RC","func":"// Applies a simple RC low pass filter to incoming payload values\nvar tc = 10*60*1000; // time constant in milliseconds\n\nvar lastValue = context.get('lastValue');\nif (typeof lastValue == \"undefined\") lastValue = msg.payload;\nvar lastTime = context.get('lastTime') || null;\nvar now = new Date();\nvar currentValue = msg.payload;\nif (lastTime === null) {\n // first time through\n newValue = currentValue;\n} else {\n var dt = now - lastTime;\n var newValue;\n \n if (dt > 0) {\n var dtotc = dt / tc;\n newValue = lastValue * (1 - dtotc) + currentValue * dtotc;\n } else {\n // no time has elapsed leave output the same as last time\n newValue = lastValue;\n }\n}\ncontext.set('lastValue', newValue);\ncontext.set('lastTime', now);\n\nmsg.payload = Math.round(newValue);\nreturn msg;","outputs":1,"noerr":0,"x":560,"y":680,"wires":[["362573a8.6a281c","bfb6be00.845aa"]]},{"id":"362573a8.6a281c","type":"ui_chart","z":"e206e300.26be6","name":"","group":"b8ac51c2.e03f2","order":5,"width":0,"height":0,"label":"Last 10min Average Troughput","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#ff7f0e","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":810,"y":700,"wires":[[],[]]},{"id":"b8ac51c2.e03f2","type":"ui_group","z":"","name":"1 & 15min Graphs","tab":"f7004dbe.8623","order":1,"disp":true,"width":"8","collapse":false},{"id":"640e5b3e.410ae4","type":"ui_group","z":"","name":"1 & 24h Graphs","tab":"f7004dbe.8623","order":3,"disp":true,"width":"8","collapse":false},{"id":"b2c65c53.4098b","type":"ui_group","z":"","name":"Group 2","tab":"3f62da82.1bf966","order":2,"disp":true,"width":"10","collapse":false},{"id":"7782aaaa.b67df4","type":"ui_group","z":"","name":"Group 1","tab":"3f62da82.1bf966","order":1,"disp":true,"width":"10","collapse":false},{"id":"f7004dbe.8623","type":"ui_tab","z":"","name":"Ruhl#15","icon":"home","order":4},{"id":"3f62da82.1bf966","type":"ui_tab","z":"","name":"Main Page","icon":"dashboard","order":3}]
Edit: Code posted properly, sorry about that.