Skip to content
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

Add validation methods for Charge Schedule #157

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

epenet
Copy link
Collaborator

@epenet epenet commented Jan 20, 2021

This is related to hacf-fr/hassRenaultZE#105

@epenet epenet force-pushed the schedule-validation branch 2 times, most recently from 1f1f63f to bd84a28 Compare January 25, 2021 09:33
@epenet epenet added the enhancement New feature or request label Jan 25, 2021
@epenet
Copy link
Collaborator Author

epenet commented Jan 31, 2021

@PysX I have received some information that maybe carGateway could be useful to identify different car functionnalities.

Could you post the results of this endpoint and confirm what it looks like on Zoe50?
poetry run renault-api --json http get "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v2/cars/{vin}"

On my Zoe40, it comes up as

{
    "data": {
        "type": "Car",
        "id": "xxxxx",
        "attributes": {
            "vin": "xxxxx",
            "vehicleId": 55722,
            "batteryCode": "BT4AR1",
            "bin": null,
            "brand": "RENAULT",
            "canGeneration": "C1A",
            "carGateway": "GDC",
            "color": null,
            "dealerId": null,
            "deliveryCountry": "FR ",
            "deliveryDate": "2017-08-11T00:00:00.000+0000",
            "deviceSerialNumber": null,
            "electricityUnitCost": null,
            "energy": "electric",
            "engineType": "5AQ",
            "familyCode": "X10",
            "firstRegistrationDate": "20170801",
            "fuelUnitCost": null,
            "gearbox": "AUTOMATIC",
            "modelCode": "B10",
            "modelCodeDetail": "X101VE",
            "modelName": "ZOE",
            "modelYear": null,
            "navigAssistCode": null,
            "nickname": null,
            "packId": null,
            "packManufacturingDate": null,
            "packNominalCapacity": null,
            "packType": null,
            "pictureUrl": null,
            "radioType": "RAD37A",
            "region": "EU",
            "registrationCountry": "FR ",
            "registrationNumber": "REG-NUMBER",
            "sourceReferenceId": null,
            "tcuCode": "TCU0G2",
            "temperatureUnit": null,
            "upholstery": null,
            "vehicleSourceReference": null,
            "vehicleSourceType": null,
            "vehicleType": null,
            "versionCode": "INT MB 10R",
            "versionName": null,
            "privacyMode": "off",
            "privacyModeUpdateDate": null,
            "svtFlag": false,
            "svtLastUpdateTime": null,
            "svtBlockFlag": false,
            "svtBlockLastUpdateTime": null
        }
    }
}

@PysX
Copy link
Contributor

PysX commented Jan 31, 2021

@epenet , this is the result:

{
  "data": {
    "type": "Car",
    "id": "XXXXXXXXXXX",
    "attributes": {
      "vin": "XXXXXXXXXXX",
      "vehicleId": 271893,
      "batteryCode": "BT4AR1",
      "bin": null,
      "brand": "RENAULT",
      "canGeneration": "C1A",
      "carGateway": "AVN",
      "color": null,
      "dealerId": null,
      "deliveryCountry": "FR ",
      "deliveryDate": null,
      "deviceSerialNumber": null,
      "electricityUnitCost": null,
      "energy": "electric",
      "engineType": "5AQ",
      "familyCode": "X10",
      "firstRegistrationDate": null,
      "fuelUnitCost": null,
      "gearbox": "AUTOMATIC",
      "modelCode": "B10",
      "modelCodeDetail": "X102VE",
      "modelName": "ZOE",
      "modelYear": null,
      "navigAssistCode": null,
      "nickname": null,
      "packId": null,
      "packManufacturingDate": null,
      "packNominalCapacity": null,
      "packType": null,
      "pictureUrl": null,
      "radioType": "NA418",
      "region": "EU",
      "registrationCountry": "FR ",
      "registrationNumber": "",
      "sourceReferenceId": null,
      "tcuCode": "AIVCT",
      "temperatureUnit": null,
      "upholstery": null,
      "vehicleSourceReference": null,
      "vehicleSourceType": null,
      "vehicleType": null,
      "versionCode": "INT A MD 1L",
      "versionName": null,
      "privacyMode": "off",
      "privacyModeUpdateDate": "2020-02-29T12:03:44.13Z",
      "svtFlag": false,
      "svtLastUpdateTime": null,
      "svtBlockFlag": false,
      "svtBlockLastUpdateTime": null
    }
  }
}

@epenet
Copy link
Collaborator Author

epenet commented Jan 31, 2021

@PaoloTo / @chino-lu would you be able to provide some samples from the Captur and from the Twingo?
poetry run renault-api --json http get "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v2/cars/{vin}"

@PaoloTo
Copy link
Contributor

PaoloTo commented Feb 3, 2021

With the new version now I'm able to post the result for my twingo ZE:

{
  "data": {
    "type": "Car",
    "id": "XXXXXXXXXXX",
    "attributes": {
      "vin": "XXXXXXXXXXX",
      "vehicleId": 1053757,
      "batteryCode": "SANBAT",
      "bin": null,
      "brand": "RENAULT",
      "canGeneration": "T4VS",
      "carGateway": "AVN",
      "color": null,
      "dealerId": null,
      "deliveryCountry": "IT ",
      "deliveryDate": null,
      "deviceSerialNumber": null,
      "electricityUnitCost": null,
      "energy": "electric",
      "engineType": "5AL",
      "familyCode": "X07",
      "firstRegistrationDate": null,
      "fuelUnitCost": null,
      "gearbox": "AUTOMATIC",
      "modelCode": "B07",
      "modelCodeDetail": "X071VE",
      "modelName": "TWINGO III",
      "modelYear": null,
      "navigAssistCode": null,
      "nickname": null,
      "packId": null,
      "packManufacturingDate": null,
      "packNominalCapacity": null,
      "packType": null,
      "pictureUrl": null,
      "radioType": "NA437",
      "region": "EU",
      "registrationCountry": "IT ",
      "registrationNumber": "",
      "sourceReferenceId": null,
      "tcuCode": "AIVCT",
      "temperatureUnit": null,
      "upholstery": null,
      "vehicleSourceReference": null,
      "vehicleSourceType": null,
      "vehicleType": null,
      "versionCode": "INTEA1E C1P",
      "versionName": null,
      "privacyMode": "off",
      "privacyModeUpdateDate": null,
      "svtFlag": false,
      "svtLastUpdateTime": null,
      "svtBlockFlag": false,
      "svtBlockLastUpdateTime": null
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants