Traccar.org (GPS/GPRS Tracker) custom platform

@@ludeeus made an official component. This one will be deprecated

Official one :.
https://www.home-assistant.io/components/device_tracker.traccar/

Pawny, I was not able to get the traccar android app to work. However, the iOS app did, in fact, work. Which URL did you use in the Android app?

@koen01 Is there anyway you can work with @ludeeus towards the official component. For me, (as well as many others) the custom component works better than the official one as it passes attributes through.

Attributes are key to the road-map of this component as there are so many protocols in Traccar as well as associated attributes for each protocol.

Unfortunately, I have absolutely zero idea on how to progress either the custom component or the official one myself, however I am more than happy to test. I use ODBII as well as iOs, Android and Watch protocols in traccar, so think I have a wide enough spectrum of protocols in traccar to test with in HAā€¦

@uiguy anyone can contribute to official platforms :wink:

PyPI-package: https://github.com/ludeeus/pytraccar/blob/master/pytraccar/api.py
HA-Platform: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/device_tracker/traccar.py

battery_level, speed and motion are in the next version

@koen01 I was not aware that there was a custom_component for this :frowning:

anyone that knows what they are doing from a programming point of view. I am happy to contribute where I can, but unfortunately I am not a developer, but happy to work and be shown what to doā€¦

Can anyone recommend a good tracker that works with 3G & 4G? Here in Australia we no longer use the old 2G network, so a lot of the trackers I come across are 2G.

Iā€™m using this one:

Works fine out of the box. Using with an Aldi 365 Sim that is $15 a year. Data usage isnā€™t even measurable, not used a cent since activation.

1 Like

Thanks mate. Thatā€™s good to know.

I use the 2g version of this one: https://www.alibaba.com/product-detail/New-Arrival-4G-wifi-hotspot-obd_60652219084.html

These are great because they can be programmed to go into sleep mode when ignition is off meaning that you use less data. It also provides diagnosticsā€¦

Hi,

I used to have this working but then changed devices in traccar and now need to add this computed attribute in traccar, but I am a bit stuck on how to do thisā€¦ could you help at all?

Hi,

Iā€™m testing this custom platform integration, and I have a doubt.

  • I always get 0 as accuracy. Itā€™s needed to set any special config?
  • Iā€™ts possible to filter positions by accuracy?

Thanks

Hi guys, so the traccar component works awesome, but it shows the speed in knots. In the Traccar add-on itself its in KM/H thanks to changing te attribute but how can i do this in the frontend? I need to multiply it with: 1.852.

Anyone has a idea how to do that?

Here you goā€¦

sensor:
  - platform: template
    sensors:
      traccar_speed:
        friendly_name: "Traccar Speed"
        unit_of_measurement: 'km/h'
        value_template: "{{ (state_attr('device_tracker.mycar', 'speed')|float * 1.852) | round(2) }}"
2 Likes

Awesome! Will test tonight. Thanks