def set_switch_toggle(self, ain):
        return self.homeautoswitch('setswitchtoggle', ain)

    #
    # DeviceID based methods
    #
    # Inspired by:
    # https://github.com/valpo/fritzbox/blob/master/fritzbox/fritzautohome.py
    #
Toggle a power switch and return the new state
dataset/ETHPy150Open DerMitch/fritzbox-smarthome/fritzhome/fritz.py/FritzBox.set_switch_toggle