Tesla EV Control - status check fails

Posted on
Wed Sep 18, 2019 10:02 am
palantir offline
Posts: 73
Joined: Sep 24, 2014

Tesla EV Control - status check fails

Howard,

I installed the Tesla EV plugin this weekend. All working find and I quickly had my charge status added to my dashboard. All good. I then scheduled a check every 30 mins to retrieve the battery charge status from the car.

On Monday I noticed that the charge state was not being updated. My Indigo logging shows the following:

Schedule Check battery
Tesla EV Control Tesla request charge_state for vehicle 9xxxxxxxxxxxxxx44: Initialising
Tesla EV Control Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 210, in vehicleStatus
File "plugin.py", line 214, in vehicleStatus2
KeyError: (u'9xxxxxxxxxxxxxx44',)

I enabled debugging. No additional data is shown. I checked the username password for my Tesla account. All looks fine but I am no longer able to get updates from the car.

Any clue what I'm doing wrong?

Thanks,
Ronald

Posted on
Fri Sep 20, 2019 2:27 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control - status check fails

Hi Ronald

What version are you on?

I don’t think the store is up to date.

1.0.13 is latest


Sent from my iPhone using Tapatalk Pro

Posted on
Sat Sep 21, 2019 7:56 am
Alain offline
Posts: 88
Joined: Apr 19, 2008

Re: Tesla EV Control - status check fails

Hi - I have been having the same issue, I have upgraded to version 13 and still no luck.

Any ideas?

Thanks
Alain

Posted on
Sat Sep 21, 2019 8:02 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control - status check fails

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


Sent from my iPhone using Tapatalk Pro

Posted on
Sat Sep 21, 2019 8:17 am
Alain offline
Posts: 88
Joined: Apr 19, 2008

Re: Tesla EV Control - status check fails

I have upgraded to 13 and sill seeing the same issue, unfortunately.
Thanks
Alain

Posted on
Sat Sep 21, 2019 12:50 pm
Alain offline
Posts: 88
Joined: Apr 19, 2008

Re: Tesla EV Control - status check fails

Got it running. Had to re-open the Device that is the vehicle, re-select the name of the vehicle, and all was good form then on.

Great plugin - thank you!

Alain

Posted on
Mon Sep 23, 2019 1:42 am
palantir offline
Posts: 73
Joined: Sep 24, 2014

Re: Tesla EV Control - status check fails

Hmm. Not for me, this fix.

1) I double-checked and also re-loaded the plugin from Github. It's definitely 1.0.13
2) I have three devices created: Battery Level, Remaining Miles & Minutes to Full. Similar to what Alain wrote, the Vehicle car was unselected from all of them. No clue why. So I reselected the Car (my Model3 is properly listed there so there is comms) and then save.
3) I then deleted all three devices and reloaded the plugin, basically as if I first installed it. Still no luck; same symptom showing.

Here's my debug logging when I try to update data:

Schedule Check battery
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Error HTTP Error 408: Request Timeout
Tesla EV Control Error Timeout retrieving status: charge_state

Tesla EV Control Debug Traceback (most recent call last):
File "plugin.py", line 235, in vehicleStatus2
self.response = vehicle.data_request(statusName)
File "/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/TeslaControl.indigoPlugin/Contents/Server Plugin/teslajson.py", line 128, in data_request
result = self.get('data_request/%s' % name)
File "/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/TeslaControl.indigoPlugin/Contents/Server Plugin/teslajson.py", line 141, in get
return self.connection.get('vehicles/%i/%s' % (self['id'], command))
File "/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/TeslaControl.indigoPlugin/Contents/Server Plugin/teslajson.py", line 67, in get
return self.post(command, None)
File "/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/TeslaControl.indigoPlugin/Contents/Server Plugin/teslajson.py", line 76, in post
return self.__open("%s%s" % (self.api, command), headers=self.head, data=data)
File "/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/TeslaControl.indigoPlugin/Contents/Server Plugin/teslajson.py", line 94, in __open
resp = urlopen(req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 408: Request Timeout

Tesla EV Control Debug Incomplete
Tesla EV Control Debug


Feels like it's a time-out thingy, communicating with the car. When I first installed the plugin, the car was charging. Now it is not charging and probably sleeping, I woke up the car with the Tesla app and things started working - sort of. It's not consistently updating the charge state but I get data regularly. And now and then an HTTP Error 408 as well...

Also, the car is in my underground parking garage so signal is not superb. Sometime the Tesla app cannot contact the car; the next time it typically works.

Perhaps this helps pinpointing the root cause?

Many thanks,
Ronald

Posted on
Mon Sep 23, 2019 10:28 am
Alain offline
Posts: 88
Joined: Apr 19, 2008

Re: Tesla EV Control - status check fails

I am getting the same error as Ronald today.

Alain

Posted on
Mon Sep 23, 2019 10:50 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control - status check fails

How many of you have multiple devices created?

The plugin expects one device per vehicle; there’s zero point having a ‘battery’, ‘range’ and ‘climate’ device.

That will be contributing to some issues, or to put it another way, there is no testing or planning to handle multiple devices per vehicle so could be inadvertently causing issues.

Multiple cars is fine, that’s handled.


Sent from my iPhone using Tapatalk Pro

Posted on
Mon Sep 23, 2019 10:55 am
Alain offline
Posts: 88
Joined: Apr 19, 2008

Re: Tesla EV Control - status check fails

I only have one device, and I am seeing the error.
Alain

Posted on
Mon Sep 23, 2019 12:00 pm
Alain offline
Posts: 88
Joined: Apr 19, 2008

Re: Tesla EV Control - status check fails

Interesting - I noticed when I opened my iPhone Tesla app it wouldn't connect. I had to sign out and sign back in.

And once I did that, my Indigo plugin started working again.

What's the link?

Alain

Posted on
Mon Sep 23, 2019 12:04 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Tesla EV Control - status check fails

Possibly frequency of check?

Particularly if (not for you) you’re checking the same vehicle three times.

I have mine set to check every 5 minutes without issue.


Sent from my iPad using Tapatalk Pro

Posted on
Tue Sep 24, 2019 7:57 am
palantir offline
Posts: 73
Joined: Sep 24, 2014

Re: Tesla EV Control - status check fails

When I say your post I changed my polling interval to 5 mins as well. Just to let you know: this seems to give me fewer 408 timeouts, but they are still there:

24 Sep 2019 at 14:40:00
Schedule Tesla Update Charge Info
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Data received
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Completed
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Data received
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Completed
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Data received
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Completed

24 Sep 2019 at 14:41:56
Z-Wave received "Luminance Living" sensor update to 1076 lux
Z-Wave received "Luminance Office" sensor update to 141 lux

24 Sep 2019 at 14:45:00
Schedule Tesla Update Charge Info
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Error HTTP Error 408: Request Timeout
Tesla EV Control Error Timeout retrieving status: charge_state

Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Error HTTP Error 408: Request Timeout
Tesla EV Control Error Timeout retrieving status: charge_state

Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Error HTTP Error 408: Request Timeout
Tesla EV Control Error Timeout retrieving status: charge_state


24 Sep 2019 at 14:48:29
Z-Wave received "Luminance Office" sensor update to 158 lux

24 Sep 2019 at 14:50:00
Schedule Tesla Update Charge Info
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Error HTTP Error 408: Request Timeout
Tesla EV Control Error Timeout retrieving status: charge_state

Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Data received
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Completed
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Initialising
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Data received
Tesla EV Control Tesla request charge_state for vehicle 9489213252643648: Completed

You see three Inits as I do three calls to update
- minutes_until_full
- battery_range
- battery_level

When debugging is on I see that on each call, all attributes are retrieved so I concluded that I should be able to retrieve all three values in one call. I however haven't figured out how to do that yet. Should I?

Thanks,
Ronald

Posted on
Tue Sep 24, 2019 8:29 am
palantir offline
Posts: 73
Joined: Sep 24, 2014

Re: Tesla EV Control - status check fails

Ok, more insight...

Car was full an hour ago so I disconnected the charge-cable. The 5 minute polling continued. I had 3 successful updates and the 4th one failed. 5th, 6th & 7th update succeeded again and from there onwards I only got timeouts...

Based on this, there seems to be a correlation between the car charging & the updates working ok. Once charging stops, it stops updating after appr. 15-20 minutes...

Hope this helps!
Ronald

Posted on
Thu Oct 24, 2019 3:18 pm
palantir offline
Posts: 73
Joined: Sep 24, 2014

Re: Tesla EV Control - status check fails

Howartp - any further ideas?

Thanks,
Ronald

Who is online

Users browsing this forum: No registered users and 1 guest