Here is my first pass at a Tesla integration:
Device Handler
SmartApp (Cloud Connector)
I implemented only select commands and vehicle states. If you try it out, let me know what other capabilities are important to you.