Home Assistant Community Add-on: Traccar

Good afternoon XauMasala.
I hope not to bother.
Configure as you explained, on the client and nothing for trackers in .yaml
Of course, with my DNS:5055 for the client and I opened port 5055 for the IP of my Home Assistant on my router.
Just this and it has worked perfectly until one of the Home Assistant updates.
From time to time I go back to that version and it still works for me, I mean core_2022.6.6
.
XauMasala:
“… To send data from Traccar Client to Traccar Server I have configured my “Traccar Client” to use the server URL like this http://myserver.duckdns.org:5055 (I have duckdns installed and configured in my home assistant ).The port 5055 is the port used by “Traccar Client” devices.And I also opened this port in my router. …”.
.
Could you give me a little light.

Thank you so much


Buenas tardes XauMasala.
Espero no molestar.
Configure como tu explicaste, en el cliente y nada para rastreadores en .yaml
Claro está, con mi DNS:5055 para el cliente y abrí el puerto 5055 para la IP de mi Home Assistant en mi router.
Solo esto y ha funcionado perfectamente hasta una de las actualizaciones de Home Assistant.
De vez en cuando retrocedo a dicha version y me sigue funcionando, me refiero a core_2022.6.6
.
XauMasala:
“… To send data from Traccar Client to Traccar Server I have configured my “Traccar Client” to use the server URL like this http://myserver.duckdns.org:5055 (I have duckdns installed and configured in my home assistant). The port 5055 is the port used by “Traccar Client” devices. And I also opened this port in my router. …”.
.
Podrías darme un poco de luz.

Muchas Gracias

Goodnight.
I request help, thank you.
I have Home Assistant and Traccar with the latest update.
I intend to use my HA as a server, not the Traccar DEMO.
I install according to the points of Traccar-Documentation-Installation, although the points “6” the part of addmin/admin and the “7” I don’t know where to configure it.
When clicking on Tracar-Documentacion-“OPEN WEB UI”, a web with the URL: “http://IP de mi HA:8082” and a blank page opens.
In Traccar-Configuration-Network I have configured the default port 8082.
My HA port is 8123.
In Traccar-information the Hostname is a0d7b954-traccar. (Note there is a “-” not a “_”)
By default, when clicking on Traccar-Documentacion-MY ADN-ON, you discover: Your instance URL: http://IP of my HA:5055.
.
THE THREE QUESTIONS
1.- What port do I have to configure in Traccar-Configuration-Network 8082 or 8123 or 5055 or …?
2.- When pressing “OPEN WEB UI”, what URL do I have to configure? or I leave the default one, since it can be edited and configured.
3.- What is the URL that opens Traccar.
.
With previous versions that worked correctly for me without any configuration in “/config/configuration.yaml” it was: “http://IP of my HA:8123/a0d7b954_traccar/dashboard”.
.
THANKS A LOT.

===============================================================

Buenas noches.
Solicito ayuda, gracias.
Tengo Home Assistant y Traccar con la última actualizacion.
Pretendo usar mi HA como servidor, no el de DEMO de Traccar.
Instalo segun los puntos de Traccar-Documentacion-Instalación, aunque los puntos “6” la parte de addmin/admin y el “7” no se donde configurarlo.
Al pulsar en Tracar-Documentacion-“OPEN WEB UI”, se abre una web con la URL: “http://IP de mi HA:8082” y página en blanco.
En Traccar-Configuracion-Red tengo configurado el puerto por defecto 8082.
El puerto de mi HA es 8123.
En Traccar-informacion el Nombre de host es a0d7b954-traccar. (Ojo hay un “-” no una “_”)
Por defecto al pulsar en Traccar-Documentacion-MY ADN-ON, descubre: Your instance URL: http://IP de mi HA:5055.
.
LAS TRES PREGUNTAS
1.- ¿Que puerto tengo que configurar en En Traccar-Configuracion-Red 8082 o 8123 o 5055 o …?
2.- Al pulsar “OPEN WEB UI”, ¿Que URL tengo que configurar? o dejo la de por defecto, ya que se puede editar y configurar.
3.- ¿Cual es la URL que abre Traccar.
.
Con versiones anteriores que me funcionaban correctamente sin ninguna configuración en “/config/configuration.yaml” era: “http://IP de mi HA:8123/a0d7b954_traccar/dashboard”.
.
MUCHAS GRACIAS.

I installed the traccar client in my phone.
I leave all settings as default except the server url I change to me external HA http://mydns.ddns.net:5055
Then I start the “service status” in traccar client.

In my home router I make port forward all external devices, port 5055 and direct to my HA internal IP and 5055.

Then I go to settings/addons/traccar and check logs to see my phone device data.

Next go to “open web interface” and the main changes from USA to my location.

My turn to ask for some help…I’m in the UK and have 2 vehicle trackers from “Back2you” I have been trying to get them in to Traccar for a few weeks now without success. I took out one device sim card and found it’s IEMI number and entered that in the traccar device id. But I don’t know which Traccar I should un edit in the traccar.xml. Does anyone know which it is for “Back2you” devices?

Screenshot_20220809-200906_One UI Home

Thanx in advance.

This is really annoying - but it again doesn’t work…

Restarting HA may NOT help.

Hi Frenck, sorry to come back to this topic. Do you have any advise on what reverse geo easily to be used? It seems all of them require some sort of registration. I had hope there was one to easily be used.
I am not planning to lookup a lot, but just once in a while.

Hello Mate,

Most devices come from Schenzen, meaning that there are certain protocols that each follow.

If your device is not listed in the “The List” then you need to do some sniffing

Also, let me know if you need sim cards, I can get really cheap, roaming ones (from Jersey) that work on all the networks in the UK meaning that you will always get the best signal…

Hi all,

I’m trying to configure Traccar add-on in my Home Assistance instance using a Freematics One+ Traccar edition tracker.

I have installed mariadb and Traccar, logged in and set passwords. But when I try to enable the freematics.port entry in /config/traccar.xml, Traccar never seems to pick up the change and the port never opens.

My /config/traccar.xml file:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <!--
    Loads default configuration for the Hass.io add-on.
    WARNING: Do not remove this line!
    -->
    <entry key='config.default'>/etc/traccar/hassio.xml</entry>

    <!--
    This is the main configuration file. All your configuration parameters should be placed in this file.
    Parameters in the main config file override values in the default file. Do not
    remove "config.default" parameter from this file unless you know what you are doing.
    For list of available parameters see following page:
        https://www.traccar.org/configuration-file/
    -->

    <!-- Enter you custom configuration below this line -->
    
    <entry key='freematics.port'>5170</entry>

</properties>

If I try to telnet to port 5170 on my HA, I get the following message:

telnet 192.168.1.200 5170
Connecting To 192.168.1.200...Could not open connection to the host, on port 5170: Connect failed

If I telnet to port 5055, I get the expected console prompt.

Edit:
My log from the Traccar addon:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
 Add-on: Traccar
 Modern GPS Tracking Platform
-----------------------------------------------------------
 Add-on version: 0.17.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.0  (amd64 / generic-x86-64)
 Home Assistant Core: 2022.9.7
 Home Assistant Supervisor: 2022.09.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/mysql.sh
cont-init: info: /etc/cont-init.d/mysql.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
cont-init: info: running /etc/cont-init.d/traccar.sh
cont-init: info: /etc/cont-init.d/traccar.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun traccar (no readiness notification)
s6-rc: info: service legacy-services successfully started
[14:50:18] INFO: Starting Traccar server...
2022-09-30 14:50:20  INFO: HikariPool-1 - Starting...
2022-09-30 14:50:21  INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@2250b9f2
2022-09-30 14:50:21  INFO: HikariPool-1 - Start completed.
2022-09-30 14:50:21  INFO: Clearing database change log checksums
2022-09-30 14:50:21  INFO: Successfully acquired change log lock
2022-09-30 14:50:22  INFO: Successfully released change log lock
2022-09-30 14:50:22  INFO: Successfully acquired change log lock
2022-09-30 14:50:22  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.json.JsonChangeLogParser Unable to get public no-arg constructor
2022-09-30 14:50:22  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.yaml.YamlChangeLogParser Unable to get public no-arg constructor
2022-09-30 14:50:24  INFO: Reading from traccar.DATABASECHANGELOG
2022-09-30 14:50:25  INFO: Reading from traccar.DATABASECHANGELOG
2022-09-30 14:50:25  INFO: Cannot load service: liquibase.hub.HubService: Provider liquibase.hub.core.StandardHubService could not be instantiated
2022-09-30 14:50:25  INFO: Successfully released change log lock
2022-09-30 14:50:27  INFO: Operating system name: Linux version: 5.15.67 architecture: amd64
2022-09-30 14:50:27  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.15+10-alpine-r1
2022-09-30 14:50:27  INFO: Memory limit heap: 512mb non-heap: 0mb
2022-09-30 14:50:27  INFO: Character encoding: UTF-8 charset: UTF-8
2022-09-30 14:50:27  INFO: Version: 5.0
2022-09-30 14:50:27  INFO: Starting server...
2022-09-30 14:50:27  INFO: jetty-10.0.7; built: 2021-10-06T19:34:02.766Z; git: da8a4553af9dd84080931fa0f8c678cd2d60f3d9; jvm 11.0.15+10-alpine-r1
[14:50:28] INFO: Starting NGinx server...
2022-09-30 14:50:28  INFO: Started o.t.w.@5eeee124{/,null,AVAILABLE}
2022-09-30 14:50:28  INFO: Session workerName=node0
2022-09-30 14:50:29  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2022-09-30 14:50:30  INFO: Started o.e.j.s.ServletContextHandler@66b90ab3{/,null,AVAILABLE}
2022-09-30 14:50:30  INFO: Started ServerConnector@7fdab70c{HTTP/1.1, (http/1.1)}{localhost:18682}
2022-09-30 14:50:30  INFO: Started Server@586843bc{STARTING}[10.0.7,sto=0] @11168ms
2022-09-30 14:50:30  WARN: No systemd support - Unable to load library 'systemd':
Error loading shared library libsystemd.so: No such file or directory
Error loading shared library libsystemd.so: No such file or directory
Native library (linux-x86-64/libsystemd.so) not found in resource path (tracker-server.jar) - UnsatisfiedLinkError (... < TaskHealthCheck:41 < ScheduleManager:33 < Main:127 < ...)
2022-09-30 14:55:31  INFO: user: 2, action: login
2022-09-30 14:56:48  INFO: user: 2, action: create, object: device, id: 1
2022-09-30 14:56:48  INFO: user: 2, action: link, owner: user, id: 2, property: device, id: 1
2022-09-30 14:58:32  INFO: user: 2, action: edit, object: device, id: 1
2022-09-30 14:59:03  INFO: [T2c762a20] connected
2022-09-30 14:59:07  INFO: [T2c762a20] disconnected

You can see my telnet to port 5055 right at the end.

Please, can you update Traccar, the existing version is not working well, Home Assistant can’t get its data. Thank you

me too.
Since version 0.17.0 the Home Assistant Integration is not working anymore.

@angusc
I’m not sure if you figured this out yet but from your description it seems that you did not change the server address in the Back2you unit where it should send the position to…
Without that it would never work :slight_smile:

1 Like

Not working Traccar>Device>Info

react-dom.production.min.js:216 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7BradioType%2C%20considerIp%2C%20cellTowers%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at _o (react-dom.production.min.js:140:47)
    at react-dom.production.min.js:150:265
    at Ia (react-dom.production.min.js:176:171)
    at Us (react-dom.production.min.js:268:385)
    at Ol (react-dom.production.min.js:250:347)
    at xl (react-dom.production.min.js:250:278)
    at _l (react-dom.production.min.js:250:138)
    at pl (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:18:343)```

its fixed in Traccar v5.1-5.5

@frenck how can I help you update traccar addon?

Addon is very useful.
GPS tracker Teltonika in my car.
HASSIO automatisation: open gate when my car in home geozone.
Nice RB500HS options: close gate after photo.
I dont use RC Nice.

Seems that Traccar now has a “battery_charging” attribute - check web interface:

Where & whom shall I ask about adding a corresponding attribute to the integration?

Good evening, I integrated traccar into HA through addon-traccar, installed the database, started the traccar service, accessed it through the WebUI and created an account, and then set up traccar according to the Traccar - Home Assistant document. In the HA log, I saw that the log is output normally, and addon-traccar can also output normally, but the traccar menu cannot appear on the left menu bar like the example in the document. , and the documentation doesn’t mention

As @frenck wrote on Github ⬆️ Upgrades Traccar to v5.0 by frenck · Pull Request #180 · hassio-addons/addon-traccar · GitHub :

This PR upgrade Traccar to version 5.0

Traccar now uses its modern interface. The interface is really nice, but has one big caveat: It doesn’t play nice with reverse proxies hosting Traccar in a subfolder (at least in the way Ingress works).

I’ve spent quite a bit of time trying to write content on the fly to resolve this downside, but unfortunately, some parts just won’t work with that. This means we can’t keep the Ingress feature.

Therefore, this release removes the Ingress features from Traccar in favor of a version upgrade with the new modern interface.

In short: the traccar in the left menu will no longer be available.

Thank you for your answer, I have solved it now, although it is not very elegant, I changed the local DNS to a domain name, and then added traccar to HA through an iframe in the form of a web page, the only bad thing is that every Need to log in manually every time

Hello. I use Home Assistant OS. I’m looking for help with using custom email notification templates. Is there a way to replace the standard ones or link a directory with templates in the /mnt/data/supervisor/homeassistant/ folder?

Hello,
I am strugling two weeks with Traccar READ ONLY devices in HomeAssistants.
I cant implement my cars to any automatization in HA. Tested in two last HA operating system instances, first runs as VM, second on RPi2, and two different Traccar servers.

One Traccar server runs as other VM on same Hyper-V, is connected with HA via https (RPi), second runs as addon in HA (Hyper-V), but no working combination found. Devices in both Traccar servers saved in admin accounts with max. privileges, and linked to their accounts.

In both HA I see devices as entities, showed in known_devices.yaml too, but have error: "This entity ( device_tracker.xxxxx ) does not have a unique ID, therefore its settings cannot be managed from the UI. "

Can somebody point me, where to find solution, how to implement devices to HA automatization, please ?

Thanks

Regards

Lukas