Ludy87 / xplora_watch

Xplora® Watch Home Assistant Integration
MIT License
50 stars 6 forks source link

[🐛 BUG] Tracking does not work if device_tracker is bound to person #55

Closed ravor-org closed 2 years ago

ravor-org commented 2 years ago

System Health details

Version | core-2022.9.5 -- | -- Installation Type | Home Assistant Core Development | false Supervisor | false Docker | false User | homeassistant Virtual Environment | true Python Version | 3.10.6 Operating System Family | Linux Operating System Version | 5.4.70-ravor CPU Architecture | x86_64 Timezone | Europe/Berlin Configuration Directory | /home/homeassistant/.homeassistant

Checklist

Describe the issue

Hi,

in my HA instance all trackable users are configured as persons (as in "settings" -> "people"). For some reason, the person is always displayed as "unknown" or "away" instead of the location. Even in a map card, the person is not displayed. If I choose to use the device tracker entity directly, it is displayed as it should.

Could you check that?

Reproduction steps

  1. Create a person in "settings" -> "people"
  2. Associate the device_tracker entity from the watch to the person
  3. Add person to UI or to map card

Expected outcome: Person should be displayed like device_tracker entity

Actual outcome: Person does not have a location

Debug logs

Data is fetched:
Sep 19 12:57:30 hwr-server01 hass[11602]: 2022-09-19 12:57:30.380 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora®: 6983592
Sep 19 12:57:30 hwr-server01 hass[11602]: 2022-09-19 12:57:30.686 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
Sep 19 12:57:30 hwr-server01 hass[11602]: 2022-09-19 12:57:30.686 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-34051 data in 2.686 seconds (success: True)
ravor-org commented 2 years ago

Heres a picture, how it looks on my UI: grafik

That's how it looks on UI:

  1. Person with device_tracker attached (always displays unknown)
  2. device_tracker entity directly shown
  3. Person with another (working) device_tracker attached (google maps)
  4. Google maps device tracker directly shown
Enkil666 commented 2 years ago

Same here. When xplora device_tracker is attached to a person, it is displayed as 'Unknown'.

Ludy87 commented 2 years ago

Hi, this is not a bug, just not implemented