I'm just getting into the Raspberry Pi and love the idea of home automation. I'd like to use the Raspberry Pi to turn on/off lights, control the thermostat, and possibly a few other tasks in the future. However, I don't own a home. I live in a recently built apartment. I'd really like the idea of having wifi enabled outlets, but I'm don't believe I can safely take out the electrical outlets in my apartment. Also, I doubt the management for apartment would do it for me. I've seen plug in adapters for outlets as an alternative, but I haven't found any that are that attractive. Are there affordable and practical wifi solutions to control lights with the Raspberry Pi for an apartment?
Also, the digital thermostat installed in my apartment does not support wifi. Are there wifi enabled thermostats that are affordable that I could install in my apartment without causing any damage to the wall?