I would like to have a hardware (can run ESPhome) that has equal amount of inputs and outputs. Dummy button switches on the input, relays on the outputs. Device shall locally toggle the relay if HA is down (can be done with ESPhome checks). If HA is up, I just want events to HA that will perform the actions. I'd like this setup for new home, which would allow smart and dummy lights to still get toggled if HA is done for some reason.
Inputs shall support 230V, so that button press in the wall can propagate live voltage back to the distribution box & to board.
I'm unable to find appropriate board. Board would sit in the distribution box (or somewhere near to it). Wired option with ethernet is preferred tho.