-
Notifications
You must be signed in to change notification settings - Fork 6
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
GetBatteryStatus is not working #55
Comments
I confirm that I'm observing the same issue. Applied the change proposed by @MCP-KC (thanks for your post!) and see the same outcome -> missing some (very important!) values. My car is charging now, I get this response: |
Hi you both, Please update to the most recent version. cu |
Thank you @fungus75 for your quick reaction. I have been observing this issue for the last few days. My issue was that I stopped getting batteryStatus information even through the My Renault App (I posted that before). The system was sending me a JSON which was correctly parsed using the change provided by @MCP-KC but some values were not sent by the API. So I decided to write to Renault and ask them why my app was not working. Two things happened today:
Now, I don't know if this is only affecting me (or some limited group of users) now. Would be interesting to hear if others observe the same. |
Hi gik007, |
I don't have much experience about how Renaults APIs work and how (un)stable they are. Is this a common phenomenon? Do they often change things back and forth? If GetBatteryStatus is now changed back, how high is the chance that we'll end in a never-ending cycle of changing it? |
This was quite stable so far. Let's see, if the step back has no disadvantages for Renault. Then it will stay. |
Ok, Hopefully fixed by now. I check if the node data.attribute is present. If so, use that value otherwise try to read old values. |
Dear fungus75,
The JSON data format has been changed for battery-status (like in GetLocation).
it is now on a ZOE R135 Z.E.50 (2020)
non charging:
{"data":{"id":"VF1AG000365xxxxxx","attributes":{"timestamp":"2024-04-26T19:34:00Z","batteryLevel":87,"batteryAutonomy":275,"plugStatus":0,"chargingStatus":0,"chargingRemainingTime":2555}}}
charging:
getBatteryStatus:{"data":{"id":"VF1AG000365xxxxxx","attributes":{"timestamp":"2024-04-27T07:24:05Z","batteryLevel":87,"batteryAutonomy":274,"plugStatus":1,"chargingStatus":1,"chargingRemainingTime":135}}}
Therefore, these rows have to be adjusted to:
var charge_level =attributes.data.attributes.batteryLevel;
var plugged =attributes.data.attributes.plugStatus==1;
var charging =attributes.data.attributes.chargingStatus==1;
var remaining_range=attributes.data.attributes.batteryAutonomy;
var remaining_time =attributes.data.attributes.chargingRemainingTime;
I don't get values for battery temperature, charging power, battery capacity and battery available energy.
I have changed and tested it on my iobroker, but this info is for the benefit of the community.
Thanks!
The text was updated successfully, but these errors were encountered: