You could use Spruce Irrigation System (www.spruceirrigation.com) and a motion sensor to achieve this. The problem however is that the sprinkler would come on every time there is motion, even if there is a false trigger, but we could come up with virtual switches that disable the motion based sprinkler trigger - this can be used during parties or special occassions , etc… the motion can also be set up to be disabled for a few minutes after any door is opened…So there is a lot we can do… Where are you located? I offer services to create smart home solutions based on SmartThings platform (www.smart-dots.com).