• 3 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle











  • I would caution going too far down the custom rabbit hole for something like a light bulb, just because you will eventually have to replace it. At that point I would look at a zigbee/zwave lightbulb with a esp32 in the base powered by a AC to DC converter to control the bulb. You would need a stick to control it but the trade off is a much easier replacement later on.


  • I missed the part about switching to RGB LED, but I’m not sure if any products are bright enough to be useful. You are right that if you powered the Shelly with ac, it outputs ac, which goes against your Edison bulb replacement idea. If you can find something that runs on 12v (like a light strip), that case no relay would be needed. You could replace the AC cord with a 12v DC adapter to power the lights and use a cheap 5-30v to 5v buck converter to power the esp32.


  • v1605@lemmy.worldtohomeassistant@lemmy.worldMaking an old lamp smart
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    11 months ago

    Do you care about dimming or running an extra cord into the lamp? Someone has done something similar here with just an esp32 and smart switch. If you want just a single cord, you’ll need esp32, AC to DC 5v board, and some dry contact ac relay module. The code would be similar but the esp32 would directly control the relay instead of using a switch.

    Edit: thinking about it more, you may also just be able to use a shelly 1 relay flashed with esphome has gpio pins and can run off ac power but it uses an esp8266 so not sure how that would work with capacitive touch.