DIY Scene switcher as light switch for home assistant

I built a scene switcher to replace my light switch to have full control of the room and the light.

At the start of my smart home journey like everyone else I started with smart RGB light bulbs. But immediately the issue with the light switch emerged as you might imagine :slight_smile: So I decided to build a small esp32 based scene switcher to control my smart bulb without the fear of cutting energy for it.

The scene switcher has;

  • one rotary encoder
  • 4 push buttons
  • 1 ld2410c mmwave presence sensor

I designed a nice housing with my super-duper extreme ultra pro max 3d tinkercad skills :slight_smile:

But overall I like what came out.

With the rotary encoder I can send commands to dim the lights. The encoder also has a button functionality so if I click on the wheel I can turn on and off the light. I also coded a color wheel functionality where if you hold and turn the wheel it goes into color mode and changes the color. After releasing it it goes back to regular brightness mode. Also double tap changes back to white.

The 4 push buttons can be programmed via home assistant for specific scenes or colors. In one of my room I created a guest mode for example on button 3 and a sleep mode at button 4 so at night the presence sensor does not trigger.

I get electricity directly from the wall and turn 22v AC to 5v DC to power the esp32 etc. So I added a separate powerline for the device and connected the main light cables to eachother so they stay on all the time. I could get away with using that line directly I think, not sure, didn’t try. But this might be the better way overall.

Before that I had to cover my light switches so we don’t accidently turn off the lights for the rooms I built custom ceiling lights etc.

What do you think?

1 Like