I was having problems with rats in my attic. I mounted a couple of strobe lights that flash continuously about once a second in the attic. Rats were gone by the next day.
In case you run up against strobe-resistant rats in the future, check out my post #43 on this thread.