according to this it looks like what you want to do is not possible it will work from the device page but not from a dashboard..
I took a different approach. I set-up a virtual thermostat and added that to my dashboard along with some CSS to remove thermostat controls that are not applicable to Tesla. I then have rules that send the appropriate commands to the Tesla driver based on change made to the virtual driver and visa vera e.g. climate is shut-off in Tesla (Driver, Physically, Tesla Mobile App, etc) than virtual Therm is updated to match.

If anyone wants copy of Dashboard JSON and CSS let me know and I'll post to Google Docs
Yea I figured I would have to create virtual buttons for the dashboard for each seat and then use rules to send appropriate command to Tesla driver. Maybe some future release HE will fix this as they clearly have the capability with other templates where a menu option is presented e.g Thermostat template (on, off, auto, heat, cool, etc.)
Or maybe a number for each seat and then a button to send it. I typically don't mess with the seats as when I turn on the climate it sets the seats back to what they were last time anyway. I don't even use the dashboard. I tell Alexa to ask "my tesla" to turn on the climate a few minutes before I am ready to.leave as it heats up fast. Or I use my Garmin watch to turn in on.
Hey there. I've been using a customised version of Trent's code for a while now. Wondering if you figured a way around the token expiring every 45 days. Have you found a way of gracefully renewing this?
My token seems to not expire as I use a isernane and password login. Maybe because the same login is used by teslafi which.also automatically renews it.
more on the token,, i had the same problem recently not sure what was going on but could not get log in to work.. As a workaround added a new input to allow you to directly input a new token. When if finds it it refreshes the token then clears the parameter out.. It worked for me as i got token from telsafi.
Also added code to auto turn off debugging after 30 minutes in the driver.
new version of github.
It looks like my Token has expired so I installed your new version and copy/pasted my Tesla API token from TesaFI. When I paste the token into your new App it returns a message "Please check your username and password" I've triple checked the user-name & PW is correct but no go. Any ideas what might be wrong?
you have to paste the token then click off the field before hitting next.. that is just the way the fields work in hubitat.. the info is not input till you click away
@kahn-hubitat Unfortunately that did not solve the problem as clicking next is storing the new token as I see the new token stored correctly when I click on the gear icon in the App.
ya its broken for now remove the line that tries to update the token .. something is broken with that fx in hubitat
ie remove
device.updateSetting("newAccessToken",[value:"",type:"string"])
i think it doesnt work because it is not a device.
o.k. .. I will give that a try. Thanks. As FYI .. This is what the logs show when attempting to authenticate
@kahn-hubitat .. commenting out the line worked. App is not communicating and updating status correctly. Thanks for the super fast responses and support of this code.
new version on github.. fixed the clear access token line.
or you can replace the line you removed with this..
app.clearSetting("newAccessToken")
Hello Again All 
I was updating my Tesla Connect code with the latest from Kahn (Thanks Khan) and for some reason, my cars do not appear in the list with logging into the new app.
Any Ideas
Thanks
Quantumchaos
I'm assuming this does not work with MFA 2-factor, since it does not ask for an authenticator code and no cars show up?
question for the peeps .. anyone know if you can do the schedule departure or just schedule to turn heat on in the api.. we were going to dinner reserv (outdoor yurt) and wanted to schedule it and didnt feel like going to the car. App does not have that functionality..
Was able to schedule a one time turn on the heat at a sepecific time through teslafi.. But would be nice if I could do such functionality through the hubitat tesla dashboard i have configured.
thanks
The Tesla app doesn't do let you schedule either of those, so I don't think it's exposed via the API at this time. You can just turn on the HVAC with the API, which is what TeslaFi is doing.











