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

second tracker not discovered when adding 2 vehicles of the same year/make/model #217

Closed
metheos opened this issue Jun 7, 2024 · 2 comments · Fixed by #218
Closed

second tracker not discovered when adding 2 vehicles of the same year/make/model #217

metheos opened this issue Jun 7, 2024 · 2 comments · Fixed by #218
Assignees
Labels
enhancement New feature or request

Comments

@metheos
Copy link

metheos commented Jun 7, 2024

I added my wife's vehicle today (using the vehicle 2 addon) after figuring everything out on mine and discovered that the tracker was not added for it. Looks like the info sent to MQTT would create a tracker with the same name and HA won't allow this.

Logger: homeassistant.components.device_tracker
Source: helpers/entity_platform.py:766
integration: Device tracker (documentation, issues)
First occurred: 12:36:29 PM (1 occurrences)
Last logged: 12:36:29 PM

Platform mqtt does not generate unique IDs. ID 2024_chevrolet_blazer_ev_device_tracker already exists - ignoring device_tracker.2024_chevrolet_blazer_ev

I didn't see a way to modify how the automatic discovery would name the tracker, so I just manually defined them in my configuration.yaml to work around this issue.

device_tracker:
  - platform: mqtt_json
    devices:
      wife_blazer_onstar: homeassistant/device_tracker/<VIN1>/getlocation/state
      my_blazer_onstar: homeassistant/device_tracker/<VIN2>/getlocation/state

Everything else seems to be working fine with both vehicles!

@BigThunderSR BigThunderSR added the enhancement New feature or request label Jun 7, 2024
@BigThunderSR BigThunderSR transferred this issue from BigThunderSR/homeassistant-addons-onstar2mqtt Jun 7, 2024
@BigThunderSR
Copy link
Owner

You're the first person using this code to have identical his/hers vehicles so far, so this one is a first. 😄

BigThunderSR added a commit that referenced this issue Jun 7, 2024
@BigThunderSR BigThunderSR linked a pull request Jun 7, 2024 that will close this issue
BigThunderSR added a commit that referenced this issue Jun 7, 2024
…overed-when-adding-2-vehicles-of-the-same-yearmakemodel

Modification to address #217
@metheos
Copy link
Author

metheos commented Jun 7, 2024

Haha, yeah I realize it's an edge case 😅
I'm glad to have this addon though! So much quicker and more reliable than the Chevy app 😉
Thanks for the upkeep ❤️❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants