Need a smart version of this

I have a China cabinet whose lighting is controlled by touch relay with 3 levels of brightness. Much like the device below which is available on Amazon. I need a smart device(s) that I can use to replace my existing dumb switch. What hardware and blueprints do I need.

3 Way Touch Sensor dimmer, Touch lamp Repair kit Control Module, Replacement Sensor, Touch Switch, 150Watt. - Amazon.com text**

Esphome + esp32 and there are several possible sensors you may use

mmWave
Touch
Motion
Your choice

You may be able to use existing with esp device

So you have touch dimmer on mains circuit?
You want to keep “touch” feature but have it also smart?

Need to preserve current function as much as possible, WAF. When the touch pad is touched the device changes bulb brightness. I assume using the same method as normal dimmers (PWM??). It has three built in setting plus off. 4 touches and you cycle through. What I am looking for is something that will continue to work when HA is down and allow HA to control brightness when HA is up. Much the same as I do for lamp with a Sonoff Mini, which still controls without HA but with HA I can control remotely.

Yes the existing device connects directly to 110V. Three builtin brightness settings plus off. Touching the hinge that the touch input is wired to cycles the settings. 4 touches and you are through all the settings.
Been looking at some of the dimming relays (Shelly) but have not figured out how just have the preset brightness settings,

I’m pretty sure Shelly is flexible enough to be programmed for presets, you might need to use scripts though if you want to make it work without HA.
But there’s no way you can use the actual dimmer as a input switch for shelly. For that you need touch on-off switch (no dimming).

Esp device works independent of HA

After several days of research I think and esp32 based home made device maybe the best(only) solution. Hooking up some sort of touchpad to smart relay does not seem realistic. Looks like with ESPHOME in control hooking up a TTP223 to an ESP32 to AC TRIAC to power light blubs is fairly straight forword. And there appears to lots postings out there that I can follow to learn from.

So the idea of building my own based on ESP32 has gone from last place to the top of my list to try.

Thanks

That’s not true, not long time ago I was guiding someone here for that approach (Shelly+touch switch).
I personally prefer esphome though.