docs: def get_thermostat_meter_data(zone):
      """
      This method subscribes to the output of the meter for the given zone.
      It returns a handler to call when you want to stop subscribing data, which
      returns a list of the data readins over that time period
      """
      meter_uri = zone2meter.get(zone, "None")
      data = []
      def cb(msg):
          for po in msg.payload_objects:
              if po.type_dotted == (2,0,9,1):
                  m = msgpack.unpackb(po.content)
                  data.append(m['current_demand'])
      handle = c.subscribe(meter_uri+"/signal/meter", cb)
  
      def stop():
          c.unsubscribe(handle)
          return data
      return stop