Android: Logging out and logging back in creates new device_tracker

Created on 13 Dec 2019  路  7Comments  路  Source: home-assistant/android

When I log out of the app, and then log back in, there is a new device_tracker entry, device_tracker.my_phone_2. This causes any automations/sensors/displays using the initial device tracker to break.

Running app version 1.2.0 on a Pixel 3a.

Most helpful comment

We should include a device ID in the registration so that mobile app can link up new registrations with existing integrations.

All 7 comments

Do you also get a new Integration or just a new entity?

I also get a new integration.

Ok I believe this is working as expected then but we can wait for someone else to confirm it.

If that's the case, I'd argue this design choice should be reconsidered.

I don't know if its possible because the config entry get a new ID and I am not sure if they are able to get the old ID to link it back. If for example you clear data the same thing happens.

We should include a device ID in the registration so that mobile app can link up new registrations with existing integrations.

Was this page helpful?
0 / 5 - 0 ratings