jrlucier / eero_tracker

Eero Device Tracker for Home Assistant (HA, HASS.IO, HASS OS, HASSIO)
Other
64 stars 11 forks source link

Some devices, with nicknames, only show up as device_tracker.<macaddress> #21

Closed rsnodgrass closed 4 years ago

rsnodgrass commented 4 years ago

I've noticed some devices show up as device_tracker. only, even though they have nicknames. May be due to apostrophe (') in the nickname, since in the eero logs the nickname appears, but as a device tracker only the mac is used. This has been an issue for a long time.

rsnodgrass commented 4 years ago

I think this has something to do with the known_devices.yaml legacy file not being updated when there is a nickname change.

CONFIRMED: I deleted known_devices.yaml, and the name updated to the latest that was configured on my eero.

jrlucier commented 4 years ago

Hmm, might require some investigating. I wonder if it's a "device_tracker" friendly name limitation? The one limit I know of is once a device tracker is initialized in HA (by UID/MAC), we can no longer update the friendly name. It's persisted with the original default or whatever the user might change it to afterwards.

jrlucier commented 4 years ago

Correct -- we can't update it once it has been created in known_devices

rsnodgrass commented 4 years ago

Do you know what we would have to change to stop using "legacy" tracker and move to whatever is the latest style that doesn't use known_devices.yaml?

jrlucier commented 4 years ago

It'd take a weekend or two, and a pretty big rewrite most likely. I've been waiting for the core upstream components to migrate off of it so I can mimic what they did -- but none of the similar integrations have changed over. Probably worth a revisit in a couple of months.

rsnodgrass commented 4 years ago

Sounds good.