You might also find the following of interest.
This one is specifically about setting up complex rules:
(This is a wiki post: feel free to edit it or add to it as needed. Also, I can’t take any screenshots since I can’t use the app at this time due to its incompatibility with voiceover, so feel free to add screenshots where they would be helpful.)
At one point, one of the biggest advantages of using the SmartThings platform was the wide variety of devices that it supported. However, by the end of 2017 several competing platforms had caught up in that regard.
Where SmartThings still holds a significant advantage over some of the other low-cost home automation solutions is in the ability to really build really complex rules in a fairly simple manner. You won’t have to be a programmer, but you may need the help of other community members to get the logic constructed just right.
Also, you …
And you might also want to take a look at the quick browse lists in the community – created wiki. They are a much faster way of searching the forum, particularly for project reports and custom code.
http://thingsthataresmart.wiki/index.php?title=How_to_Quick_Browse_the_Community-Created_SmartApps_Forum_Section
Also this, if you haven’t seen it already:
Hi,
I’d like to document on this forum a list of devices which have the ability to accept input from other devices.
I personally am thinking of buying a Motion sensor called a Dakota which can output when it detects motion via Dry Contacts.
I know of some already to start us off:
Ecolink Z-Wave Garage Door Tilt Sensor
Schlage Rs100hc Z-wave Door & Window Sensor
If you are ok with cutting off a water sensor and cabling, this seems pretty much the cheapest option I can find globally is the Tuya water leak sensor: https://m.aliexpress.com/item/1005004384160139.html
(Credit for finding the Tuya goes to legend @Paul_Oliver )