I was just wondering if its advisable to just use ESP's GPIOs to control appliances (lights, fans, switches etc) for a home automation project (using the relay circuitry with transistors) or should I use an external Microcontroller to do this? I am looking to control, say, 4-6 appliances over WiFi and I believe ESP8266 does come with enough GPIO pins to support them. I am hoping to minimize the cost by not having to use an external Microcontroller.
Also, I am planning to develop an app to be able to control the appliances (have done that using Arduino Yun), so can ESP8266 support that or would I need the external Micrcontroller for that anyway? (Sorry, I am new to ESP8266 so havent figured out this yet!)