Unfortunately, SmartThings is not a good match to what you describe. SmartThings uses open standards but is not an open platform.
See the following for suggested alternatives: