def cmd_turn(self, *args):
    if (args[0][0] == 'on'):
        self._magic_blue.turn_on()
    else:
        self._magic_blue.turn_off()
def cmd_turn(self, *args):
    if (args[0][0] == 'on'):
        self._magic_blue.turn_on()
    else:
        self._magic_blue.turn_off()