Some time ago i hacked a sonoff switch to be able to put my own software on it. This was a simple internetswitch. In the mean time i greatly improved the software for more flexiblity and lower energy consumtion. One of the great improvements is the possibility to update the software "over the air". No need to flash the ESP, just provide a link to the new software and it wil update.
An overview of the current features: