Shelly Dimmer Gen4 for Two way switch

I found a very informative post by @fenty17 where he kindly posted his solution, but my existing wiring is the other UK type where is the one on the left instead of the right on his post (https://www.downlights.co.uk/media/FAQs/wiring-example-2-way-switches.jpg)

I like to install the shelly dimmer gen 4 where I am a bit confused how to wire it. I had searched for hours online and I haven't come across a solution yet.

(

Ideally I would actually like to put the Shelly controller behind the ceiling rose due to the limited space I have as I actually have two two way switches on the same light switch panel.

Any advice or directions will be much appreciated. Thank you!

Shelly tech support of no help?

You mean your wiring is like this?


Then you can simply connect Shelly L to live, S1 to Switch and O to Switched live (going to the lamp).
To place Shelly behind light fixture, you need Live wire there as well, which you probably don't have.