Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
133 stars 27 forks source link

2023 XC90 B6 - Missing sensors - USA #38

Closed sco0ts closed 1 year ago

sco0ts commented 1 year ago

I am missing: Sensor "Engine Status" Sensor "Odometer" Sensor "Fuel Status" Sensor "Average Fuel Consumption" Sensor "Average Speed" and Car Device Tracker shows unknown.

Is this expected with an 2023 XC90 B6, a misconfiguration, or a bug?

Dielee commented 1 year ago

I don't know without more information. Please enable debug and show me some logs.

This is a mild hybrid, right?

sco0ts commented 1 year ago

Yes, mild hybrid.

I turned on API debug mode in the Volvo2Mqtt config. When I check the log tab, it looks truncated. Is there another location that has the full log?

Installed log viewer addon. will check that first.

Dielee commented 1 year ago

If it's mild hybrid, this may be related to #37. Please check which resources are working for you here: https://api.volvocars.com/extended-vehicle/v1/vehicles/{vin}/resources.

If odometer and the other missing sensors are working here, I have to add some more logic for the mild hybrids.

sco0ts commented 1 year ago

I am real novice in all this. So I went into developer.volvocars.com using my account and VCC, was able to generate an accessToken for EXTENDED VEHICLE API.

When I used their sandbox, https://api.volvocars.com/extended-vehicle/v1/vehicles does show my VIN. When I https://api.volvocars.com/extended-vehicle/v1/vehicles/(xxxxHidingMyVinxxx)/resources, I get response.

{ "resources": [] }

Dielee commented 1 year ago

This looks not good. Without resources from the extended API, we can't get any data from the extended API. Please enable debug and send me the full startup log.

sco0ts commented 1 year ago

I turned on API debug mode in the Volvo2Mqtt config. When I check the log tab, it looks truncated. Is there another location that has the full log?

sco0ts commented 1 year ago

This is the log without API debug enabled

EDIT: Shorten thread

Dielee commented 1 year ago

Okay, better than nothing. With debug enabled the log is truncated?

I think there is nothing I can do for you unfortunately. As some sensors work, some do not. There are no resources we can add from the extended API. You should contact Volvo and ask for some help I think.

Dielee commented 1 year ago

Location API seems to be not supported for your car...

This API is available for the following cars:
XC40 fully electric, model years between 2015 and 2021.
C40 fully electric, model year 2022.
XC60, S90, V90, V90CC and XC40, model year 2022.

Source

sco0ts commented 1 year ago

Going to reach out to Volvo and see what exact endpoints my model in the US has available. Thank you for making the addon and all your assistance!

Dielee commented 1 year ago

I turned on API debug mode in the Volvo2Mqtt config. When I check the log tab, it looks truncated. Is there another location that has the full log?

This is on my to-do list for the next days.

Dielee commented 1 year ago

Going to reach out to Volvo and see what exact endpoints my model in the US has available. Thank you for making the addon and all your assistance!

I will close the issue now. Feel free to open a new issue if you need some help after contacting volvo!

sco0ts commented 1 year ago

Thank you for making the log available at '\\addons\volvo2mqtt\log'

My log attached.

EDIT: Shorten thread volvo2mqtt.log

Dielee commented 1 year ago

MAAAAN please upload a file :D This post is much to huge!

sco0ts commented 1 year ago

Sorry . attached above. thank you!

Dielee commented 1 year ago

Thank you for making the log available at '\addons\volvo2mqtt\log'

My log as follows:

EDIT: Shorten thread

It looks like the api simply does not deliver data. Many api responses are just empty. I can't do anything for you, as the extend-api does not work at this time with volvo2mqtt.

sco0ts commented 1 year ago

understood. thank you for taking the time to investigate. and thank you for creating and maintaining the add on

Dielee commented 1 year ago

I'm using HA for so many years. It's time to give something back to the community. If you need any advice, open a new issue!

sco0ts commented 1 year ago

As of v1.7.5 my 2023 XC90 Mild Hybrid B6 in the US now show a ton more sensors.
This includes all sensors I previously said were not working with the exception of Location (not important to me).

Dielee commented 1 year ago

Updated to 2.10?

sco0ts commented 1 year ago

Updated to Volvo2Mqtt version: 1.7.5