Using the provided “no hole sweep sensor” () directly attached to the led will not allow you to control the leds from the d1 mini or getting the state of the leds (in esphome or HA).
Easiest way is to attach the ledstrip directly to the d1 mini with a help of a mosfet and use a extra sensor (again directly connected to the esp) to get the signal for toggling the light. Maybe sometthing like a APDS9960 gesture sensor.
If you go with esphome the only thing you need to do is to make use of the native api