There is a pretty good teardown here http://thegreatgeekery.blogspot.ca/2016/02/ecoplug-wifi-switch-hacking.html