onokje / node-red-contrib-tesla

Node red nodes to control Tesla vehicles and devices
MIT License
20 stars 11 forks source link

Error 404 #62

Open kierenblack opened 1 year ago

kierenblack commented 1 year ago

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

PhotonHebs commented 1 year ago

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.

onokje commented 1 year ago

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 :)

paede81 commented 1 year ago

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

hitnrun30 commented 1 year ago

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

demod-au commented 1 year ago

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.

hitnrun30 commented 1 year ago

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

PhotonHebs commented 1 year ago

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.

hitnrun30 commented 1 year ago

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?

Lineflyer commented 1 year ago

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.