Build your own open source hardware Nest-style smart thermostat

This makes not a lot of sense sense. Once it knows when you are likely to to come back, it can starting heating up in advance.

And I bet you 20 € that your comings and goings are quite predictable once a month of data has come in.