renault-api icon indicating copy to clipboard operation
renault-api copied to clipboard

Some feedback on Captur and Zoe

Open jumpjack opened this issue 3 years ago • 1 comments

  1. I am getting different ouput for Captur Plugin and Zoe 50 (see below), instead I should receive same amount of data for Captur, as they are all available on the server.

  2. Fuel autonomy and Fuel quantity should not be available for Zoe, as they refer to gasoline.

  3. There is also a gpsDirection parameter available now in "location" endpoint, but I didn't test it while driving, and I always get "null" using my app, so I don't know if "null" means "stopped" or "not implemented yet"...

  4. About HVAC, also these data are available from server:

  • globalTargetTemperature (the one set by user onboard; always auto-reset to 21° on Captur, regardless of user settings)
  • targetTemperature (target temperature for manual remote start; cannot be set in official app; app guide says it's fixed to 20°C and not editable)
  • startDateTime (single start date for next HVAC start, format YYYY-MM-DDTHH:MM:SSZ)
  • socThreshold (minimum battery % needed for remote HVAC start to be available) (20% for Captur, 40% for Zoe)
  1. There is a battery-inhibition-status endpoint available (reference):
  • result for Zoe 50: "batteryInhibitorStatus": 2
  • result for Captur:
{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}
  1. It looks like actions/battery-inhibition endpoint exists , but I have no idea of payload structure; but I get a "400 - not readable" error rather than "404 - not found" error, so it should exist.

CLI outputs:

Captur:

C:\>renault-api --vin VF1xxxxxxxxx status
lock status: VNEXT an internal error occured while processing request : 403 FORBIDDEN
res state: Access is denied for this resource
----------------  -------------------
Total mileage     24422.07 km
Fuel autonomy     244.0 km
Fuel quantity     23.0 L
GPS Latitude      41.xxxxxxxxx
GPS Longitude     12.xxxxxxxxxxxx
GPS last updated  2022-04-28 08:05:12
----------------  -------------------

Zoe 50:

C:\>renault-api --vin VF1xxxxxxxxxx status
lock status: VNEXT an internal error occured while processing request : 403 FORBIDDEN
res state: Access is denied for this resource
----------------  ------------------------------
Battery level     99 %
Last updated      2022-04-28 10:01:00
Available energy  49 kWh
Range estimate    324 km
Plug state        PlugState.PLUGGED
Charging state    ChargeState.CHARGE_IN_PROGRESS
Charge rate       0.00 kW
Time remaining    10 min
Charge mode       always
Total mileage     18191.69 km
Fuel autonomy     0.0 km
Fuel quantity     0.0 L
GPS Latitude      41.xxxxxxxxxxxxx
GPS Longitude     12.xxxxxxxxxxx
GPS last updated  2022-04-28 08:37:37
HVAC status       off
----------------  ------------------------------

jumpjack avatar Apr 28 '22 08:04 jumpjack

Can you provide fixtures and corresponding PRs? See sample PR on #522

epenet avatar Apr 28 '22 08:04 epenet