@ha_steve, I’ve had a similar issue occurring in both the 1.2 and 1.5 betas…I leave home and 5-6 minutes later the app marks me as “home” for a minute and then back to “not_home”. Additionally, I’ve been having issues with the app never moving from a region to “not_home” (it was noted in recent beta build notes but has returned) even though a notification pops up on the device indicating the device left a specific zone. I’ve attached my debug stuff (sanitized) below:
2018-10-05 08:28:03 INFO (MainThread) [homeassistant.components.http.view] Serving /api/ios/identify to 127.0.0.1 (auth: True)
2018-10-05 08:28:03 INFO (MainThread) [homeassistant.components.http.view] Serving /api/services/device_tracker/see to 127.0.0.1 (auth:
True)
2018-10-05 08:28:03 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=device_tracker,
service_data=host_name=xx, attributes=trigger=Geographic Region Exited, source_type=gps, battery=98, gps=[xx.xxxx, -xx.xxxx], dev_id=xx,
gps_accuracy=75, service=see, service_call_id=a495b5bc0f3c4cb58aec2912bdc61ffc>
2018-10-05 08:28:03 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=device_tracker.xx,
old_state=<state device_tracker.xx=MLMS; latitude=xx.xxxx, trigger=Geographic Region Entered, longitude=-xx.xxxx, source_type=gps,
friendly_name=nick, entity_picture=/local/nick.jpg, gps_accuracy=75, battery=99 @ 2018-10-05T08:22:54.641833-04:00>, new_state=<state
device_tracker.xx=MLMS; latitude=xx.xxxx, trigger=Geographic Region Exited, longitude=-xx.xxxx, source_type=gps, friendly_name=nick,
entity_picture=/local/nick.jpg, gps_accuracy=75, battery=98 @ 2018-10-05T08:22:54.641833-04:00>>
2018-10-05 08:28:03 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]:
service_call_id=a495b5bc0f3c4cb58aec2912bdc61ffc>
2018-10-05 08:28:03 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1673362736: Sending {'event': {'origin': 'LOCAL',
'data': {'domain': 'device_tracker', 'service_data': {'host_name': 'xx', 'attributes': {'trigger': 'Geographic Region Exited'},
'source_type': 'gps', 'battery': 98, 'gps': [xx.xxxx, -xx.xxxx], 'dev_id': 'np', 'gps_accuracy': 75}, 'service': 'see', 'service_call_id':
'a495b5bc0f3c4cb58aec2912bdc61ffc'}, 'context': {'user_id': '933584a4b61e4a1891f637ee1867236e', 'id': 'bc6a1ee974d045d8a52cbe0588e0592c'},
'time_fired': datetime.datetime(2018, 10, 5, 12, 28, 3, 276263, tzinfo=<UTC>), 'event_type': 'call_service'}, 'id': 1, 'type': 'event'}
2018-10-05 08:28:03 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state device_tracker.xx=MLMS;
latitude=xx.xxxx, trigger=Geographic Region Exited, longitude=-xx.xxxx, source_type=gps, friendly_name=nick,
entity_picture=/local/nick.jpg, gps_accuracy=75, battery=98 @ 2018-10-05T08:22:54.641833-04:00>
2018-10-05 08:28:03 DEBUG (Thread-5) [pyhap.characteristic] set_value: OccupancyDetected to False
2018-10-05 08:28:03 DEBUG (Thread-5) [homeassistant.components.homekit.type_sensors] device_tracker.xx: Set to 0
2018-10-05 08:28:03 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1673362736: Sending {'event': {'origin': 'LOCAL',
'data': {'entity_id': 'device_tracker.xx', 'old_state': <state device_tracker.np=MLMS; latitude=xx.xxxx, trigger=Geographic Region Entered,
longitude=-xx.xxxx, source_type=gps, friendly_name=nick, entity_picture=/local/nick.jpg, gps_accuracy=75, battery=99 @ 2018-10-
05T08:22:54.641833-04:00>, 'new_state': <state device_tracker.xx=MLMS; latitude=xx.xxxx, trigger=Geographic Region Exited, longitude=-
xx.xxxx, source_type=gps, friendly_name=nick, entity_picture=/local/nick.jpg, gps_accuracy=75, battery=98 @ 2018-10-05T08:22:54.641833-
04:00>}, 'context': {'user_id': None, 'id': '462ab0e98e2f4c0d8cbf7e62324512ef'}, 'time_fired': datetime.datetime(2018, 10, 5, 12, 28, 3,
283064, tzinfo=<UTC>), 'event_type': 'state_changed'}, 'id': 1, 'type': 'event'}
2018-10-05 08:28:03 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1673362736: Sending {'event': {'origin': 'LOCAL',
'data': {'service_call_id': 'a495b5bc0f3c4cb58aec2912bdc61ffc'}, 'context': {'user_id': '933584a4b61e4a1891f637ee1867236e', 'id':
'bc6a1ee974d045d8a52cbe0588e0592c'}, 'time_fired': datetime.datetime(2018, 10, 5, 12, 28, 3, 289674, tzinfo=<UTC>), 'event_type':
'service_executed'}, 'id': 1, 'type': 'event'}
It looks as if the app kept the device’s location as the zone it exited and didn’t change to “not_home” when it did indeed exit the zone.