u/rgnyldz

Image 1 — I replaced my dumb light switch with a DIY Scene Switcher... With 4 buttons, a rotary encoder and presence sensor :)
Image 2 — I replaced my dumb light switch with a DIY Scene Switcher... With 4 buttons, a rotary encoder and presence sensor :)
Image 3 — I replaced my dumb light switch with a DIY Scene Switcher... With 4 buttons, a rotary encoder and presence sensor :)
Image 4 — I replaced my dumb light switch with a DIY Scene Switcher... With 4 buttons, a rotary encoder and presence sensor :)
▲ 62 r/Esphome+1 crossposts

I replaced my dumb light switch with a DIY Scene Switcher... With 4 buttons, a rotary encoder and presence sensor :)

So we all know the dilemma where you install a smart bulb in your living room everything seems to be awesome until someone flips the physical switch and turns of power to the smartbulb. So you have to turn it back on and set it from your phone etc.

I built a Scene Switcher to replace my light switch to have full control over both the light and the switch. I also added a presence sensor to make my room really smart and automate based on presence.

I can automate the 4 buttons as I like. For example the first button is to turn on and off the tv. Second button is for guest mode, third is for sleep mode and 4th button is to announce that dinner is ready :)

The main wheel controls the main light. so one push is toggle on and off. Turning the wheel changes the brightness. (turns on and off also with turning the wheel) Pushing the button AND turning the wheel gets you into color mode and you can change the color. Release and it goes back to brightness control mode to default. Double click turns it back to white.

I wanted to print dedicated icons to the buttons but I wasn't sure which will be doing what :) but that is also an option. First I have to put my printer into maintenance as you can see the prints are not that good.

So the parts I used are;

  • ESP32-S3 N16R8
  • KY-040 Rotary encoder (with screw body and button)
  • 4x simple push buttons
  • 1x toggle switch
  • 1x 220V to 5V AC/DC converter.

I'm in the EU so we have these prebuilt-in holes for switches and outlets. So the bigger parts go into that and the device itself can be as thin as an esp board. Design could be better of course :) Not a pro here.

But I like how it turned out. What do you think?

As always the build process is here; https://www.youtube.com/watch?v=jDEeNjR3Npw

STL files and code will be uploaded in short time.

u/rgnyldz — 9 days ago