Connecting Shelly Wall Switch to Shelly Dimmer2

I’m trying to connect my Shelly Wall Switch to a Shelly Dimmer2, but I’m running into some wiring issues. According to the wiring diagram that comes with the Shelly Switch, the live from the dimmer should connect through the Switch to the SW1 and SW2 terminals. However, the instructions also mention that the maximum switching potential is 18V AC, while the dimmer live is 240V. This seems conflicting, and I’m not sure how to proceed safely. Has anyone successfully connected a Shelly Wall Switch to a Shelly Dimmer2? I would appreciate any guidance or tips on how to wire this correctly. Safety is my top priority, so I want to make sure I’m not risking any electrical hazards. Thanks in advance for your help!