This could be done with webCoRE if you’re willing to get your feet really wet.
Webcore is a complicated rule Creator that you can basically do anything with using SmartThings devices. They also have a community website that can help you with anything you need. Here is the link for that: