Hi all.
I've been working on DIY thermostat for my home. Everything works fine. Connected via blynk. But since I heat my house with pellets and big hot water boiler I only run pump with thermostat. Pellet burner check water temp and turn on and off.
Now there is a problem when I open widnows for airing my living room. We smoke inside or cook so we let some fresh air inside often. And there is a problem every time I open widnow my pump starts as temp fall beyond set temp minus histeresys. After I close the windows temp rise to the temp before windows were open with or without pump working. There is always heat stored in walls and air.
So I would like to make some kind of function to. Register temp drop and stops the pump if cold air is coming inside.
Rights now I made a function that check temp every 2 minutes and if the change is greater than 0.2C stop the pump. Works only if change is below 0.2
But this have a bug. If window is opened for longer than the temperature settles on some lower temp and calculation of old and new temp is 0 again which makes pump work. But when I close windows room temp usually gets back up where it was in minutes just from warm walls and air.
Any ideas?
Thanks
