leapconnect icon indicating copy to clipboard operation
leapconnect copied to clipboard

Error retrieving vehicle data for LeapMotor B10

Open markoceri opened this issue 7 months ago • 40 comments

Adding credentials results in this error when retrieving Leapmotor B10 vehicle status.

Credentials saved. 1 validation error for VehicleSchema seat_layout Input should be a valid string [type=string_type, input_value=0, input_type=int] For further information visit https://errors.pydantic.dev/2.13/v/string_type

To verify if it is a leapmotor-api bug or leapconnect bug

markoceri avatar May 04 '26 16:05 markoceri

This issue should be fixed with the version v0.1.5 of leapmotor-api library.

Waiting for confirmation.

markoceri avatar May 05 '26 22:05 markoceri

This issue should be fixed with the version v0.1.5 of leapmotor-api library.

Waiting for confirmation.

No error with insert the credentials but no data for Leapmotor B10 in the section Setting and service can see this error Leapmotor vehicle status failed: No message available.

Image Image

ProtossBlaster avatar May 06 '26 08:05 ProtossBlaster

Image

i get same lack of data but i got messages so the connection is there but no telemetry

francuz152 avatar May 06 '26 08:05 francuz152

Go to Settings >Advanced > Debug > Show Raw JSON

Do you receive raw data from leapmotor?

@francuz152 @ProtossBlaster

markoceri avatar May 06 '26 08:05 markoceri

Image Image

you mean this ?

francuz152 avatar May 06 '26 09:05 francuz152

Go to Settings >Advanced > Debug > Show Raw JSON

Do you receive raw data from leapmotor?

@francuz152 @ProtossBlaster

this is row data

{ "carId": 60095, "userid": 59548, "nickName": “S************ ", "vin": "LF************”, "carType": "B10", "year": 2025, "carConfigEdition": "", "plateNumber": "LFZA***********”, "rightList": "190,180,170,280,192,171,160,161,370,360,130,240,361,460,120,230,340,110,220,440,320,430,301", "mobileNumber": null, "outColor": null, "abilities": [ "1", "2", "3", "5", "6", "7", "10", "11", "12", "13", "14", "15", "19", "20", "21", "23", "24", "29", "30", "31", "32", "34", "35", "38", "42", "43", "47", "48", "51", "52", "53", "57", "59", "60", "61", "69", "70" ], "vinNickname": null, "allocationCode": 5, "moduleRights": "100,200,300,400", "expireTime": null, "durationType": 0, "shareTime": 1777899773000, "shareType": 0, "seatLayout": 0, "carAlias": null, "rudder": "left", "name": null, "email": "bs@ht", "funcConfig": { "HVAC": { "fan": { "max": "7", "min": "0", "unit": "gear" }, "temperature": { "max": "30", "min": "18", "unit": "celsius" } } }, "vehicleId": null, "t03SeatLayout": null }

ProtossBlaster avatar May 06 '26 09:05 ProtossBlaster

Can you get the docker log and show it to me? Thanks @ProtossBlaster @francuz152

markoceri avatar May 06 '26 18:05 markoceri

Can you get the docker log and show it to me? Thanks @ProtossBlaster @francuz152

22:04:41] INFO: Starting LeapConnect (log_level=info)... INFO: Started server process [80] INFO: Waiting for application startup. INFO:alembic.runtime.plugins:setup plugin alembic.autogenerate.schemas INFO:alembic.runtime.plugins:setup plugin alembic.autogenerate.tables INFO:alembic.runtime.plugins:setup plugin alembic.autogenerate.types INFO:alembic.runtime.plugins:setup plugin alembic.autogenerate.constraints INFO:alembic.runtime.plugins:setup plugin alembic.autogenerate.defaults INFO:alembic.runtime.plugins:setup plugin alembic.autogenerate.comments INFO:alembic.runtime.migration:Context impl SQLiteImpl. INFO:alembic.runtime.migration:Will assume non-transactional DDL. INFO:main:History DB initialised at /data/history.db INFO:main:Scheduler settings loaded: enabled=False, history=15 min, mqtt=60 sec, rate_limit=10 sec INFO:main:MQTT HA service initialised: enabled=False INFO:main:Live refresh interval: 30 sec INFO:main:Auto-connect: no saved account, skipping INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8099 (Press CTRL+C to quit) INFO: 172.30.32.2:55144 - "GET / HTTP/1.1" 200 OK INFO: 172.30.32.2:55144 - "GET /assets/index-DLxt5wFX.js HTTP/1.1" 200 OK INFO: 172.30.32.2:55158 - "GET /assets/index-DBOntGj0.css HTTP/1.1" 200 OK INFO: 172.30.32.2:55158 - "GET /api/setup/status HTTP/1.1" 200 OK INFO: 172.30.32.2:58022 - "POST /api/setup/user HTTP/1.1" 200 OK INFO: 172.30.32.2:58022 - "GET /api/setup/status HTTP/1.1" 200 OK INFO: 172.30.32.2:42152 - "POST /api/setup/certificates HTTP/1.1" 200 OK INFO:main:Live refresh started (interval=30 sec) INFO: 172.30.32.2:37780 - "POST /api/setup/account HTTP/1.1" 200 OK INFO: 172.30.32.2:54624 - "POST /api/mqtt/test HTTP/1.1" 200 OK INFO:services.scheduler:Scheduler started (history interval=15 min) INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for history INFO:services.scheduler:Scheduler started (MQTT interval=60 sec) INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for MQTT ERROR:services.scheduler:Scheduler: failed to poll LFZA5AE24SE008234 Traceback (most recent call last): File "/app/services/scheduler.py", line 232, in _poll_history status = await self._cache.get(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/services/vehicle_cache.py", line 99, in get status = await self._client.get_vehicle_status(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/async_client.py", line 48, in get_vehicle_status return await asyncio.to_thread(self._client.get_vehicle_status, vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/threads.py", line 25, in to_thread return await loop.run_in_executor(None, func_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 299, in get_vehicle_status return self._retry_on_token_expiry(self._get_vehicle_status, vehicle) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 243, in _retry_on_token_expiry return func(*args, **kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 302, in _get_vehicle_status raw = self._get_vehicle_raw_status(vehicle) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 322, in _get_vehicle_raw_status return self._parse_api_body(response["status_code"], response["body"], "vehicle status") ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 955, in _parse_api_body raise LeapmotorApiError(f"Leapmotor {label} failed: {message}") leapmotor_api.exceptions.LeapmotorApiError: Leapmotor vehicle status failed: No message available INFO: 172.30.32.2:54624 - "PUT /api/scheduler HTTP/1.1" 200 OK INFO:services.mqtt_ha:MQTT connecting to 192.168.188.144:1883 INFO:services.mqtt_ha:MQTT connected to 192.168.188.144:1883 INFO: 172.30.32.2:54624 - "PUT /api/mqtt HTTP/1.1" 200 OK INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for history INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for MQTT INFO: 172.30.32.2:54624 - "PUT /api/scheduler HTTP/1.1" 200 OK ERROR:services.scheduler:Scheduler: failed to poll LFZA5AE24SE008234 Traceback (most recent call last): File "/app/services/scheduler.py", line 232, in _poll_history status = await self._cache.get(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/services/vehicle_cache.py", line 99, in get status = await self._client.get_vehicle_status(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/async_client.py", line 48, in get_vehicle_status return await asyncio.to_thread(self._client.get_vehicle_status, vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/threads.py", line 25, in to_thread return await loop.run_in_executor(None, func_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 299, in get_vehicle_status return self._retry_on_token_expiry(self._get_vehicle_status, vehicle) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 243, in _retry_on_token_expiry return func(*args, **kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 302, in _get_vehicle_status raw = self._get_vehicle_raw_status(vehicle) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 322, in _get_vehicle_raw_status return self._parse_api_body(response["status_code"], response["body"], "vehicle status") ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 955, in _parse_api_body raise LeapmotorApiError(f"Leapmotor {label} failed: {message}") leapmotor_api.exceptions.LeapmotorApiError: Leapmotor vehicle status failed: No message available INFO: 172.30.32.2:54624 - "GET /api/vehicles/LFZA5AE24SE008234/full HTTP/1.1" 200 OK INFO: 172.30.32.2:54634 - "WebSocket /ws/vehicle/LFZA5AE24SE008234" [accepted] INFO:main:WebSocket connected for VIN LFZA5AE24SE008234 INFO: connection open INFO: 172.30.32.2:54624 - "GET /api/vehicles/LFZA5AE24SE008234/picture/dynamic?_t=1778098023365 HTTP/1.1" 502 Bad Gateway INFO:main:WebSocket disconnected for VIN LFZA5AE24SE008234 INFO: connection closed INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for MQTT INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for MQTT INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for MQTT INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for MQTT INFO:services.scheduler:Scheduler: polling 1 vehicle(s) for MQTT

ProtossBlaster avatar May 06 '26 20:05 ProtossBlaster

The log isn't clear enough.

Try LeapConnect v0.6.0, where I've introduced more detailed logging for requests to the cloud (introduced at the leapmotor-api library level) and the ability to change the logging level from the frontend (DEBUG, INFO, etc.).

In this release, I've also added a faster way to access application logs. There are two new options in Settings > Advanced:

  • Log Levels: Allows you to set the log level for the web application or the leapmotor-api library independently
  • Application Logs: Allows you to view logs in real time

In your case, it seems that the response to the vehicle status request isn't being parsed correctly, and I need to understand what response the leapmotor cloud returns.

Go to Settings > Advanced > Log Levels and set the leapmotor-api library log level to DEBUG, then enable Application Logs and show me logs.

Image

markoceri avatar May 06 '26 22:05 markoceri

01:41:09.142 INFO alembic.runtime.plugins 2026-05-07 01:41:09,142 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.schemas 01:41:09.142 INFO alembic.runtime.plugins 2026-05-07 01:41:09,142 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.tables 01:41:09.142 INFO alembic.runtime.plugins 2026-05-07 01:41:09,142 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.types 01:41:09.143 INFO alembic.runtime.plugins 2026-05-07 01:41:09,143 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.constraints 01:41:09.143 INFO alembic.runtime.plugins 2026-05-07 01:41:09,143 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.defaults 01:41:09.143 INFO alembic.runtime.plugins 2026-05-07 01:41:09,143 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.comments 01:41:09.234 INFO alembic.runtime.migration 2026-05-07 01:41:09,234 [INFO] alembic.runtime.migration: Context impl SQLiteImpl. 01:41:09.234 INFO alembic.runtime.migration 2026-05-07 01:41:09,234 [INFO] alembic.runtime.migration: Will assume non-transactional DDL. 01:41:09.238 INFO main 2026-05-07 01:41:09,238 [INFO] main: History DB initialised at /data/history.db 01:41:09.245 INFO main 2026-05-07 01:41:09,245 [INFO] main: Scheduler settings loaded: enabled=False, history=15 min, mqtt=60 sec, rate_limit=10 sec 01:41:09.254 INFO main 2026-05-07 01:41:09,254 [INFO] main: MQTT HA service initialised: enabled=False 01:41:09.255 INFO main 2026-05-07 01:41:09,255 [INFO] main: Live refresh interval: 30 sec 01:41:09.258 INFO main 2026-05-07 01:41:09,258 [INFO] main: Auto-connect: no saved account, skipping 01:42:34.802 INFO main 2026-05-07 01:42:34,802 [INFO] main: Live refresh started (interval=30 sec) 01:43:37.337 INFO services.scheduler 2026-05-07 01:43:37,337 [INFO] services.scheduler: Scheduler started (history interval=15 min) 01:43:37.338 INFO services.scheduler 2026-05-07 01:43:37,338 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for history 01:43:37.338 INFO services.scheduler 2026-05-07 01:43:37,338 [INFO] services.scheduler: Scheduler started (MQTT interval=60 sec) 01:43:37.338 INFO services.scheduler 2026-05-07 01:43:37,338 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:43:37.407 INFO services.mqtt_ha 2026-05-07 01:43:37,407 [INFO] services.mqtt_ha: MQTT connecting to 192.168.188.144:1883 01:43:37.410 INFO services.mqtt_ha 2026-05-07 01:43:37,410 [INFO] services.mqtt_ha: MQTT connected to 192.168.188.144:1883 01:43:37.437 ERROR services.scheduler 2026-05-07 01:43:37,437 [ERROR] services.scheduler: Scheduler: failed to poll LFZA5AE24SE008234 Traceback (most recent call last): File "/app/services/scheduler.py", line 232, in _poll_history status = await self._cache.get(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/services/vehicle_cache.py", line 99, in get status = await self._client.get_vehicle_status(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/async_client.py", line 48, in get_vehicle_status return await asyncio.to_thread(self._client.get_vehicle_status, vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/threads.py", line 25, in to_thread return await loop.run_in_executor(None, func_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 299, in get_vehicle_status return self._retry_on_token_expiry(self._get_vehicle_status, vehicle) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 243, in _retry_on_token_expiry return func(*args, **kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 302, in _get_vehicle_status raw = self._get_vehicle_raw_status(vehicle) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 322, in _get_vehicle_raw_status return self._parse_api_body(response["status_code"], response["body"], "vehicle status") ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 974, in _parse_api_body raise LeapmotorApiError(f"Leapmotor {label} failed: {message}") leapmotor_api.exceptions.LeapmotorApiError: Leapmotor vehicle status failed: No message available 01:43:37.460 INFO services.scheduler 2026-05-07 01:43:37,460 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for history 01:43:37.463 INFO services.scheduler 2026-05-07 01:43:37,463 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:43:37.487 ERROR services.scheduler 2026-05-07 01:43:37,487 [ERROR] services.scheduler: Scheduler: failed to poll LFZA5AE24SE008234 Traceback (most recent call last): File "/app/services/scheduler.py", line 232, in _poll_history status = await self._cache.get(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/services/vehicle_cache.py", line 99, in get status = await self._client.get_vehicle_status(vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/async_client.py", line 48, in get_vehicle_status return await asyncio.to_thread(self._client.get_vehicle_status, vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/threads.py", line 25, in to_thread return await loop.run_in_executor(None, func_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 299, in get_vehicle_status return self._retry_on_token_expiry(self._get_vehicle_status, vehicle) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 243, in _retry_on_token_expiry return func(*args, **kwargs) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 302, in _get_vehicle_status raw = self._get_vehicle_raw_status(vehicle) File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 322, in _get_vehicle_raw_status return self._parse_api_body(response["status_code"], response["body"], "vehicle status") ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.13/site-packages/leapmotor_api/client.py", line 974, in _parse_api_body raise LeapmotorApiError(f"Leapmotor {label} failed: {message}") leapmotor_api.exceptions.LeapmotorApiError: Leapmotor vehicle status failed: No message available 01:43:39.921 INFO main 2026-05-07 01:43:39,921 [INFO] main: WebSocket connected for VIN LFZA5AE24SE008234 01:43:50.762 INFO main 2026-05-07 01:43:50,762 [INFO] main: App log level changed to DEBUG 01:43:50.762 INFO main 2026-05-07 01:43:50,762 [INFO] main: leapmotor-api log level changed to INFO 01:43:54.796 INFO main 2026-05-07 01:43:54,796 [INFO] main: App log level changed to DEBUG 01:43:54.796 INFO main 2026-05-07 01:43:54,796 [INFO] main: leapmotor-api log level changed to DEBUG 01:44:04.827 DEBUG leapmotor_api.client 2026-05-07 01:44:04,827 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111044817,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:44:04.827 DEBUG main 2026-05-07 01:44:04,827 [DEBUG] main: Live refresh failed for LFZA5AE24SE008234: Leapmotor vehicle status failed: No message available 01:44:34.850 DEBUG leapmotor_api.client 2026-05-07 01:44:34,850 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111074842,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:44:34.851 DEBUG main 2026-05-07 01:44:34,851 [DEBUG] main: Live refresh failed for LFZA5AE24SE008234: Leapmotor vehicle status failed: No message available 01:44:37.511 INFO services.scheduler 2026-05-07 01:44:37,511 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:44:37.532 DEBUG leapmotor_api.client 2026-05-07 01:44:37,532 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111077525,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:45:04.873 DEBUG leapmotor_api.client 2026-05-07 01:45:04,873 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111104865,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:45:04.873 DEBUG main 2026-05-07 01:45:04,873 [DEBUG] main: Live refresh failed for LFZA5AE24SE008234: Leapmotor vehicle status failed: No message available 01:45:06.427 INFO main 2026-05-07 01:45:06,427 [INFO] main: App log level changed to INFO 01:45:06.427 INFO main 2026-05-07 01:45:06,427 [INFO] main: leapmotor-api log level changed to DEBUG 01:45:34.896 DEBUG leapmotor_api.client 2026-05-07 01:45:34,896 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111134888,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:45:37.532 INFO services.scheduler 2026-05-07 01:45:37,532 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:45:37.553 DEBUG leapmotor_api.client 2026-05-07 01:45:37,553 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111137546,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:46:04.918 DEBUG leapmotor_api.client 2026-05-07 01:46:04,918 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111164911,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:46:34.941 DEBUG leapmotor_api.client 2026-05-07 01:46:34,941 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111194933,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:46:37.554 INFO services.scheduler 2026-05-07 01:46:37,554 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:46:37.576 DEBUG leapmotor_api.client 2026-05-07 01:46:37,576 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111197569,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:47:05.005 DEBUG leapmotor_api.client 2026-05-07 01:47:05,005 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111224962,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:47:35.027 DEBUG leapmotor_api.client 2026-05-07 01:47:35,027 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111255019,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:47:37.577 INFO services.scheduler 2026-05-07 01:47:37,577 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:47:37.599 DEBUG leapmotor_api.client 2026-05-07 01:47:37,599 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111257592,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:48:05.048 DEBUG leapmotor_api.client 2026-05-07 01:48:05,048 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111285041,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:48:35.071 DEBUG leapmotor_api.client 2026-05-07 01:48:35,071 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111315064,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:48:37.600 INFO services.scheduler 2026-05-07 01:48:37,600 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:48:37.621 DEBUG leapmotor_api.client 2026-05-07 01:48:37,621 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111317614,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:49:05.095 DEBUG leapmotor_api.client 2026-05-07 01:49:05,095 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111345087,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:49:35.117 DEBUG leapmotor_api.client 2026-05-07 01:49:35,117 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111375109,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} 01:49:37.622 INFO services.scheduler 2026-05-07 01:49:37,622 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 01:49:37.643 DEBUG leapmotor_api.client 2026-05-07 01:49:37,643 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111377635,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"} Disconnected 58 entries

ProtossBlaster avatar May 06 '26 23:05 ProtossBlaster

01:49:05.095
DEBUG
leapmotor_api.client
2026-05-07 01:49:05,095 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111345087,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"}

The API endpoint for retrieving vehicle status for the B10 model doesn't seem to exist (404 error). I'll do more in-depth testing, but let's try using the same endpoint as the C10 model, which seems to work (and appears to share more data than the T03 model).

Try the latest version of LeapConnect v0.6.1 and let me know if it works.

markoceri avatar May 07 '26 13:05 markoceri

The API endpoint for retrieving vehicle status for the B10 model doesn't seem to exist (404 error). I'll do more in-depth testing, but let's try using the same endpoint as the C10 model, which seems to work (and appears to share more data than the T03 model).

Try the latest version of LeapConnect v0.6.1 and let me know if it works.

Now i can see the car but there are more entity without data.

Image Image Image Image Image

ProtossBlaster avatar May 07 '26 15:05 ProtossBlaster

01:49:05.095
DEBUG
leapmotor_api.client
2026-05-07 01:49:05,095 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/b10: HTTP 404 {"timestamp":1778111345087,"status":404,"error":"Not Found","message":"No message available","path":"/carownerservice/oversea/vehicle/v1/status/get/b10"}

L'endpoint API per il recupero dello stato del veicolo per il modello B10 non sembra esistere ( 404errore). Eseguirò test più approfonditi, ma proviamo a utilizzare lo stesso endpoint del modello C10 , che sembra funzionare (e apparentemente condivide più dati rispetto al modello T03 ).

Prova l'ultima versione di LeapConnect v0.6.1e fammi sapere se funziona.

non va continuo a non vedere i valori

2026-05-07T17:06:13.030 [INFO] alembic.runtime.plugins: 2026-05-07 17:06:13,030 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.schemas 2026-05-07T17:06:13.030 [INFO] alembic.runtime.plugins: 2026-05-07 17:06:13,030 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.tables 2026-05-07T17:06:13.030 [INFO] alembic.runtime.plugins: 2026-05-07 17:06:13,030 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.types 2026-05-07T17:06:13.031 [INFO] alembic.runtime.plugins: 2026-05-07 17:06:13,031 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.constraints 2026-05-07T17:06:13.031 [INFO] alembic.runtime.plugins: 2026-05-07 17:06:13,031 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.defaults 2026-05-07T17:06:13.031 [INFO] alembic.runtime.plugins: 2026-05-07 17:06:13,031 [INFO] alembic.runtime.plugins: setup plugin alembic.autogenerate.comments 2026-05-07T17:06:13.080 [INFO] alembic.runtime.migration: 2026-05-07 17:06:13,080 [INFO] alembic.runtime.migration: Context impl SQLiteImpl. 2026-05-07T17:06:13.080 [INFO] alembic.runtime.migration: 2026-05-07 17:06:13,080 [INFO] alembic.runtime.migration: Will assume non-transactional DDL. 2026-05-07T17:06:13.093 [INFO] main: 2026-05-07 17:06:13,093 [INFO] main: History DB initialised at /data/history.db 2026-05-07T17:06:13.097 [INFO] main: 2026-05-07 17:06:13,097 [INFO] main: Scheduler settings loaded: enabled=True, history=15 min, mqtt=60 sec, rate_limit=10 sec 2026-05-07T17:06:13.099 [INFO] services.scheduler: 2026-05-07 17:06:13,099 [INFO] services.scheduler: Scheduler started (history interval=15 min) 2026-05-07T17:06:13.099 [INFO] services.scheduler: 2026-05-07 17:06:13,099 [INFO] services.scheduler: Scheduler started (MQTT interval=60 sec) 2026-05-07T17:06:13.106 [INFO] main: 2026-05-07 17:06:13,106 [INFO] main: MQTT HA service initialised: enabled=False 2026-05-07T17:06:13.108 [INFO] main: 2026-05-07 17:06:13,108 [INFO] main: Live refresh interval: 30 sec 2026-05-07T17:06:15.971 [INFO] main: 2026-05-07 17:06:15,971 [INFO] main: Auto-connect: success, 1 vehicle(s) 2026-05-07T17:06:15.973 [INFO] services.scheduler: 2026-05-07 17:06:15,973 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for history 2026-05-07T17:06:15.973 [INFO] services.scheduler: 2026-05-07 17:06:15,973 [INFO] services.scheduler: Scheduler: polling 1 vehicle(s) for MQTT 2026-05-07T17:06:15.973 [INFO] main: 2026-05-07 17:06:15,973 [INFO] main: Live refresh started (interval=30 sec) 2026-05-07T17:06:16.095 [INFO] services.scheduler: 2026-05-07 17:06:16,095 [INFO] services.scheduler: Scheduler: saved snapshot for LFZA5AE23SE010248 (SOC=None%) 2026-05-07T17:06:21.971 [INFO] main: 2026-05-07 17:06:21,971 [INFO] main: WebSocket connected for VIN LF************** 2026-05-07T17:06:38.211 [INFO] main: 2026-05-07 17:06:38,211 [INFO] main: App log level changed to DEBUG 2026-05-07T17:06:38.211 [INFO] main: 2026-05-07 17:06:38,211 [INFO] main: leapmotor-api log level changed to INFO 2026-05-07T17:06:40.205 [INFO] main: 2026-05-07 17:06:40,205 [INFO] main: App log level changed to DEBUG 2026-05-07T17:06:40.205 [INFO] main: 2026-05-07 17:06:40,205 [INFO] main: leapmotor-api log level changed to DEBUG 2026-05-07T17:06:46.118 [DEBUG] leapmotor_api.client: 2026-05-07 17:06:46,118 [DEBUG] leapmotor_api.client: Leapmotor remote response for /carownerservice/oversea/vehicle/v1/status/get/c10: HTTP 200 {"code":0,"result":0,"message":"Request successful","data":{"privacyGPS":1,"signal":{"47":0,"49":0,"1186":0,"1182":18,"2669":0,"2667":253,"1258":0,"1257":0,"1256":0,"1696":0,"1695":0,"1255":2,"1178":0.1,"2101":0,"1177":424.9,"2662":0,"1298":1,"1694":0,"1939":1,"1938":0,"1816":0,"3710":1,"50":0,"3711":0,"3712":1,"3636":0,"3713":0,"6047":0,"6048":110,"1197":0,"2681":0,"1624":2,"2119":0,"1349":21.5,"1943":0,"3727":0,"2118":0,"1":1778137344969,"3728":0,"1149":0,"1941":1,"sts":1778137347360,"3366":0,"1949":0,"1946":0,"1945":0,"1944":0,"12054":0,"1880":0,"3262":1,"1480":1,"1281":0,"3260":278,"1280":0,"3737":1,"2646":255,"1279":0,"1278":0,"1277":0,"3257":283,"2641":0,"1319":0.0,"1318":3030,"1879":0,"2648":0,"3736":0,"1693":0,"2100":0,"2188":278,"1010":0,"2660":253,"3273":100,"2183":23.0,"1204":65,"2655":0,"2653":250,"3709":0,"2191":14.283342,"2190":40.858536,"2":14.28319,"3":40.85812,"3724":14.28319,"3725":40.85812,"3734":0,"3735":0,"100003":65.3,"1724":100,"100017":68,"100011":"175.8","100010":"0.0","100012":"175.8","100014":"172.7","100013":"0.0","100015":"172.7","100016":"172.7"},"config":{"3":{"cycles":"1,1,1,1,1,1,1","endTime":"08:00","percent":100,"isEnable":0,"recharge":0,"beginTime":"22:00","updateTime":"2026-05-06 08:54:48","circulation":1},"4":{"mac":"58D15A6FE2C7","version":"2.0","updateTime":"2026-03-13 14:03:04"}},"privacyData":1}}

danigio15 avatar May 07 '26 15:05 danigio15

yeap, my by10 has problems too.

Image

and no data:

Image

installed in HA

BTW: Its a great job code, and graphic project!

piot84zet avatar May 11 '26 19:05 piot84zet

Hello, at present, the Chinese app can only use the mobile phone verification code to log in. There is no login password setting entrance. Can you provide the SMS verification code login method? Or how can I contact you?

Take-Designer avatar May 13 '26 03:05 Take-Designer

Hello, at present, the Chinese app can only use the mobile phone verification code to log in. There is no login password setting entrance. Can you provide the SMS verification code login method? Or how can I contact you?

Hi, unfortunately, only European market vehicles are currently supported. For Chinese vehicles, not only is the login different, but the API endpoints, features, commands, and permissions are also different and specific to the European market. Furthermore, there are vehicle-specific commands that exist only in the Chinese market, such as the S01, C01, and C11 models, which I have no opportunity to test.

If you have development and/or reverse engineering skills, you can contribute directly to the leapmotor-api library repository.

markoceri avatar May 13 '26 12:05 markoceri

For B10 and C10 owners.

These models use different APIs. I'm already working on releasing the new version that adds full support for both. Just a little patience 🙂

markoceri avatar May 13 '26 13:05 markoceri

Hell yeah!

piot84zet avatar May 13 '26 13:05 piot84zet

With version v0.7.0 full support for B10/C10 vehicles has been added.

Let me know if it works.

markoceri avatar May 16 '26 14:05 markoceri

@markoceri just updated and nothing changed. still no data. only vin and user info with my b10. when clicking on "detail" on left menu i get:

Image

piot84zet avatar May 16 '26 15:05 piot84zet