Sonoff Mini with 3 or more physical switches, and dimmer physical switch

Tags: #<Tag:0x00007f32658cd4a0>

Hi everyone,

I’m planning on putting Sonoff Mini in my existing electrical installation to control lights.
Currently I have 4-way switching electrical configuration (3 physical switches, two of them 2-way and 1 intermediate switch, all three controlling 1 light).
Found an image showing how to integrate Sonoff Mini in 3-way switching electrical configuration (2 physical switches, both of them 2-way, controlling 1 light): https://i.imgur.com/UaNkBCG.jpg
Am I right to assume if I had a third switch, and intermediate switch, it can simply be put between the two existing 2-way switches in schematic in the picture, basically way it’s already installed without Sonoff Mini (https://images.app.goo.gl/Btb7RQKU2RBvujLM8), and would need to rewire just one 2-way switch where I would put Sonoff Mini?

And second question, same situation as above (3 physical switches, two of them 2-way and 1 intermediate switch, all three controlling 1 light), but one of 2-way switches is a dimmer 2-way switch.
I assume schematic above should still work, but I should put Sonoff Mini behind this dimmer 2-way switch, so I have Lin into Sonoff Mini, the S1 from Sonoff Mini connected to Lin of dimmer 2-way switch, and rest switches connected as normal.
Can someone confirm?
Just to add, my goal is Sonoff Mini just to turn light on and off, and dimming is done solely by physical 2-way dimmer switch. If this dimmer switch is set to 50%, when I turn on lights via Sonoff Mini, lights will turn with 50% as set on physical dimmer switch.

Thank you for your help and advice.