Error Message: endpoint_deprecated....

Posted on
Sat Jan 30, 2021 3:51 pm
decahill offline
Posts: 7
Joined: Nov 16, 2009
Location: Arizona

Error Message: endpoint_deprecated....

Just started receiving this error today:

Tesla EV Control Fetching vehicles...
Tesla EV Control Debug Token expired - renewing oauth token for 44 days...
Tesla EV Control Debug Pre-JSON: {"response":"endpoint_deprecated:_please_update_your_app."}
Tesla EV Control Error 'created_at'
Tesla EV Control Error Error creating connection
Tesla EV Control Error Plugin version: 1.0.19

It then fails to get any information obviously because it no longer has the vehicle name to search.

Has the Tesla API been deprecated?

Posted on
Sat Jan 30, 2021 4:03 pm
decahill offline
Posts: 7
Joined: Nov 16, 2009
Location: Arizona

Re: Error Message: endpoint_deprecated....

FYI: Just found this on another Tesla API author's site:

https://tesla-api.timdorr.com/api-basics/authentication

It appears that Tesla has deprecated user/password token in favor of their OAuth2 implementation only that was rolled out late last year. They supported both forms until this morning.

more info here:
https://github.com/mlowijs/tesla_api/pull/38

Posted on
Mon Feb 01, 2021 7:10 am
johnofcamas offline
Posts: 36
Joined: Jan 30, 2014

Re: Error Message: endpoint_deprecated....

I've filed an issue on the Plugin's Github page:
https://github.com/howartp84/TeslaControl/issues/2

Posted on
Mon Feb 01, 2021 3:24 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Error Message: endpoint_deprecated....

Hi both.

Until Indigo brings out OAuth support, i'm not aware we can integrate plugins with any OAuth services so there's nothing I can do about this at the moment.

Peter

Posted on
Mon Feb 01, 2021 10:02 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Error Message: endpoint_deprecated....

Homebridge has the same issue as of today.

JP

Posted on
Mon Feb 08, 2021 12:49 pm
rjds offline
Posts: 6
Joined: Jul 24, 2020

Re: Error Message: endpoint_deprecated....

The Smarthings Hubitat app and device is also reporting the same

Posted on
Tue Feb 23, 2021 4:30 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Error Message: endpoint_deprecated....

howartp wrote:
Hi both.

Until Indigo brings out OAuth support, i'm not aware we can integrate plugins with any OAuth services so there's nothing I can do about this at the moment.

Peter

@Matt @Jay

Am I correct in this general belief, ie we can't integrate with OAuth without Indigo doing something or me hosting a web endpoint somewhere that takes users credentials?

Posted on
Tue Feb 23, 2021 5:12 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error Message: endpoint_deprecated....

Web services that have a published API will usually have a developer portal that can be used to obtain OAuth tokens. That's what the Slack and Twilio plugins use. Or a PIN-based mechanism like Ecobee uses. But if neither of those are available, then you'll need a webserver that can catch the callback.

I experimented briefly with using ngrok to implement something that would work, but never completed it.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Feb 23, 2021 5:16 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Error Message: endpoint_deprecated....

howartp wrote:
howartp wrote:
Hi both.

Until Indigo brings out OAuth support, i'm not aware we can integrate plugins with any OAuth services so there's nothing I can do about this at the moment.

Peter

@Matt @Jay

Am I correct in this general belief, ie we can't integrate with OAuth without Indigo doing something or me hosting a web endpoint somewhere that takes users credentials?


That's actually a complex question. OAuth has two sides: the client side and the server side. One OAuth client flow (a client, in this case the plugin asks a service to authenticate, in this case Tesla, which then would provide tokens back via HTTP redirects to use with their API) is tricky because Indigo Plugins can't do the necessary redirection like a web-based client can. I'm a bit surprised that Tesla doesn't allow you to generate tokens from their UI that can be used with their API in circumstances where this is the case because the standard flow is heavily dependent on several HTTP redirects. This is something that we want to look at in the future but it's not part of the work we're doing for the next feature release.

What we are implementing for the next feature release is the OAuth server side, to support integration FROM other services like Alexa and Google Home using customers Indigo Accounts to authenticate access to their Indigo Server. Users will also be able to generate tokens for use with the REST API for services that don't/can't do the http redirect dance required for that kind of authentication. But this is the server side OAuth implementation, not a client side implementation.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jun 23, 2021 7:42 am
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Error Message: endpoint_deprecated....

Now that 2021.1 is out, any hope of getting this plugin to work again?

JP

Posted on
Wed Jun 23, 2021 10:06 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Error Message: endpoint_deprecated....

Again, I don't know any specifics about the Tesla API.

However, I believe with the addition of the ability for a plugin to handle HTTP requests, it may be possible for a plugin to implement a full OAuth client API since the necessary redirects should be possible. I'll leave it up to @howartp to look into it though I will provide as much assistance as I can with his investigation if he should choose to do so.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jun 23, 2021 10:27 am
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Error Message: endpoint_deprecated....

Thank you, Jay. Will keep my fingers crossed.

JP

Posted on
Wed Jun 23, 2021 11:06 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Error Message: endpoint_deprecated....

I’ll certainly be looking at it.

Jay, I’ll be in touch.


Sent from my iPhone using Tapatalk Pro

Posted on
Wed Jun 23, 2021 9:29 pm
GlennNZ offline
User avatar
Posts: 1555
Joined: Dec 07, 2014
Location: Central Coast, Australia

Error Message: endpoint_deprecated....

Hi

I use the same api code for my Tesla battery plugin. Accesses the same info and has been doing so for a while - successfully!

Tesla been annoyingly changing API access/login, left and right. But is currently working. They removed headers, then added them back in and then added a captcha code (which will stuff up everyone) - that’s subsequently been removed.

Have a look at my implementation; which is basically the website you linked to above using Oauth, getting token and reusing etc.

Glenn


Sent from my iPad using Tapatalk
Last edited by GlennNZ on Wed Dec 29, 2021 2:59 pm, edited 1 time in total.

Posted on
Tue Dec 28, 2021 3:23 pm
kennybroh offline
Posts: 531
Joined: Dec 13, 2009
Location: Baltimore

Re: Error Message: endpoint_deprecated....

Any update?

Who is online

Users browsing this forum: No registered users and 2 guests