

def get_switch_actors(self):
    "\n        Get information about all actors\n\n        This needs 1+(5n) requests where n = number of actors registered\n\n        Deprecated, use get_actors instead.\n\n        Returns a dict:\n        [ain] = {\n            'name': Name of actor,\n            'state': Powerstate (boolean)\n            'present': Connected to server? (boolean)\n            'power': Current power consumption in mW\n            'energy': Used energy in Wh since last energy reset\n            'temperature': Current environment temperature in celsius\n        }\n        "
    actors = {
        
    }
    for ain in self.homeautoswitch('getswitchlist').split(','):
        actors[ain] = {
            'name': self.homeautoswitch('getswitchname', ain),
            'state': bool(self.homeautoswitch('getswitchstate', ain)),
            'present': bool(self.homeautoswitch('getswitchpresent', ain)),
            'power': self.homeautoswitch('getswitchpower', ain),
            'energy': self.homeautoswitch('getswitchenergy', ain),
            'temperature': self.homeautoswitch('getswitchtemperature', ain),
        }
    return actors

dataset/ETHPy150Open DerMitch/fritzbox-smarthome/fritzhome/fritz.py FritzBox.get_switch_actors/original