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

RenaulVehicle hits 404 on get_car_adapter #1395

Open
paulomorgado opened this issue Dec 9, 2024 · 1 comment
Open

RenaulVehicle hits 404 on get_car_adapter #1395

paulomorgado opened this issue Dec 9, 2024 · 1 comment

Comments

@paulomorgado
Copy link
Contributor

I'm trying this API an a Renault Scenic e-tech with this code:

async def main():
   async with aiohttp.ClientSession() as websession:
      client = RenaultClient(websession=websession, locale=locale)
      await client.session.login(login_id, password)
      person = await client.get_person()
      print("----------")
      print(f"Accounts: {person}") # List available accounts, make a note of kamereon account id
      account_id = "9813398a-6ce9-4111-9833-a862500bb44b"
      account = await client.get_api_account(account_id)
      print("----------")
      vehicles = await account.get_vehicles()
      print(f"Vehicles: {vehicles}") # List available vehicles, make a note of vehicle VIN
      print("----------")
      vehicle = await account.get_api_vehicle(vin)
      adapter = await vehicle.get_car_adapter()
      print("adapter")
      cockpit = await vehicle.get_cockpit()
      print(f"Cockpit information: {cockpit}")
      print("----------")
      battery_status = await vehicle.get_battery_status()
      print(f"Battery status information: {battery_status}")
loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Everything is fine up until adapter = await vehicle.get_car_adapter() where the URL path resolves to /commerce/v1/accounts/«account ID»/kamereon/kca/car-adapter/v2/cars/«VIN»?country=«country»'

What am I doing wrong?

@paulomorgado
Copy link
Contributor Author

I have a Renault Scenic e-tech. I can test this. Just let me know how.

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

1 participant