My idea is to replace the dimmer and 2 switches by smart dimmers (like Candeo or Samotech) and keep then in sync.
The wiring is not a challenge at all:
The main dimmer would be connected to the load.
The other 2 secondary dimmers would have only L and N connected, and no load at all.
Then I’d synchronize the 3 dimmers.
The first part (state) is simple:
When any of the dimmers state change (ON->OFF or OFF->ON)
Propagate the state to all the others
The brightness is a challenge, though. First because there is no way other way to set the brightness value besides the TURN_ON action (with a brightness value). Second because the brightness value is NULL when OFF.
I had an idea, but maybe it is a bit overkill.
1 - Create a Helper to keep the brightness value
2 - Secondary dimmers are kept always ON, so when one is switched OFF, an automation turns it back ON and also toggles the main dimmer state.
4 - When the main dimmer is switched ON, an automation immediately calls the TURN_ON action again, with the brightness value kept on the Helper.
I think it would work, but it is a bit of a hassle.
The only limitation would be: The main dimmer can’t be used to adjust the brightness down while OFF. So if turned ON, it could be very bright, which is not ideal for a bedroom.
Any ideas on how to make it better or easier?
EDIT: Apparently the Samotech DOES update the brightness internally when turning the knob while it is OFF.
There are some corner cases, like when main is OFF, but the previous value set is 255 (max). The secondary dimmer won’t generate any events when turning clockwise. So I force the value to 1 before maximum when turning off.