Fixed Thermostate::day not being correctly initialized.
Initialized Thermostate::lastupdate to its maximum value instead of 0, allowing to safely skip testing it was equal zero each run.
Renamed Thermostate::lastupdate to Thermostate::lastUpdate to follow camelCase convention.