@RBoy is charging some sort of code access fee (loooong story…), but his work is getting some positive reviews and might support your requirements.
See:
NB:
I’m just suggesting the first published solution that comes to mind and was easy to link to. There are likely a few other good ones.
If there are alternatives (free or otherwise), then the Community will point them out here, I presume. There are a good variety of contributors here.
And I think we’ll soon have a SmartApp / SmartDevice Type recommendation library, FAQs, etc…