I found the following connecting scheme on the internet:

I got one light control switch unit with two switches on it, something like the picture below:

The only problem is when I remove the switch cover I have 3 wires, 1 wire going to lamp1, the second wire going to lamp2 and the third wire is the power wire.
How do I have to connect the fibaro double switch to control both ligths and the switch?
I tried connecting lamp1 to Q1 and lamp2 to Q2 and S1 to light switch 1 and S2 to light switch 2 and the power wire to L and the power input of the light switch, only that didn't worked.
So I'm curious how I need to connect the fibaro double switch?
Can someone help me with it?