Wemos D1 Mini + Led (white only) + Physical switch for fallback

Hi, i would like to ask if it is possible:

Hardware:

  • Wemos d1 mini,
  • led strip (white only),
  • power supply 12v for led strip,
  • step-down from 12v to 5/3.3V for powering Wemos with same power supply as led strip,
  • physical switch to power on/off led strip and let Home Assistant know that the light is turned on/off.

Switches looks like this (i can use any of them):


Optional:

  • resistrors, mosfets

Do you have any ideas how to connect this hardware all together? I wanted to use ESPHome but i can go with WLED if necessary.

Using the provided “no hole sweep sensor” (:eyes:) 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). :bulb:

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. :raised_hand_with_fingers_splayed:

If you go with esphome the only thing you need to do is to make use of the native api :tada:

thanks, I will try it :wink: