Home automation is huge right now in consumer ... This is accomplished with twelve MOSFETS, which are in turn connected to the board’s ESP8266 via a MCP23017 I2C I/O expander.