Using Shelly i4 Gen3 with wall dry contacts momentary buttons

ESPhome is 100% new to me, thanks in for help.

I think I can use the Shelly i4 Gen3 that has 16 built-in functions to do what I need, diagram attached. Does anyone have code that does this, or something similar?

The 4 separate dry buttons control 4 separate LED light groups in HA so with only 1 button per group, I need each button to do both Up & Down Dimming

With esphome you can use Shelly or $2 esp32 dev board to detect different type of button presses for automations. They don’t directly dim anything though.

What do you mean ‘directly’?
The function will be when a button is held (long-press) the light in HA continually dims or brightens (increases or decreases the Bright / Dim level).

Using an esp32-c3 super mini would be fine with me, wish someone sold a model with green screw wire terminals soldered on. AITRIP sells a set of 2x ESP32-C3 MINI with Development Boards. Not ideal but workable.

but, Dim control is a must.

do you know if the Shelly can be flashed OTA? I read something about a web site UI method?

This is second topic, I’m telling that the button input device doesn’t dim anything. It just detects different kind of button presses. Short/long/multi… Dim control is related to the dimmer itself, which you have not described.

I think I understand… the code in this post looks like it “creates” a dim from a long-hold? My actual physical device is an HA Light Group containing multiple Gledopto GL-C-008P Zigbee LED controllers

That should work
How about using rotary encoders? You could just connect like 4 ky-040 to an esp32 and use a blank switch plate.
I only used one though for my lights



Nice job, I may do that. This rotary encoder with an LED indicator built-in looks cool. I have the 4-button Legrand wall switch installed so for now I’ll use that but will look for rotary switch with LED. I use, and very much like, Moes zigbee Smart Knobs for some lights.