Hello there,
I have already worked on home automation project using esp8266.
I have used Atmega2560, Esp8266-12E, current sensor, rtc, etc.
I can give you even more details via chat.
I am having the circuit design already.
please contact me for further discussion.