I was just reading about thermal-daemon, and thought it is a great
application for Fuzzy Logic Control.
I developed recently a free open-source Fuzzy Logic Control library in C++
which might be helpful for your purpose.
If anyone is interested, visit http://www.fuzzylite.com.
I am glad to help in any way I can.