Deductions & credits

Would only the income from the vacation rental in Indiana be considered Indiana income? Do the states base the income based on address listed on your w2 or how does that work?