Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
161 stars 37 forks source link

No "Tank Lid" sensor changes #203

Closed Elekesey closed 4 months ago

Elekesey commented 5 months ago

Describe the bug Tank Lid doesn't rise any status other than "off" on european Volvo XC40 Recharge (full EV).

To Reproduce:
Steps to reproduce the behavior:

  1. Open tank lid of the vehicule.
  2. Check status of sensor "XC40 (2024) - YV1XZEPT8R*** Tank Lid" and see it doesn't change.

Expected behavior:
When I open tank lid, I expect to see status of sensor switch to "on".

Version info:

Logs:
Enable the debug option and upload your logfile here.
If you are using the HA Addon the log location is \\<Your HA Host IP>\addons\volvo2mqtt\log\volvo2mqtt.log

Dielee commented 5 months ago

Please send debug logs from opened and closed tank lid

FireWizard52 commented 5 months ago

Hi,

On my XC40 PHEV 2023 I see for tankLid, when quering: https://api.volvocars.com/connected-vehicle/v2/vehicles/"Volvo_VIN"/doors for value "UNSPECIFIED". So obviously it is not implemented for all cars.

Regards

Elekesey commented 5 months ago

Hello,

Sorry for my late answer. Here is the log file with API debug enabled as an attachment.

Even when I opened tank lid, value stay set to "CLOSED".

Jun 19 19:42:00 volvo2mqtt [106] - DEBUG: Starting GET call against https://api.volvocars.com/connected-vehicle/v2/vehicles/{0}/doors
Jun 19 19:42:00 volvo2mqtt [106] - DEBUG: Response status code: 200
Jun 19 19:42:00 volvo2mqtt [106] - DEBUG: {
  "data" : {
    "centralLock" : {
      "value" : "LOCKED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    },
    "frontLeftDoor" : {
      "value" : "CLOSED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    },
    "frontRightDoor" : {
      "value" : "CLOSED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    },
    "rearLeftDoor" : {
      "value" : "CLOSED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    },
    "rearRightDoor" : {
      "value" : "CLOSED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    },
    "hood" : {
      "value" : "CLOSED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    },
    "tailgate" : {
      "value" : "CLOSED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    },
    "tankLid" : {
      "value" : "CLOSED",
      "timestamp" : "2024-06-19T07:29:46.937Z"
    }
  }
}

volvo2mqtt.log

JohanLanderholm commented 5 months ago

I have a new EX30, and my "tank lid" is always indicated as Open. I assume it's a buggy API, as there are so many bugs in the onboard system in the EX30.

Elekesey commented 5 months ago

I was wondering if it could be a broken sensor on the tank lid of the car. But can’t find enough information on web about that…

JohanLanderholm commented 5 months ago

I think the whole Volvo API is very much "work-in-progress" so I guess we'll see some fixes in tve future.

andynash commented 4 months ago

I have an XC90 T8, ie a PHEV, so there are two 'tank lids', one for petrol, one for charging.

This API value works for me, but only for the petrol tank lid (which is a shame because the one I occasionally leave open is the charging one).

I would expect therefore that this sensor is specifically for the petrol tank lid in PHEV and petrol-only vehicles - full EVs won't get any info regarding their 'charging lid'.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 5 days with no activity.