Here is the branch of node red flow I mentioned in the last post
[{"id":"c6a641c4.cd1b7","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"8e9463e2.a2cf7","type":"function","z":"c6a641c4.cd1b7","name":"spa too hot","func":"if(msg.payload >= 104){\n msg.payload = "off";\n\nreturn msg;\n}","outputs":1,"noerr":0,"x":330,"y":240,"wires":[["61425c53.7f7234","fee13e44.2669"]]},{"id":"61425c53.7f7234","type":"mqtt out","z":"c6a641c4.cd1b7","name":"heat off","topic":"esp8266spa/heat","qos":"","retain":"","broker":"562eb1ef.1c2f1","x":560,"y":240,"wires":},{"id":"ac0a3888.0cd748","type":"delay","z":"c6a641c4.cd1b7","name":"email limit","pauseType":"timed","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":440,"y":420,"wires":[["661c7957.42d998"]]},{"id":"661c7957.42d998","type":"e-mail","z":"c6a641c4.cd1b7","server":"smtp.gmail.com","port":"465","secure":true,"tls":true,"name":"troypearce@gmail.com","dname":"email to noderedpearc","x":580,"y":360,"wires":},{"id":"aa6450c1.3a83b","type":"function","z":"c6a641c4.cd1b7","name":"spa just right hot","func":"if(msg.payload >= 103){\n msg.payload = "water temp in hot tub is 103";\n\nreturn msg;\n}","outputs":1,"noerr":0,"x":340,"y":340,"wires":[["ac0a3888.0cd748","76e711df.192dc"]]},{"id":"999f6aac.34aae8","type":"mqtt in","z":"c6a641c4.cd1b7","name":"","topic":"esp8266spa/solartemp","qos":"2","datatype":"auto","broker":"562eb1ef.1c2f1","x":180,"y":460,"wires":[["9975b551.e48458","58c1849d.488bdc","ce9333fb.018d6","25f2a82f.8a5bd8","3a0218da.e2d258"]]},{"id":"ce9333fb.018d6","type":"ui_gauge","z":"c6a641c4.cd1b7","name":"solar panel water Temparature","group":"dc08521.6b0dab","order":0,"width":0,"height":0,"gtype":"gage","title":"solar temperature","label":" Ā° F","format":"{{value}}","min":"50","max":"130","colors":["#00b500","#e6e600","#ca3838"],"seg1":"80","seg2":"102","x":450,"y":540,"wires":},{"id":"3a0218da.e2d258","type":"ui_chart","z":"c6a641c4.cd1b7","name":"Solar Temp","group":"70c44ff3.93741","order":2,"width":0,"height":0,"label":"solar panel temp","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"60","ymax":"108","removeOlder":"2","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":610,"y":600,"wires":[]},{"id":"2c9331b0.d82e6e","type":"function","z":"c6a641c4.cd1b7","name":"esp8266spa/spatemp","func":"msg.payload=Number(msg.payload);\nmsg.topic = "esp8266spa/spatemp";\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":180,"wires":[["ffcb7d17.34188"]]},{"id":"58c1849d.488bdc","type":"function","z":"c6a641c4.cd1b7","name":"esp8266spa/solartemp","func":"msg.payload=Number(msg.payload);\nmsg.topic = "esp8266spa/solartemp";\nreturn msg;","outputs":1,"noerr":0,"x":420,"y":500,"wires":[["ffcb7d17.34188"]]},{"id":"ffcb7d17.34188","type":"function","z":"c6a641c4.cd1b7","name":"Comparatore","func":"// this is passed a payload which is an object with\n// properties outside_temp and inside_temp\n\ncontext.set(msg.topic,msg.payload);\n\nvar solartemp = context.get("esp8266spa/solartemp") || 0;\nvar spatemp = context.get("esp8266spa/spatemp") || 0;\n\nnode.warn("Solar " + solartemp);\nnode.warn("Spa " + spatemp);\n\n\n\nif (solartemp > (spatemp+10)) {\n \n msg.payload = "on";\n} else\n{\n \n msg.payload = "off";\n}\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":420,"wires":[["de83160b.4358a8","a3cc4a99.1967a8"]]},{"id":"10b85d70.553653","type":"mqtt out","z":"c6a641c4.cd1b7","name":"turn on/off sol pump","topic":"esp8266spa/solon","qos":"","retain":"","broker":"562eb1ef.1c2f1","x":1250,"y":540,"wires":},{"id":"cc4ba846.a5b358","type":"link in","z":"c6a641c4.cd1b7","name":"","links":["b5060a91.7fd078"],"x":140,"y":140,"wires":[["8e9463e2.a2cf7","2c9331b0.d82e6e","472c4179.73d96","aa6450c1.3a83b"]]},{"id":"fee13e44.2669","type":"debug","z":"c6a641c4.cd1b7","name":"55","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":550,"y":300,"wires":},{"id":"25f2a82f.8a5bd8","type":"debug","z":"c6a641c4.cd1b7","name":"56","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":310,"y":640,"wires":},{"id":"de83160b.4358a8","type":"debug","z":"c6a641c4.cd1b7","name":"57","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1210,"y":420,"wires":},{"id":"472c4179.73d96","type":"debug","z":"c6a641c4.cd1b7","name":"55db","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":350,"y":100,"wires":},{"id":"76e711df.192dc","type":"debug","z":"c6a641c4.cd1b7","name":"55b","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":370,"y":300,"wires":},{"id":"9975b551.e48458","type":"debug","z":"c6a641c4.cd1b7","name":"56z","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":390,"y":460,"wires":},{"id":"a3cc4a99.1967a8","type":"rbe","z":"c6a641c4.cd1b7","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":990,"y":620,"wires":[["10b85d70.553653"]]},{"id":"562eb1ef.1c2f1","type":"mqtt-broker","z":"","name":"","broker":"192.168.250.8","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"dc08521.6b0dab","type":"ui_group","z":"","name":"spa summerize","tab":"586d995e.971c58","order":1,"disp":true,"width":"6","collapse":false},{"id":"70c44ff3.93741","type":"ui_group","z":"","name":"sensors","tab":"586d995e.971c58","order":2,"disp":true,"width":"6","collapse":false},{"id":"586d995e.971c58","type":"ui_tab","z":"","name":"esp8266spa","icon":"dashboard","order":4,"disabled":false,"hidden":false}]