Traccar is modern GPS Tracking Platform, which is now available as an add-on and allows you to run your GPS Tracking software without any cloud.
Traccar supports more protocols and device models than any other GPS tracking system on the market, straight from your Home Assistant instance. You can select GPS trackers from a variety of vendors from low-cost Chinese models to high-end quality brands.
Traccar also has native mobile apps available for Android and iOS platforms so that you can track those as well. AND! With the Home Assistant traccar component (introduced in 0.83) the data in Traccar will be sent back into your Home Assistant instance as well.
Installation
The installation of this add-on is pretty straightforward and not different in comparison to installing any other add-on.
Ensure you have the official âMariaDBâ add-on installed and running!
Search for the âTraccarâ add-on in the add-on store and install it.
Start the âTraccarâ add-on
Check the logs of the âTraccarâ add-on to see if everything went well.
Click the âOPEN WEB UIâ button and log in using admin/admin.
Be sure to change the username, email, and password!
Support
You can always try to get support from the community here at the Home Assistant community forums, join the conversation!
Questions? You have several options to get them answered:
The primary goal of our add-ons project is to provide you (as a Home Assistant user) with additional, high quality, add-ons that allow you to take your automated home to the next level.
I am Franck Nijhof, and I have 30 years of programming experience, in many languages. I am using this experience to work on the Home Assistant project by giving back my knowledge and time to the open source community.
The add-on you are currently looking at right now was developed/packaged by me. It is not the only add-on I have created; there are many many more
However, I have a problem⌠I am an addict. A addict that is. Lucky for you, I turn that C8H10N4O2 (caffeine molecule) into code (and add-ons)!
If you want to show your appreciation, consider supporting me for buying a cup of high octane wakey juice via one of the platforms below!
Enjoy your add-on, while I enjoy the brain juice.
Thanks for all the
âŚ/Frenck
P.S.: In case you want to ask me a question: AMA (Ask Me Anything). Most of the time I am online at the Discord chat. (I go by @Frenck in there as well).
Anyone know if it is the Traccar android client that canât handle https or if itâs in the addon?
Trying http://my.duckdns.org:5055 in the client works, but not https://
Https:// works fine on the web UI.
Hi. Thank you very much for this awesome add-on. Iâve followed the instructions and I already have the traccar server working. But I havenât succeded in the hassio integration part in order to use it as a device tracker.
I have used the snippet found in the documentation:
The add-on creates a âtraccar.xmlâ file inside your /config/ directory. This is where you should make any config changes, and changes here will override default values in the default config file. If you some reason you need to edit the actual default config file (should not be nessessary, AFAIK) the default config file is stored in â/etc/traccar/hassio.xmlâ
OK, finally got traccar platform working. Using internal IP, but was being forced to https. had to set ssl: true and verify_ssl:false. Full working config:
Anyone else have this error, i dont know what it impacts, i can start the addon but i have problems with using google map instead of open street map. But that might be something else.
I have traccar working fine, itâs using SSL with a valid public cert and devices are reporting to it but I just canât get the device_tracker integration to work
This is the only entry I get in the home-assistant.log:
2018-12-05 22:35:01 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform traccar
Iâm using the following config as per @jaalperin and @jvmonjo as i was getting the error [pytraccar.api] Error connecting to Traccar, Cannot connect to host a0d7b954-traccar:8072 ssl:None [Name does not resolve]
platform: traccar
ssl: true # since http is forced to https
verify_ssl: false # so traccar wonât attempt to resolve IP with DNS
host: !secret traccar_host
port: !secret traccar_port
username: !secret traccar_username
password: !secret traccar_password
interval_seconds: 120
consider_home: 60
track_new_devices: yes
which seems to be the same as yours.
Has anything showed up in known_devices.yaml (with track = false)?
Assuming the Traccar server is running as a hassio addon, try 127.0.0.1. Also try adding http:// or https:// to host.
Restart both HA and the addon (to make sure all changes get recognized). Iâm sur I didnât fo this enough.
Sorry to suggest what you may have already tried. Thatâs the extent of it from me. Took me hours before I stumbled onto settings that worked for me.