Hi guys,
I know there are many iterations of different pool pump automations here, but was hoping to get some help here.
I want the following to happen and preferably in 1 script:
- Run the pump from 8:00 AM to 8:00 PM every day
- Using 2 data points (for redundnacy) to get temperature:
Check the local weather every hour using the OpenWeather API for my location;
Check the temperature of the Intermatic Freeze probe every hour;
If either temperature is 35 deg F or below outside the normal running schedule, turn the pump on.
Obviously I am not a programmer. I want there to not be a problem should there be a power failure and Home Assistant restart. I don’t want the automation to be reset or not work.
Can someone please help with what I have so far or give me a different automation.
Many thanks.
[{"id":"0bc02a3955cba19b","type":"poll-state","z":"f2a97156.abf83","name":"Intermatic Freeze Sensor","server":"9999.88888","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"60","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.pool_air_temperature","state_type":"str","halt_if":"","halt_if_type":"num","halt_if_compare":"is","outputs":1,"x":175,"y":335,"wires":[["02b0a39ae3891df4","626b18e5e6c87f5e"]]},{"id":"02b0a39ae3891df4","type":"time-range-switch","z":"f2a97156.abf83","name":"Outside pool hours","lat":"","lon":"","startTime":"20:01","endTime":"07:59","startOffset":0,"endOffset":0,"x":455,"y":370,"wires":[["4c298a26860213a1","9a7e50acf4730769"],[]]},{"id":"626b18e5e6c87f5e","type":"debug","z":"f2a97156.abf83","name":"debug 14","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":425,"y":325,"wires":[]},{"id":"82667d729d92d04c","type":"poll-state","z":"f2a97156.abf83","name":"Open Weather Temp","server":"9999.88888","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"60","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.openweathermap_temperature","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":155,"y":385,"wires":[["02b0a39ae3891df4"]]},{"id":"4c298a26860213a1","type":"debug","z":"f2a97156.abf83","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":290,"wires":[]},{"id":"9a7e50acf4730769","type":"switch","z":"f2a97156.abf83","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"35","vt":"num"},{"t":"gte","v":"36","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":650,"y":375,"wires":[["c11338a91fb59838","c5a3f9f825a33e48"],["a1132619efee9494","ee3f8b21b54f9f31"]]},{"id":"c11338a91fb59838","type":"api-call-service","z":"f2a97156.abf83","name":"Pool pump ON","server":"9999.88888","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.pool_intermatic_controller"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":880,"y":415,"wires":[["27d659442868cda2"]]},{"id":"c5a3f9f825a33e48","type":"debug","z":"f2a97156.abf83","name":"debug 10","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":333.75,"wires":[]},{"id":"a1132619efee9494","type":"api-call-service","z":"f2a97156.abf83","name":"Pool pump OFF","server":"9999.88888","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.pool_intermatic_controller"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":880,"y":470,"wires":[["d4b2ed773d17ce4a"]]},{"id":"ee3f8b21b54f9f31","type":"debug","z":"f2a97156.abf83","name":"debug 11","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":377.5,"wires":[]},{"id":"c083e09bed871359","type":"switch","z":"f2a97156.abf83","name":"on-off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":415,"y":445,"wires":[["c11338a91fb59838"],["a1132619efee9494"]]},{"id":"27d659442868cda2","type":"debug","z":"f2a97156.abf83","name":"debug 12","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":421.25,"wires":[]},{"id":"d4b2ed773d17ce4a","type":"debug","z":"f2a97156.abf83","name":"debug 13","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":465,"wires":[]},{"id":"468bea114e038455","type":"bigtimer","z":"f2a97156.abf83","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Pool pump schedule","comment":"","lat":"","lon":"","starttime":"480","endtime":"1200","startoff":"0","endoff":0,"startoff2":"","endoff2":"","offs":"0","outtext1":"on","outtext2":"off","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":"","month7":"","day8":"","month8":"","day9":"","month9":"","day10":"","month10":"","day11":"","month11":"","day12":"","month12":"","d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xday7":"","xmonth7":"","xday8":"","xmonth8":"","xday9":"","xmonth9":"","xday10":"","xmonth10":"","xday11":"","xmonth11":"","xday12":"","xmonth12":"","xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":false,"atstart":true,"odd":false,"even":false,"x":165,"y":455,"wires":[["c083e09bed871359"],[],[]]}]