def mget(self, index, doctype, ids, fields=None):
        path = self._make_path([index, doctype, '_mget'])
        docs = []
        for id in ids:
            doc = {'_id': id}
            if fields:
                doc['fields'] = fields
            docs.append(doc)
        body = {'docs': docs}
        self.send_request('GET', path, body=body)
        return self._parse_json_response(self.last_response.text)
Tell the core logic if device is on.
dataset/ETHPy150Open eriky/ESClient/esclient.py/ESClient.mget--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/pulseaudio_loopback.py/PALoopbackSwitch.is_on