Living in Michigan working remotely for a New York employer.

If I work remotely and live in Michigan and my employer is in New York, how does that affect my state taxes in both states? Do I have to pay taxes for both states?