home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.73k stars 28.89k forks source link

Subaru integration misassigns data between cars #109520

Open nanobra1n opened 5 months ago

nanobra1n commented 5 months ago

The problem

I have 2 Subaru cars (one Outback and one Crosstrek, different MySubaru accounts). I just added the Crosstrek to HA and now data downloaded from the Crosstrek (avg. Mileage, Range, Odometer, tire pressures & Position) get assigned to the Outback. Reloading the integration fixes sensor values temporarily, but location history remains messed up.

What version of Home Assistant Core has the issue?

core-2024.1.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Subaru

Link to integration documentation on our website

https://www.home-assistant.io/integrations/subaru

Diagnostics information

config_entry-subaru-70df7d197aace95d458004bbd4238966.json.txt config_entry-subaru-8648b67a5e2e6df64523e07059fe6255.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

Hey there @g-two, mind taking a look at this issue as it has been labeled with an integration (subaru) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `subaru` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign subaru` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


subaru documentation subaru source (message by IssueLinks)

nanobra1n commented 3 months ago

Bueller?

joostlek commented 3 months ago

I think I might found something, but I'll look into this tomorrow

G-Two commented 3 months ago

@nanobra1n I just submitted a PR (#114119) to enhance the device diagnostics to provide more verbose/raw information as it is received from the Subaru servers. Once that is merged, and you are able to send new diagnostics output, it might help me pinpoint the issue.

Until then, one possible workaround would be to temporarily share access to one of your cars to the MySubaru account for the other car. Multiple cars in a single account is known to work, and you can revoke the shared access once this issue is resolved.

G-Two commented 3 weeks ago

@nanobra1n the PR has been merged, so I can look into this now. Please send your device diagnostics for both vehicles.