As far as I can tell the shelly should be installed into the “main” switch. I just received mine and have the exact thing in mind, so that’s how I would start.
Here is a wiring diagram.
And the corresponding thread and video.