Update of thermostat  switch logic
  Added heater switches to rrd
Fix problem with incorrect day indexing