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

Support of E-Tech Plug-in hybride cars #357

Closed
manu3b1 opened this issue Aug 25, 2021 · 11 comments
Closed

Support of E-Tech Plug-in hybride cars #357

manu3b1 opened this issue Aug 25, 2021 · 11 comments

Comments

@manu3b1
Copy link

manu3b1 commented Aug 25, 2021

My Megan IV E-Tech seems to not be supported by this API:

DEBUG:renault_api.kamereon:Received Kamereon response 500 on GET to https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/XXX/kamereon/kca/car-adapter/v1/cars/XXX/hvac-status?country=FR: {"type":"TECHNICAL","messages":[{"code":"err.tech.wired.kamereon-proxy","message":"Failed to forward request to remote service."}],"errors":[{"errorCode":"err.tech.wired.kamereon-proxy","errorMessage":"Failed to forward request to remote service."}],"error_reference":"TECHNICAL"}
hvac-status: Failed to forward request to remote service.

Is there any plan to do so?

Thx.

@epenet
Copy link
Collaborator

epenet commented Aug 26, 2021

The vehicle is supported, but hvac-status is not available on all vehicles (see: https://renault-api.readthedocs.io/en/latest/endpoints.html#hvac-status)

@epenet epenet added the wontfix This will not be worked on label Aug 26, 2021
@manu3b1
Copy link
Author

manu3b1 commented Aug 26, 2021

In fact, 3 services report errors:

cockpit: Failed to forward request to remote service.
location: Failed to forward request to remote service.
hvac-status: Failed to forward request to remote service.

And in Home Assistant, the 4 sensors are Unavailable:

sensor.fuel_autonomy
sensor.fuel_quantity
sensor.mileage
sensor.outside_temperature

@epenet
Copy link
Collaborator

epenet commented Aug 26, 2021

Do you have data available inside the official Renault application?
If the official Renault application doesn't show any data, then there isn't much we can do inside this API.

@epenet epenet removed the wontfix This will not be worked on label Aug 26, 2021
@epenet
Copy link
Collaborator

epenet commented Aug 26, 2021

Also, I suggest that you look at these two issues:

The samples will help us work out which cars work and which don't.

@manu3b1
Copy link
Author

manu3b1 commented Aug 26, 2021

Yes, it's works fine with MyRenault App.
Do you want me to push a json file beautified from this log:

{
  "vin": "VF1AAAA",
  "registrationDate": "2018-11-26",
  "firstRegistrationDate": "2018-11-26",
  "engineType": "M5M",
  "engineRatio": "450",
  "modelSCR": "MB4",
  "deliveryCountry": {
    "code": "FR",
    "label": "FRANCE"
  },
  "family": {
    "code": "XFB",
    "label": "XFB FAMILY",
    "group": "007"
  },
  "tcu": {
    "code": "TCU0G2",
    "label": "TCU VER 0 GEN 2",
    "group": "E70"
  },
  "navigationAssistanceLevel": {
    "code": "",
    "label": "",
    "group": ""
  },
  "battery": {
    "code": "SANBAT",
    "label": "",
    "group": "968"
  },
  "radioType": {
    "code": "RAD68A",
    "label": "RADIO 68A",
    "group": "425"
  },
  "registrationCountry": {
    "code": "FR"
  },
  "brand": {
    "label": "RENAULT"
  },
  "model": {
    "code": "XFB1BI",
    "label": "MEGANE IV",
    "group": "971"
  },
  "gearbox": {
    "code": "BVA7",
    "label": "7-SPEED AUTOMATIC GEARBOX",
    "group": "427"
  },
  "version": {
    "code": "GT MVA6R"
  },
  "energy": {
    "code": "ESS",
    "label": "PETROL",
    "group": "019"
  },
  "registrationNumber": "REG-",
  "vcd": "STANDA/XFB/BFB/EAG/MV/ESS/DG/TEMP/TR4X2/AFURGE/RVDIST/ABS/SBARTO/CA03/TOPAN/PBNCH/LAC/VSTLAR/CPE/RET04/SPROJA/RALU18/CEAVRH/AIRBA2/SERIE/CUI/CUIR04/HARM01/ATAV03/ATAR03/SGAV03/SGAR02/TERQH/BANAL/KM/DPRPN/AVREPL/SSDECA/SFIRBA/ABLAVI/LEDH3/ESPHSA/FPASS/ALEVA/PRGCOF/SOP03C/STHPLG/KITGRV/VLCUI3/RETRCR/TRSEV1/LVAVIP/LVARAP/SASURV/RSGALT/SGACHA/FRA01/APL03/SELAER/SLAVPH/FSTPO/ALOUC5/CMAR3P/RAD68A/BVA7/SCDCOF/4ROUDI/PRIAC2/RDIF13/PNSTRD/ISOFIX/EQPEUR/HRGM01/SANFLT/CSRGAC/SANACF/PREALA/TLRP00/SAN613/SBONOI/SSFAP/AIRBDE/CHC03/PSMREC/AUDCN2/SPFAIR/E06R/SANAD/SSPTLP/CHSPT1/SANCML/SEXTIN/PE2016/PHAS1/SAN913/STHABT/SSTYAD/HYB01/SSCABA/SANBAT/VEC137/XFB1BI/SSNBT/LAVNCH/M5M/DLIGM1/SKTSEC/SRANCF/CDVIT1/KITPOU/KITPGR/SDPSEC/PREM02/FDIU2/MAPSUP/SSCALL/TBANU2/SDANGM/SSRCAR/TCU0G2/AVGSI/ITPK6/MLEXP1/VOLNCH/SPRDEN/PRHMD1/SREACT/AVOSP1/DWGE01/1234Y/SPGTLE/SPGTLI/SPGTLS/AEBS01/PRAHL/SPMIR",
  "assets": [
    {
      "assetType": "PICTURE",
      "renditions": [
        {
          "resolutionType": "ONE_MYRENAULT_LARGE",
          "url": "https://3dv.renault.com/ImageFromBookmark?configuration=XFB%2FBFB%2FEAG%2FESS%2FDG%2FRVDIST%2FCA03%2FTOPAN%2FVSTLAR%2FRET04%2FSPROJA%2FRALU18%2FCUI%2FCUIR04%2FSGAR02%2FTERQH%2FKM%2FSSDECA%2FABLAVI%2FLEDH3%2FFPASS%2FALEVA%2FSOP03C%2FVLCUI3%2FRETRCR%2FTRSEV1%2FLVAVIP%2FLVARAP%2FSGACHA%2FSLAVPH%2FRAD68A%2FBVA7%2F4ROUDI%2FPRIAC2%2FRDIF13%2FCSRGAC%2FE06R%2FPE2016%2FSAN913%2FM5M%2FDLIGM1%2FCDVIT1%2FFDIU2%2FTBANU2%2FSDANGM%2FTCU0G2%2FITPK6%2FMLEXP1%2FVOLNCH%2FPRHMD1%2FDWGE01%2FSPGTLE%2FSPGTLI%2FAEBS01&databaseId=bc92a270-432a-4e5f-aa51-fadc63346f50&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_LARGE"
        },
        {
          "resolutionType": "ONE_MYRENAULT_SMALL",
          "url": "https://3dv.renault.com/ImageFromBookmark?configuration=XFB%2FBFB%2FEAG%2FESS%2FDG%2FRVDIST%2FCA03%2FTOPAN%2FVSTLAR%2FRET04%2FSPROJA%2FRALU18%2FCUI%2FCUIR04%2FSGAR02%2FTERQH%2FKM%2FSSDECA%2FABLAVI%2FLEDH3%2FFPASS%2FALEVA%2FSOP03C%2FVLCUI3%2FRETRCR%2FTRSEV1%2FLVAVIP%2FLVARAP%2FSGACHA%2FSLAVPH%2FRAD68A%2FBVA7%2F4ROUDI%2FPRIAC2%2FRDIF13%2FCSRGAC%2FE06R%2FPE2016%2FSAN913%2FM5M%2FDLIGM1%2FCDVIT1%2FFDIU2%2FTBANU2%2FSDANGM%2FTCU0G2%2FITPK6%2FMLEXP1%2FVOLNCH%2FPRHMD1%2FDWGE01%2FSPGTLE%2FSPGTLI%2FAEBS01&databaseId=bc92a270-432a-4e5f-aa51-fadc63346f50&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_SMALL_V2"
        }
      ]
    }
  ],
  "yearsOfMaintenance": 12,
  "deliveryDate": "2018-11-13",
  "retrievedFromDhs": false,
  "radioCode": ""
}

@epenet
Copy link
Collaborator

epenet commented Aug 26, 2021

Yes please create PR.
Please also create PR for car gateway.

Your choice one PR for each or single PR for both.

@manu3b1
Copy link
Author

manu3b1 commented Aug 26, 2021

I've replicated & cloned the repo, created a commit, pushed it and created a PR on my side:
https://github.com/manu3b1/renault-api/pull/1

Not sure how to generate a PR on your side.

@epenet
Copy link
Collaborator

epenet commented Aug 27, 2021

1 - clone the repo
2 - create a commit
3 - come to "renault-api" before you create the PR

@manu3b1
Copy link
Author

manu3b1 commented Aug 27, 2021

Done:
#358

@manu3b1
Copy link
Author

manu3b1 commented Aug 28, 2021

After double check: looks like this json corresponds to my previous Megane (a GT one), not the new E-Tech one.
This was due to an old account usage.
Everything works fine with new account and new Megane ;-)
Sorry.
Thx.

@manu3b1 manu3b1 closed this as completed Aug 28, 2021
@epenet
Copy link
Collaborator

epenet commented Aug 28, 2021

I'm glad you solved it...

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

No branches or pull requests

2 participants