home-assistant / home-assistant/iOS

Location via iBeacon in one HA installation triggers wrong location updates in other HA instances

Open
#2,314 0 comments 1 reaction 0 assignees View on GitHub
bug ios
Dominant language
Swift
Stars
2.4k
Forks
520
Avg merge
7h 27m
Merged PRs (30d)
264

Description

**iOS device model, version and app version**

Model Name: iPhone 11
Software Version: 16.2
App version: 2023.2 (2023.444)

**Home Assistant Core Version**
Two (2) instances of HA runnning at different locations, both with version core-2023.1.4

**Describe the bug**
I have setup 2 instances of HA in different locations. Two days ago, I installed an iBeacon in one of the locations. I updated the configuration of HA server in that location to attach the ibeacon to the zone 'home' and, as advised, restarted both that server and the companion app. Everything seemed to work correctly, the iPhone detecting the ibeacon and updating the device tracker to 'home'. However, to my surprise, I realized that the every time the iPhone detected the ibeacon it not only updated the device tracker to ´home' in the HA server where the ibeacon was setup, but also in the other HA installation where there is no ibeacon at all.

At that point, i tried restarting the HA installation as well as the ios companion app (again), but the behavior remained the same.

**Expected behavior**
I expect ios companion to only update the the device tracker of the HA installation where the ibeacon detected is setup.

**Additional context**
If after the ibeacon is detected I do a manual location update, then the device tracker in the HA installation with no ibeacon is set temporarily and correctly to 'not_home', right until the next detection of the ibeacon.

In case it is relevant, the 'Location Sent' setting in both HA servers is set to 'Zone Name Only'.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.