node-red-contrib-tesla icon indicating copy to clipboard operation
node-red-contrib-tesla copied to clipboard

Error 404

Open kierenblack opened this issue 1 year ago • 9 comments

As of this morning I am getting a 404 error. I have added a new refresh token but that hasn't fixed the problem.

kierenblack avatar Apr 28 '23 00:04 kierenblack

I'm getting 404 for chargeState calls now for some reason. After playing around, I have noticed that vehicleData is working fine, so now I'm using that instead to get the data I need. chargeState has been working fine for months, not sure why it has stopped working now. I seem to be able to start/stop charge, lock/unlock just fine too. Did Tesla change the API? I tried refreshing the token, waiting for vehicle to repopulate, even tried it in an entirely new instance of node-red.... all the same, chargeState gives a 404 error and vehicleData works just fine.... strange.

PhotonHebs avatar Apr 30 '23 07:04 PhotonHebs

It's possible Tesla changed the API indeed. I haven't updated this project in a while, I'll probably have more time coming summer :)

onokje avatar Apr 30 '23 10:04 onokje

Yes Tesla changed the API. See details and workaround here: https://github.com/bogosj/tesla/pull/98 and here: https://github.com/bogosj/tesla/commit/0d6e63ee90c9b01ed7181c6da73ba767abcd47c6

paede81 avatar May 01 '23 21:05 paede81

What can we do till then, is there an updated fork somewhere

hitnrun30 avatar May 02 '23 23:05 hitnrun30

Most (all?) the data is still returned using the "vehicleData" command. I was using "chargeState" msg.payload.battery_level, but have switched to "vehicleData" msg.payload.charge_state.battery_level, for the same info.

demod-au avatar May 03 '23 00:05 demod-au

I use it for charge state and climate. At least I can get the info. But if I want to set something I'm sol

hitnrun30 avatar May 03 '23 09:05 hitnrun30

I use it for charge state and climate. At least I can get the info. But if I want to set something I'm sol

I can still set charging amps, climate control, locks and charging just fine. I did notice that if I sent too many requests to chargeState (getting the 404 response) then I couldn’t set post requests sometimes. Now that I have stopped using chargeState and use vehicleData instead, the other post requests work just fine.

PhotonHebs avatar May 03 '23 09:05 PhotonHebs

I use it for charge state and climate. At least I can get the info. But if I want to set something I'm sol

I can still set charging amps, climate control, locks and charging just fine. I did notice that if I sent too many requests to chargeState (getting the 404 response) then I couldn’t set post requests sometimes. Now that I have stopped using chargeState and use vehicleData instead, the other post requests work just fine.

I need to do 4 things, Stop Charging, Unlock Charge Port, Unlock Doors and set the scheduled departure, how do I do that if I only get vehicle data?

hitnrun30 avatar May 03 '23 15:05 hitnrun30

Can someone update their recent experience with this "404" problem?

I just started using this node-red addon and getting data via vehicleData works just fine. I do however sometimes (!) get 404 responses when using start Charge or stopCharge. If I try again it works sooner or later.

Lineflyer avatar Jul 01 '23 19:07 Lineflyer