Home Automation

So I was doing some thinking last night and thought about going about this in the following manner.. I would like to hook both my iPod (or computer) up to a wireless router by wifi and then hook up the arduino board to the router using the ethernet shield.. then would it be possible to send packtes to communicate from my iPod/computer through the router to the arduino board in order to control it? and then have the arduino dim a light or send an IR signal from there?
Thanks for the help!