For some reason my S5 had picked up an IP address that was in use by another device on my network. I don't know if this is a router problem or an S5 problem. However by switching to static and picking a new IP address I was able to start using my home wifi again.