def doOffCommand(self, deviceCode):
        if self.connected:
            if self.hs.DeviceExistsRef(deviceCode)>-1: # krambriw: Check if the device exists
                command = "Off"
                print "Sending command " + command + " to " + deviceCode