We need the sensorhistories object to be persistent to caculate watt hours.