core icon indicating copy to clipboard operation
core copied to clipboard

Tractive tracker not updating

Open strutings opened this issue 7 months ago • 7 comments

The problem

Tractive is not updating unless iOS-app is opened.

What version of Home Assistant Core has the issue?

core-2025.4.4

What was the last working version of Home Assistant Core?

core-2025.4.4

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Tractive

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tractive/

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?

`2025-05-03T12:07:13.894223+02:00 odin hass[85625]: 2025-05-03 12:07:13.889 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'pet_id': '6814c7d0dc469266c1c398b9', 'wellness': {'no_data_reason': 'NO_SCORE_YET', 'data_tomorrow': False, 'remaining_days_until_score': 6}, 'activity': {'hourly_distribution': [4, 12, 3, 2, 9, 29, 23, 23, 10, 40, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'minutes_active': 175, 'minutes_rest': 37, 'minutes_goal': 160, 'calories': 118, 'average_minutes_active': 142, 'average_minutes_rest': 14, 'current_streak': 1, 'best_day': True}, 'sleep': {'minutes_night_sleep': 403, 'minutes_day_sleep': 0, 'sleep_phases': [{'time_offset': 0, 'time_span': 106, 'type': 'NIGHT'}, {'time_offset': 106, 'time_span': 15, 'type': 'OTHER'}, {'time_offset': 121, 'time_span': 119, 'type': 'NIGHT'}, {'time_offset': 240, 'time_span': 9, 'type': 'OTHER'}, {'time_offset': 249, 'time_span': 73, 'type': 'NIGHT'}, {'time_offset': 322, 'time_span': 34, 'type': 'OTHER'}, {'time_offset': 356, 'time_span': 22, 'type': 'NIGHT'}, {'time_offset': 378, 'time_span': 2, 'type': 'OTHER'}, {'time_offset': 380, 'time_span': 3, 'type': 'NIGHT'}, {'time_offset': 383, 'time_span': 53, 'type': 'OTHER'}, {'time_offset': 436, 'time_span': 37, 'type': 'NIGHT'}, {'time_offset': 473, 'time_span': 14, 'type': 'OTHER'}, {'time_offset': 487, 'time_span': 62, 'type': 'NIGHT'}, {'time_offset': 549, 'time_span': 32, 'type': 'OTHER'}, {'time_offset': 581, 'time_span': 7, 'type': 'NIGHT'}, {'time_offset': 588, 'time_span': 44, 'type': 'OTHER'}], 'sleep_phases_time_span': 1440}, 'bark': {'label': None, 'no_data_reason': 'NOT_SUPPORTED', 'intense_barking_alert_timestamp': None}, 'health_monitoring_status': [{'alert_type': 'ACTIVITY_DEGRADATION', 'alert_status': 'NOT_ENOUGH_DATA'}, {'alert_type': 'LONG_TERM_ACTIVITY_DEGRADATION', 'alert_status': 'NOT_ENOUGH_DATA'}], 'health_alerts': {'unseen_count': 0}, 'associated_data': [], 'message': 'wellness_overview'} ``


### Additional information

_No response_

strutings avatar May 03 '25 10:05 strutings

Hey there @danielhiversen, @zhulik, @bieniu, mind taking a look at this issue as it has been labeled with an integration (tractive) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tractive can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tractive Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tractive documentation tractive source (message by IssueLinks)

home-assistant[bot] avatar May 03 '25 10:05 home-assistant[bot]

The problem

Tractive is not updating unless iOS-app is opened.

What version of Home Assistant Core has the issue?

core-2025.4.4

What was the last working version of Home Assistant Core?

core-2025.4.4

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Tractive

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tractive/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

`2025-05-03T12:07:13.894223+02:00 odin hass[85625]: 2025-05-03 12:07:13.889 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'pet_id': '6814c7d0dc469266c1c398b9', 'wellness': {'no_data_reason': 'NO_SCORE_YET', 'data_tomorrow': False, 'remaining_days_until_score': 6}, 'activity': {'hourly_distribution': [4, 12, 3, 2, 9, 29, 23, 23, 10, 40, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'minutes_active': 175, 'minutes_rest': 37, 'minutes_goal': 160, 'calories': 118, 'average_minutes_active': 142, 'average_minutes_rest': 14, 'current_streak': 1, 'best_day': True}, 'sleep': {'minutes_night_sleep': 403, 'minutes_day_sleep': 0, 'sleep_phases': [{'time_offset': 0, 'time_span': 106, 'type': 'NIGHT'}, {'time_offset': 106, 'time_span': 15, 'type': 'OTHER'}, {'time_offset': 121, 'time_span': 119, 'type': 'NIGHT'}, {'time_offset': 240, 'time_span': 9, 'type': 'OTHER'}, {'time_offset': 249, 'time_span': 73, 'type': 'NIGHT'}, {'time_offset': 322, 'time_span': 34, 'type': 'OTHER'}, {'time_offset': 356, 'time_span': 22, 'type': 'NIGHT'}, {'time_offset': 378, 'time_span': 2, 'type': 'OTHER'}, {'time_offset': 380, 'time_span': 3, 'type': 'NIGHT'}, {'time_offset': 383, 'time_span': 53, 'type': 'OTHER'}, {'time_offset': 436, 'time_span': 37, 'type': 'NIGHT'}, {'time_offset': 473, 'time_span': 14, 'type': 'OTHER'}, {'time_offset': 487, 'time_span': 62, 'type': 'NIGHT'}, {'time_offset': 549, 'time_span': 32, 'type': 'OTHER'}, {'time_offset': 581, 'time_span': 7, 'type': 'NIGHT'}, {'time_offset': 588, 'time_span': 44, 'type': 'OTHER'}], 'sleep_phases_time_span': 1440}, 'bark': {'label': None, 'no_data_reason': 'NOT_SUPPORTED', 'intense_barking_alert_timestamp': None}, 'health_monitoring_status': [{'alert_type': 'ACTIVITY_DEGRADATION', 'alert_status': 'NOT_ENOUGH_DATA'}, {'alert_type': 'LONG_TERM_ACTIVITY_DEGRADATION', 'alert_status': 'NOT_ENOUGH_DATA'}], 'health_alerts': {'unseen_count': 0}, 'associated_data': [], 'message': 'wellness_overview'} ``

This is the logs when I open tractive app on phone:

2025-05-03T12:11:14.489935+02:00 odin hass[85625]: 2025-05-03 12:11:14.485 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'message': 'tracker_status', 'tracker_id': 'QBUWJZFA', 'tracker_state': 'OPERATIONAL', 'tracker_state_reason': 'POWER_SAVING', 'position': {'time': 1746260845, 'latlong': [63.395954, 10.424335], 'sensor_used': 'KNOWN_WIFI', 'accuracy': 30, 'altitude': 99, 'power_saving_zone_id': '6814c97a7d26c789236d642d', 'time_rcvd': 1746260848}, 'hardware': {'time': 1746267071, 'battery_level': 80, 'temperature_state': None, 'power_saving_zone_id': '6814c97a7d26c789236d642d'}, 'charging_state': 'NOT_CHARGING', 'battery_state': 'REGULAR', 'power_saving_zone_id': '6814c97a7d26c789236d642d', 'prioritized_zone': {'_id': '6814c97a7d26c789236d642d', 'type': 'POWER_SAVING', 'last_seen_at': 1746260845, 'entered_at': 1746192787}} 2025-05-03T12:11:14.578850+02:00 odin hass[85625]: 2025-05-03 12:11:14.576 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'message': 'tracker_status', 'tracker_id': 'QBUWJZFA', 'tracker_state': 'OPERATIONAL', 'tracker_state_reason': 'POWER_SAVING', 'position': {'time': 1746267071, 'latlong': [63.395954, 10.424335], 'sensor_used': 'KNOWN_WIFI', 'accuracy': 30, 'altitude': 99, 'power_saving_zone_id': '6814c97a7d26c789236d642d', 'time_rcvd': 1746267074}, 'hardware': {'time': 1746267071, 'battery_level': 80, 'temperature_state': None, 'power_saving_zone_id': '6814c97a7d26c789236d642d'}, 'charging_state': 'NOT_CHARGING', 'battery_state': 'REGULAR', 'power_saving_zone_id': '6814c97a7d26c789236d642d', 'prioritized_zone': {'_id': '6814c97a7d26c789236d642d', 'type': 'POWER_SAVING', 'last_seen_at': 1746260845, 'entered_at': 1746192787}} 2025-05-03T12:11:14.611267+02:00 odin hass[85625]: 2025-05-03 12:11:14.610 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'message': 'tracker_status', 'tracker_id': 'QBUWJZFA', 'tracker_state': 'OPERATIONAL', 'tracker_state_reason': 'POWER_SAVING', 'charging_state': 'NOT_CHARGING', 'battery_state': 'REGULAR', 'power_saving_zone_id': '6814c97a7d26c789236d642d', 'prioritized_zone': {'_id': '6814c97a7d26c789236d642d', 'type': 'POWER_SAVING', 'last_seen_at': 1746267071, 'entered_at': 1746192787}} 2025-05-03T12:11:15.162589+02:00 odin hass[85625]: 2025-05-03 12:11:15.161 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'pet_id': '6814c7d0dc469266c1c398b9', 'local_day': 3, 'local_month': 5, 'local_year': 2025, 'associated_data': ['SLEEP_OVERVIEW'], 'message': 'activity_data_updated'} 2025-05-03T12:11:15.240969+02:00 odin hass[85625]: 2025-05-03 12:11:15.234 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'pet_id': '6814c7d0dc469266c1c398b9', 'wellness': {'no_data_reason': 'NO_SCORE_YET', 'data_tomorrow': False, 'remaining_days_until_score': 6}, 'activity': {'hourly_distribution': [4, 12, 3, 2, 9, 29, 23, 23, 10, 40, 41, 31, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'minutes_active': 222, 'minutes_rest': 56, 'minutes_goal': 160, 'calories': 121, 'average_minutes_active': 142, 'average_minutes_rest': 14, 'current_streak': 1, 'best_day': True}, 'sleep': {'minutes_night_sleep': 403, 'minutes_day_sleep': 27, 'sleep_phases': [{'time_offset': 0, 'time_span': 106, 'type': 'NIGHT'}, {'time_offset': 106, 'time_span': 15, 'type': 'OTHER'}, {'time_offset': 121, 'time_span': 119, 'type': 'NIGHT'}, {'time_offset': 240, 'time_span': 9, 'type': 'OTHER'}, {'time_offset': 249, 'time_span': 73, 'type': 'NIGHT'}, {'time_offset': 322, 'time_span': 34, 'type': 'OTHER'}, {'time_offset': 356, 'time_span': 22, 'type': 'NIGHT'}, {'time_offset': 378, 'time_span': 2, 'type': 'OTHER'}, {'time_offset': 380, 'time_span': 3, 'type': 'NIGHT'}, {'time_offset': 383, 'time_span': 53, 'type': 'OTHER'}, {'time_offset': 436, 'time_span': 37, 'type': 'NIGHT'}, {'time_offset': 473, 'time_span': 14, 'type': 'OTHER'}, {'time_offset': 487, 'time_span': 62, 'type': 'NIGHT'}, {'time_offset': 549, 'time_span': 32, 'type': 'OTHER'}, {'time_offset': 581, 'time_span': 7, 'type': 'NIGHT'}, {'time_offset': 588, 'time_span': 71, 'type': 'OTHER'}, {'time_offset': 659, 'time_span': 6, 'type': 'DAY'}, {'time_offset': 665, 'time_span': 4, 'type': 'OTHER'}, {'time_offset': 669, 'time_span': 30, 'type': 'DAY'}, {'time_offset': 699, 'time_span': 32, 'type': 'OTHER'}], 'sleep_phases_time_span': 1440}, 'bark': {'label': None, 'no_data_reason': 'NOT_SUPPORTED', 'intense_barking_alert_timestamp': None}, 'health_monitoring_status': [{'alert_type': 'ACTIVITY_DEGRADATION', 'alert_status': 'NOT_ENOUGH_DATA'}, {'alert_type': 'LONG_TERM_ACTIVITY_DEGRADATION', 'alert_status': 'NOT_ENOUGH_DATA'}], 'health_alerts': {'unseen_count': 0}, 'associated_data': [], 'message': 'wellness_overview'} 2025-05-03T12:11:15.241953+02:00 odin hass[85625]: 2025-05-03 12:11:15.238 DEBUG (MainThread) [homeassistant.components.tractive] Received event: {'content': {'petId': '6814c7d0dc469266c1c398b9', 'activityDataSyncedAt': '2025-05-03T10:11:15.128191690Z', 'activity': {'minutesActive': 222, 'minutesGoal': 160}, 'rest': None, 'sleep': {'minutesDaySleep': 26, 'minutesNightSleep': 403}, 'bark': None, 'restingHeartRate': None, 'restingRespiratoryRate': None, 'healthAlerts': {'unseenCount': 0}, 'associatedData': []}, 'message': 'health_overview'}

strutings avatar May 03 '25 10:05 strutings

Please describe exactly what the problem is. The current description says absolutely nothing.

bieniu avatar May 03 '25 12:05 bieniu

Well, all sensors are added except the one for long term stats. Seems like the integration it self are installed correctly, but no sensors will update unless I open the ios app on my phone. Trying to turn on Live tracking, tracker buzzer and tracker led result in nothing.

strutings avatar May 03 '25 12:05 strutings

Yes, launching the app syncs tracker data to the Tractive cloud and then the integration receives data from the Tractive API. Tracker data syncs even when the app is not launched.

bieniu avatar May 04 '25 14:05 bieniu

Yes, launching the app syncs tracker data to the Tractive cloud and then the integration receives data from the Tractive API. Tracker data syncs even when the app is not launched.

What's the default update interval between integration and api? Followed this one closely for the last few days now, and it seems like it's no regular updates, just once every six hours or so when not using app at all. Is that normal behavior?

strutings avatar May 05 '25 18:05 strutings

There is no update interval. When Tractive API sends new data, it will be available in HA.

You can easily check how often new data reaches HA by observing calories burned sensor.

bieniu avatar May 05 '25 19:05 bieniu

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.