There are relay modules sold with either 1, 2 or 4 relays based on the ESP01 which are really useful for implementing a remote switching solution.
Support for these is included so that the ESP01 used on the relay module can be reprogrammed to use an MQTT subscription for switching instructions using a common code base.
Software to implement these ideas can be viewed on github here.