I cannot, for the life of me, figure out how to get some program logic to work the way I intend it to work. I want to control a small water pump, plugged into an Outdoor On/Off module.
When the temperature (from openweathermap) is > 40 degrees F, I was the put to run for 5 minutes, every hour, during the hours of 7am to 8pm, daily.
When the temperature is <= 40 degrees F, I would like the pump to run continuously.
The problem I am currently having is the when the temperature is over 40F, the pump runs for 5 minutes minutes, turns off for a brief second, then is switched right back on.
Any thoughts how I can model this logic?
Thanks.