On my github there is information and code for creating an ESP8266 Light controller that operates an RGB light and a white light. (or any other 4 output PWM 12 VDC) the source and information is at GitHub - Doug-Wyman/ESP8266_MQTT_light: Micropython code for controlling an RGB and White light using an ESP8266 controller board of my design.