gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
498 stars 52 forks source link

User devices keep changing id #320

Open JooRuu opened 3 months ago

JooRuu commented 3 months ago

I have 3 devices set up. Randomly 2 of those devices seem to get mixed so that the devices assigned to the user id gets changed. Some times 1 device gets assigned to 2 users which causes them to stop updating. is there a way to fix this problem?

gcobb321 commented 3 months ago

What version of iCloud3 are you running? What are the device names?

JooRuu commented 3 months ago

Release Candidate - v3.0.rc10.4 (2/18/2024)

gcobb321 commented 3 months ago

When iC3 starts, it gets the device info from Apple. This includes the phone name from the Settings App > General > About/Name (?). It also gets the Apple Device's internal id that is a string of numbers /letters about 30-chars long. It is that ID that Apple uses to references the device. During startup, iC3 matches up the phones name with the data returned and if the id is different, it updates the config files with the new id. It tries to see if there are devices with similar names because most people do not change the devices name when it is sold/replaced/returned to Apple to use the new name. The new name is sometimes the Old name, the Old (2) name or something like it.

Look for something like that in the Event Log > Stage 3, 4, 5 to see if there are any devices that are alike. Also check the Update Devices config screen for them and see if the model numbers are the same or different.

JooRuu commented 3 months ago

We updated the names on the phones. That fixed the problem. Thank you for the rapid and professional response!