Tesla EV Control

Posted on
Sun Apr 22, 2018 6:14 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Tesla EV Control

Introducing the Tesla EV Control plugin

This plugin was originally written by gglockner in Jan 2017 but, whilst very well written, it was incomplete and hasn't been touched since it was published.

I've therefore taken it on and finished if off using his plugin as the core.

For those wanting to jump straight in, the latest download link is always at the bottom of this post.

Current Features
  • Display states for all available data from Tesla (self-maintaining, so any new available states will automatically appear)
  • Set Valet Mode
  • Set Charge Modes
  • Stop/Start Charging inc open charge port
  • Flash Lights
  • Honk horn
  • Lock/Unlock doors
  • Open Trunk/Frunk
  • Set and stop/start HVAC
  • Move pano roof
  • Additional states for Distance from Home/Work - for triggering events

Coming soon
  • Provide specific trigger events

Planned for later
  • Unknown

Installation notes
This plugin creates a number of Actions under "Tesla EV Control actions". You can combine these with your own schedules, triggers and control panel buttons or simply execute them from the Indigo client.

Huge thanks to Pete for trusting me with his login details to test this plugin as sadly I don't have a Tesla - I did threaten to Summon it but I'm told the car still needs the key to work. :(

When you install the plugin, you'll need to create a new device called Tesla EV Control > Tesla Vehicle for each car you have. When you create it, you can choose which state to display in the Indigo UI - this defaults to battery_level but you can change to any existing state.

Download link - v1.0.04

TeslaEVControl.IndigoPlugin

Those who have seen me around the forums will know I usually participate in the forums at least daily if not several times; however please be aware this is usually from my iPhone when I'm away from my desk. I will endeavour to support this plugin as quickly as possible, but (as with everyone) I have busy periods of the year when I'm simply not at my desk long enough to do all I'd like to, including fixing or updating plugin code, even if you see me actively responding to other threads.

Enjoy!

Peter

Posted on
Sun Mar 17, 2019 4:33 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control

v1.0.9 BETA now available.

  • Adds support for recent new commands including seat and steering wheel heaters, opening the trunk/frunk and (re-)setting the valet PIN.
  • Adds support for new vehicle data including UI settings and physical vehicle config

https://github.com/howartp84/TeslaContr ... /tag/1.0.9

Please let me know if any problems before I release it on the live channel and Plugin Store.

Peter

Posted on
Sun May 26, 2019 3:26 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control

v1.0.10 now available on the store.

All it does is traps the HTTPError 408 timeout, but at the same time it shows in the log what it was doing at that time.

Posted on
Sun Jul 28, 2019 2:45 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control

Please can folk try v1.0.13

https://github.com/howartp84/TeslaControlBETA/releases/tag/1.0.13

This is now using the latest API tokens - until now i've been using Greg Glockner's (original plugin author) latest API token, but I didn't realise he had a private link versus the one everyone else uses, so when he stopped updating the plugin, the token stopped updating as well.

Also adds more error handling and debugging.

Replies re 408 errors in this thread please: viewtopic.php?f=281&t=22510

Peter

Posted on
Sun Nov 10, 2019 11:28 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control

v1.0.14 pushed to Github

https://github.com/howartp84/TeslaControlBETA/releases/tag/1.0.14

Added logging and fix for KeyError (u'1234567890')

Posted on
Tue Nov 12, 2019 4:23 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control

v1.0.16 pushed to Github

https://github.com/howartp84/TeslaControlBETA/releases/tag/1.0.16

I reckon this is now pretty stable, including trapping and responding (with wake_up command) to any timeouts.

Please can everyone try it and report back, before I remove the "Live" branch and replace it with this one on the Plugin Store.

Peter

Posted on
Sat Nov 16, 2019 3:13 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control

v1.0.17 now released and pushed to the plugin store.

Combines all beta fixes from v1.0.10 onwards into a stable release.

  • Fixes HTTP 408 Timeout error
  • Adds supports for multi-value states (previously reported as "Skipping JSON Dict")
  • Fixes KeyError() when Tesla decide to change vehicle IDs
  • Wakes up the car whenever it gets a timeout/unavailable message

I'm getting rid of the TeslaControlBeta project on github and using the "Pre Release" tags on the main TeslaControl project in future; saves me running two copies of code and getting confused.

Posted on
Fri Apr 17, 2020 1:23 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control

v1.0.19 now released and pushed to the plugin store.

  • Fixes timeout/error when saving Device
  • Reduces logging due to constantly reinitialising states
  • Reworks refreshing of all data, using new single command available in API
  • Adds support for setting/activating Speed Limit mode
  • Adds logging for when UI states are out of sync - for future debugging

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest

cron