Tractive GPS tracker

You need to use the version from master branch

@Danielhiversen unfortunately still not working even with master version

What is not working?
You need to do some debugging yourself and provide some more info.

I just added some debug logging, so you can turn on debugging for the component.

@Danielhiversen device tracker is always at home even if app shows away and I’m far away. Please tell me how can I help and I will do!

Is the location (latitude, longitude) updated?

Version 0.2 seems to be working

let me make another couple of tests

1 Like

Hi Daniel the component is working quite well, but

Sometimes i got this error in log:

2020-10-22 21:16:34 ERROR (MainThread) [custom_components.tractive.device_tracker] No points

This happens mainly when GPS is inside the house. I tried to locate the device_tracker on the map but apparently is not showing. Device_tracker status changed to not_home. Maybe in this case would be great to stay in the last known position.

Would be great to have also a service to update the position of device_tracker (don’t know when gets refreshed)

Hello guys.

I am new to home-assistant, but was glad to find out there is a component for tractive. I get a similar error to that of @enribomber,

I am as grateful as everybody else to @Danielhiversen, but I have some difficulties to understand the workflow (and actually to know if all is working fine)

  1. First, I do not get any card with the location / status
  2. Nor I get a history line either

password and username are OK. I get a at/home / away timeline. But this is pretty much about it

My newbie question is (a) how to debug, (b) how to manually add some information panels to the dashboard - i.e. I get only home/away bot no more than that.

Minor thing: How do I change the cat icon into a dog one :slight_smile: (I mean, I go to developer tools, status, but my changes have no effect there)

But this is the info I get

source_type: GPS
battery: 25
time: '2020-10-23T19:34:52'
alt: 514
speed: 1.1
course: 63
pos_uncertainty: 12
hw_status: null
battery_level: 25
temperature_state: NORMAL
clip_mounted_state: false
_version: 2c10e4600
friendly_name: SERIAL_ID
icon: 'mdi:dog'

Thanks in advance!

Great initiative, works flawlessly!
Couple of how-to questions though:

  1. Rename the devices so it can show a name instead of deviceID
  2. Create a dashboard card with only the battery status
  3. change cat icon to dog

For question one you need to go in knowdevices.yams file and add a friendly name. Same for the icon, just change from mdi:cat to mdi:dog

1 Like

Hi and thank you for a great initiative! I just started using HA so maybe there is some refresh rate I need to set since I don’t get frequent updates to the status of the gps, also I modified the radius of “home” in config. What I was thinking is setup an alert if my cat has “arrived home”… the cat rarely wonders way off so I updated the default in configuartion.yaml to:

device_tracker:
  - platform: tractive
    username: "<usr>"
    password: "<pwd>"
    
zone:
  # This will override the default home zone
  - name: Home
    latitude: <lat>
    longitude: <lon>
    radius: 10
    icon: mdi:account-multiple

The overview map reflects these changes but If I could create events to track when the cat enters a perimeter, my base problem however is the infrequent updates of the tracker, the “last updated” in app logged in as the user in config shows much more frequent updates.

Again, thank you for your work, I may one day have an automation of a blinking lamp + notification when my cat comes back from one of her strolls around the neighbourhood :smiley_cat:

I have same issue, unfortunately tractive updates after long time. Moreover mine seems to be not updated since at least 24h (i will make a couple of tries in the next days). I think that a solution could be to create a service to update the status of the tracked so you can create some automations. Another feature is the live tracking that is not present in home assistant, it would be great to have this also. Unfortunately i’m not able to do this, so we need to wait for @Danielhiversen

Any update on this. I have the same issue as enribomber. Would be a great integration to have if it worked, good job so far.
@Danielhiversen

Kind regards
Kenneth

1 Like

I can not reproduce it here, so any contribution to improve the component is welcome.

Just let me know what I can do.

Is there a way to implement the live tracking feature?

Thank you @Danielhiversen for this integration!

I seem to have similar issues as other people here.
Position tracking is not updated and latitude and longitude attributes remain the same in HA although positions in the tractive app are correctly updated.

I have noticed an issue in the time attribute in HA though.
The time attribute of the tractive component seems to reflect the last update of the tracking history in the tractive app minus 1 hour (e.g. time attribute HA shows 21:13, while last update in the app is 22:13).

Could this be a time zone issue? I am using CET.
Debug logs do not seem to show any errors.

I am using HA version 2021.2.0 running on docker and a tractive DOG.

I really appreciate your work and hope that we can find a solution to this problem.

Cheers

Thomas

Update:
@Danielhiversen, thank you for taking a look at the timing issue!
Today the position of the GPS was updated in HA, however timing of the last position was still an hour off. As timing is crucial for a lot of processes, I think fixing that issue would fix the other problems as well.

Good point with the timezone, I will check

I’ve been also had some issues with getting this working fully. Hopefully I’ve missed something simple! I can see the tracker ok, and it seems the GPS updates ok, but presence is not. It still shows home even when the GPS has tracked my dog being away with my partner on a walk. The status only shows away when tractive loses GPS signal overnight (it seems to do this at a very regular time!

Indeed, I have exactly the same behavior here. @Danielhiversen, this is the same as the GitHub issue.

The timing issue was on my side. The timezone of the docker container was set to UTC and not CET.
I fixed that and now the time attribute is reflecting the last update of the tracking history int the tractive app. I will have a look at the tracking behaviour tomorrow.

Sorry for the false track @Danielhiversen!

Update:
Tracking behaviour looks good, however I have the same issue as previously reported by others. The position of the tracker is outside of the ‘home’ zone but the device tracker in HA stills shows ‘home’ even after hours.