Shelly Switch Installation Issue

Hey everyone, I’m new to the world of smart home devices and I’m trying to set up some Shelly switches in my apartment. I’ve installed two switches, each controlling a separate light. However, I’m running into some trouble with the wiring. Each switch has four wires, and no matter how I connect them, the light either stays on constantly or doesn’t turn on at all. I’ve tried switching the wires around, but nothing seems to work. Even the Shelly app isn’t responding properly. I’ve drawn a small wiring diagram to visualize the issue, but I’m not sure where I’m going wrong. If anyone has any tips or advice, I’d greatly appreciate it! I’m really excited to get this working and make my home a bit smarter. :blush: