def do_send_command_to_device(self, command):
        if command.startswith('label:') and command[len('label:'):] in self.current_labels:
            return self._autoprogram(command[len('label:'):])
        elif command.startswith('switch:'):
            switch_number, on = command[len('switch:'):].split(',')
            switch_number = 5 + int(switch_number)

            new_command = 'ChangeSwitch %s %s' % (on, switch_number)

            return super(BinaryExperiment, self).do_send_command_to_device(new_command)

        elif command.startswith('STATE'):
            return super(BinaryExperiment, self).do_send_command_to_device(command)
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/experiments/binary/server.py/BinaryExperiment.do_send_command_to_device/original