code: def get_tstat(self, site, start, end, var="tstat_temp", agg='MEAN', window='24h', aligned=True, return_names=True):
          
  
          # Convert time to UTC
          start = self.convert_to_utc(start)
          end = self.convert_to_utc(end)
      
          point_map = {
              "tstat_state" : "Thermostat_Status", 
              "tstat_hsp" : "Supply_Air_Temperature_Heating_Setpoint", 
              "tstat_csp" : "Supply_Air_Temperature_Cooling_Setpoint", 
              "tstat_temp": "Temperature_Sensor" 
          }
          
          if isinstance(var,list):
              point_type = [point_map[point_type] for point_type in var] # list of all the point names using BRICK classes
          else:
              point_type = point_map[var] # single value using BRICK classes
          
          request = self.compose_MDAL_dic(point_type=point_type, site=site, start=start, end=end,
                                          var=var, agg=agg, window=window, aligned=aligned)
          resp = self.m.query(request)
          
          if return_names:
              resp = self.replace_uuid_w_names(resp)
  
          return resp
docs: Get thermostat data from MDAL.
  
          Parameters
          ----------
          site            : str
              Building name.
          start           : str
              Start date - 'YYYY-MM-DDTHH:MM:SSZ'
          end             : str
              End date - 'YYYY-MM-DDTHH:MM:SSZ'
          var             : str
              Variable - "meter", "weather"...
          agg             : str
              Aggregation - MEAN, SUM, RAW...
          window          : str
              Size of the moving window.
          aligned         : bool
              ???
          return_names    : bool
              ???
  
          Returns
          -------
          (df, mapping, context)
              ???