One2Track integration

Definitely would be nicer, but I just wanted to make something quick that basically allows anyone to implement any one2track web function code without me having to research and map them all for now :slight_smile:

Feel free to merge any of my changes to your repo, or DM me if you want to arrange it another way.

FYI: Just pushed a new version which also has a “Send Message to device” service

Thanks for the plugin, it immediately found my device.
However, there’s a strange behaviour, and I’m not sure if it’s plugin or HA related.
The device was found and when I check it’s location on the HA map, I can see where it actually is. Yet although the HA Map shows me the right location, the status is continously showing “Home”, although the map tells me otherwise (the map is correct by the way).
Anyone any idea??

lol this is awesome; last year I quickly cooked a shell script to scrape their webinterface’s api’s and push it to mqtt, running in a docker next to HA but had to stop using it; missed a few replies to this topic and now there’s a beautiful integration!

Thanks guys!

1 Like

same here… couldnt figure out yet

Thank you! It appears that the intergration is working well with the two trackers I’ve got. Combining functionalities such as sending messages and forcing an update does sound interesting!

1 Like

Just too bad their new watches now force you to use their sim cards. So you cannot place your own sim in there… “anti theft measures” is one of the reasons, i would say business is the one :slight_smile: back to the time you phone was locked to your provider :rofl:

The signal strength is mostly an arbitrary 0-100% number that we receive from the watches. this strength is basically a score between some thresholds of decibels of signal the watch receives.

The currency should popup eventually for the balance. It’s just that we currently only sell the watches in countries that use the Euro. It does seem though that we will have to add a currency field soon.

Also amazing work on the plugin :slight_smile: I’ll take a look at it when I’ll have some free time, the least i can do is provide the cmd_codes so you guys won’t have to guess them. they differ a bit from device model to device model but we are in the process of moving away from the old architecture and we are trying to make these the same for all devices we have on offer.

2 Likes

Same here. I have created an issue with the github project at https://github.com/vandernorth/one2track/issues/1

It seems to happen when devices are inside and ‘WIFI’ as a connection type.

Removed it in my own release:

Also working on adding it as a single device and the attributes as sensors and one device_tracker.

1 Like

Been trying out your fork. It indeed no longer sets the device_tracker state to ‘home’ when location type is ‘wifi’, but does not update the zone names to those set in the ‘Safety areas’ on the One2track app either. Manual reloading the integration does set the correct zone states.

It currently does not have the safety areas implemented. I do not know if these are available on the website/“API”.

I’m using the zones that are made and set in Home Assistant, not from one2trackgps.com. This makes more sense to me since i’m using these zones for multiple device trackers (phones and cars) and do presence tracking fully in HA. You can do the same as a workaround?

Also firstly focussing on implementing it as a “device” with one device_tracker and multiple sensors.

1 Like

Updated the repo.

The watch is shown as one device with one device tracker and multiple sensors.
I’ve added as much as device_classes and icons as possible. Also some sensors are disabled by default. Battery is also stated in the device and HA zones are included.

If any adjustments are needed, let me know.

For privacy purposes i’ve deleted some information out of the screenshot:

1 Like

Just wanted to let you know that this is working really nice now! It updates location correctly and am not using the app’s geofence zones but those from Home Assistant. I do wish we could trigger the button inside the app to update the location of the device manually. That said, I have to say, I am very happy with how it works!

There is one more glitch i noticed. Sometimes, when the location cannot be determined by GPS or WiFi (the app says lbs), it triggers a zone change, even though the watch has not moved. When you look in the app, the circle becomes quite large and way bigger than the zones as i have them defined. I assume this also happens when taking the underground or residing in large buildings for a while. If these could be filtered out somehow, that would be great!

How does this work? Cannot fid anything about it.