replace Broadlink RM mini3's controller to esp8266 how to open top cover use wemos d1 mini or pro desoldering 5V - GND - IR IN(sensor) - IR OUT(ir led) - GND - 3.3V connect lines to esp8266(5V, 3.3.V, GND, #12-tx, #14-rx)