-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/actions/charging-start -> {"code":"err.func.wired.invalid-body-format","message":"Body has at least one wrongly formatted value"} #1247
Comments
Forget charging-start, you must use "actions/charge-mode" with this payloads: Start charging:
Stop charging:
And you will need at least one charging schedule already active. |
Thank you very much!! Does that mean that if I want to start charging (by plugging), I need to call "always_charging" first, or otherwise it won't start charging, because it's on "schedule_mode" since the last time I requested to stop charge? |
Good question. I didn't verify that, I always stopped by hand directly on the car, but I think you are right: if you use this method, you'll have to switch back to "always" once you disconnect. But the real problem is that your command is not accepted at all, while usually it is accepted but not executed because improperly formatted. I just noticed that I am receiving same error on my test page (warning: use it at your own risk, use a temporary password!): "start" is accepted, "stop" is not, hence something changed in the api: or "stop" has been changed to something else, or there is a new endpoint like "charging-stop"; I tried some new random names, but no luck. |
My new discoveries: { PARAMETER value --> server response:
1 --> Action must be 'start' but was 'pause' |
Thank you for your responses! But sorry - I'm not sure I understand your last discovery. Are you saying that we can call "ChargingStart", but instead of "start" or "stop", we can put "0", "1", "2", etc... ? So I guess "0" or "start" works for starting, but you couldn't find one that works for stopping. Thank you again. |
As far as I can understand, you can use "raw values" 0, 1 or 2, or the equivalent strings "start", "pause" and "resume", but "start" is only for /actions/charging-start endpoint, I am trying to figure out which is the right one for pause and resume. |
Ok here it is (but no tested yet): /commerce/v1/accounts/ACCOUNT/kamereon/kcm/v1/vehicles/VIN/charge/pause-resume payload: |
Hello,
I've been trying a number of ways to call
/actions/charging-start
(the first action that I'm trying to call), but I'm always getting an error. TheGET
requests work well.I'm not sure if I'm missing some header, or missing something in the payload, but here's a minimal example:
I also tried
application/json
as the Content-type, and removing/adding spaces in the JSON, also different cURL options, etc...But I always get:
Any idea why?
It seems consistent as per the documentation:
https://renault-api.readthedocs.io/en/stable/endpoints.html#actions-charging-start
And as per the payload in this comment:
#763 (comment)
So, I'm not sure what I'm doing wrong!
Thank you!
The text was updated successfully, but these errors were encountered: