Smart Life / Smarthings -- Valve for Leaks

Hey everyone! I recently set up a smart life compatible valve on my water lines and wanted to connect it to SmartThings so that if any of my leak sensors detect water, the valve automatically closes. While the valve isn’t directly compatible with SmartThings, I managed to create a Smart Life tap to expose it as a switch within SmartThings. However, I’m having trouble adding this switch to my leak sensors for automation. I’m familiar with WebCore but can’t seem to get it to recognize the valve. Does anyone have tips or tricks on how to achieve this setup using Smart Life and SmartThings? I’d love to hear your experiences and solutions! :construction::droplet: