Mobile App integration misidentifies iPhone 15 Pro

The Mobile App integration keeps insisting that an iPhone 15 Pro is an iPhone XR (at which point all automations related to the phone fail). The Home Assistant app on the iPhone has the correct name for the phone. I tried editing core.restore_state and homeassistant.exposed_entities to remove any mention of iPhone XR. That exercise fixed the problem for a few hours. I tried deleting the device from the integration, clearing the cache for the app, and deleting the wifi connection and then reconnecting. I then uninstalled the app, restarted the phone, and reinstalled the app. The integration then had the correct name for the phone for an entire day before it reverted to iPhone XR again. The router has the correct identity for the phone. I am out of ideas, so I hope that someone can suggest a remedy for this problem.

… and then half an hour after posting the previous message, the device spontaneously changed back to iPhone 15 Pro (without my doing anything).

Five days later, it is back to iPhone XR.

MAC randomisation?

Please say more. There is no iPhone XR on the network, so some device must have cached it. I cleared every cache I know about. Is it the phone that might be randomizing the MAC? Is your theory that the phone randomly changes to a MAC previously associated with an iPhone XR? Such a change does not seem random to me.

One day after the previous post, HA is back to iPhone 15 Pro.

I turned off MAC randomization. I cleared all caches, restarted the phone, and reconnected it to the wifi network. My router showed that an iPhone-15-Pro was connected to the network (and no iPhone XR).

I deleted the iPhone XR from the Mobile App integration. I deleted all references to iPhone 15 Pro from automations. I restarted Home Assistant. Mobile App added an iPhone 15 Pro. I restored references to iPhone 15 Pro to my automations. I ran actions. The automations worked perfectly.

15 seconds later, the Mobile App integration showed that the iPhone device had spontaneously changed to iPhone XR. Spook reported that the automations that referred to iPhone 15 Pro were broken. There are no iPhone 15 Pro devices. There are no iPhone 15 Pro entities except for two associated with the router. Back to where I started.

Has there ever been an actual iPhone XR on your network using the companion app? If so, is it possible that it still has the companion app installed & is connecting via data? Maybe it’s still listed as a device tracker attached to your profile?

What I suggest you do is to set up the mobile app integration again, but this time name your phone something generic like beezer's phone. There’s a fresh start troubleshooting guide for the android app. I couldn’t find an equivalent one for apple, but maybe it’ll help.

I will look into your suggestion that I set up the mobile app integration again later, but here are quick answers to your questions:

Yes, there was an iPhone XR when I first set up Home Assistant 4 years ago. We exchanged that phone for the iPhone 15 Pro late in 2023 (about 2.5 years ago). Not only is it not listed as the device tracker for my profile, but it is not even listed as an option. It might also be worth mentioning that since the iPhone XR disappeared from the premises, I also replaced the router. It is hard to imagine where an atavistic reference to the iPhone XR could be lurking.

By the way, the Mobile App spontaneously switched back to iPhone 15 Pro late yesterday afternoon. The device is still correct this morning. The last time it switched to the wrong value, I had just added iPhone 15 Pro to automations. Presumably the correlation was coincidental, but since I have no other ideas (other than yours), I figure that I will defer restoring the automations for a few days and see whether the integration sticks to the right value.

In case you still have issues, I came across this post & remembered your thread.
Check your iCloud account in case it stored the login data from your old phone. Might be a long shot & I have no idea how apple phones work, but it doesn’t hurt to try

I could not find iPhone XR specified anywhere, but the device has remained at iPhone 15 Pro for about a week now, so -- dare I say it -- I think that the problem has fixed itself.

1 Like