Debounce button and delays

Hi Larry!
your post #120: I made the changes, it was for me in code line 266 and 267.

your post #121: first I set settemp and hyst. above room temp, : room temp 25,9, settemp 28, hystt 26,5

now i push thermostat on, nothing happens

now i push settemp down to 27, so hyst. is 25,5, room still was 25,9). suddenly swamp cooler and LED toggles endless, and at the same time room temp jumps between 24,5 and 25,9 up and down (like yesterday)

sorry i am not on your level to help, but I started to read through all your links