Home Assistant Community Add-on: Traccar

Looks like ingress is dead since the 2021.7.0 update (external port works fine):

ĐžĐ·ĐŸĐ±Ń€Đ°Đ¶Đ”ĐœĐžĐ”

2 Likes

The same happens to me.
Any solution or comment, other than going back to previous versions.
Thanks

Same here.

Good afternoon.
Sorry for my lack of knowledge of the forum language.
Translated with Google Translate.

I have decided to do a version regression, core-2021.6.6:
.


.
.
La configuraciĂłn para Home Assisistant:
.
02
.
.
Eureka
:
.

.
.
Oh 
 it doesn’t recognize my traccar account:
.

.
.
But directly on the traccar website, if it works:

.
.
Some help
?
Thank you.
Greetings
Pedro

What kind of tracker is used, what is its port and protocol? You need to uncomment the line in the configuration file with the correct protocol and port traccar.xml

1 Like

I’m not sure if this is the correct configuration but works for me:

  • You have to set up a port for the web interface in the traccar server, on the configuration tab, at the “network” section, (not filled by default).
  • You have to open that port on your router.
  • Then you have to configure Traccar Manager to access to https://myname.duckdns.org at that port.

After a fresh HA install (rolling snapshot backup), where I should login, appears the following error:

image
“Invalid parameters or restriction violations”

I tryed to unistall and install the addon again, but it didn’t solve it.
Somenone know how to solve it?

It’s currently broken and tracked under https://github.com/hassio-addons/addon-traccar/issues/119
The only thing you can do right now is to stop using ingress. You have to manually set some port to access this addon.

1Âș Thanks XauMasala - GRACIAS XauMasala.
.

Now in the latest updated version of Home Assistant
Ahora en la Ășltima versiĂłn actualizada de Home Assistant

.
2Âș p.e.: 18682


.
3Âș Open Router Port - Abrir Puerto Router

.
4Âș Then you have to configure Traccar Manager ¿¿¿ 
 ???

.
Thanks - GRACIAS.

Hi @silvyana , My answer was for the @Yassair question: "What URL should I put on my device to connect to my HA server with the Traccar Manager through duckdns? should I add a port?
Should I open ports on my router?"

In your case, it seems that your device are sending the data to the demo server, not to your own server. If you want to register data with traccar server on Home Assistant installation, then you have to configure your device to send data to your home assistant address, not the demo server adress.

If your device is a Traccar Manager android application and your home assistant is configured with duckdns, my replie for @Yassair is also valid for you, but if you are using another device and another public address then you have to extrapolate the solution to your scenario.

I have few very basic questions as I’m totally new to the game, highlighting the ones related to running Traccar as HA Addon. Maybe you folks can point me into the right direction.

  1. I‘m looking for good GPS tracker devices. All small and cheap, one for a motorbike being powered by its battery and one for a electronic bicycle being powered by a local/separate/own battery. No idea where to start looking for. Is every GPS tracker able to work with Traccar?

  2. Do all GPS trackers need a SIM card with a data option for sending positioning data?

3. HA: on Quick Start - Traccar I read one should use a public IP address (which my HA server does not have) for the own server to be configured in the GPS trackers. Is this a general limitation of Traccar or does it depend on the GPS tracker being able to work with domain names (like myhomeassistant.duckdns.org)?

.
1Âș Thanks XauMasala - GRACIAS XauMasala.
.

Following your instructions to the letter (See images), it still doesn’t work, any ideas 

Thank you.
Siguiendo tus indicaciones al pie de la letra (Ver imágenes), sigue sin funcionar, alguna idea 

Muchas GRACIAS.
.
Traccar CLIENT:
.


.
.
Integrations
.

.
.
Webhook url for mobile devices
.

.
.
FIN Integrations
.
04
.
.
webhook url on mobile devices and identifier
.

.
.
webhook url on mobile devices and identifier
.

.
.
Traccar SERVER:
.

.
.
Traccar SERVER DOCUMENTATION Current version: 0.14.0

 DIFFERENT PORTS 

.

.
.
MI: /config/configuration.yaml
.

.
.
WHAT IS MISSING, THANK YOU 

.

.
.
Could the problem be here 
:
.

.
.

My MOBILE ALWAYS has the VPN active with my house.
.
.
Infinite thanks.
Pedro
.

Hi @silvyana . There are two diferent things:

  • One thing is configure “Traccar Manager” to access web interface of traccar server.
  • And other thing is configure “Traccar Client” to send data to the Traccar Server.

For the second thing you don’t need to configure a port for the web interface, also, you don’t need to configure a device_tracker in configuration.yaml.

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.

(Other GPS devices use other ports ant you must known wich port use your GPS device and allow it in traccar xml configuration file).

Hi @e-raser, I found very useful this spanish page: Modelos de trackers – Mundogps.org

You can use a SIM without data and query possition by send and receive SMS, but this is not a goog idea for real-time positioning.

And yes, I think It is necessary to have a public address because GPS device must known where to send the data.

Thank you very very much.
.
I will try to assimilate everything you have told me and implement it.
.
I use an iPhone 7 and Home Assistant is installed on a Raspberry Py with the Hassio Operating System.
.
Thank you.

Muchas, muchas gracias.
Intentare asimilar todo lo que me has comentado e implementarlo.
Uso un iPhone 7 y Home Assistant esta instalado en una Raspberry Py con el Sistema Operativo Hassio.
Gracias.

It has cost me a bit, but analyzing your words, I have achieved it, many, many, thank you very much.

Me ha costado un poco, pero analizando tus palabras, lo he conseguido, muchas, muchas, muchas gracias.

Hi,
Can you help? I’m trying to connect my HA to my add on traccar which is functioning and showing my trackers. I get the following error:


2022-01-12 12:27:43  WARN: A servlet request to the URI http://backend/api/session?_dc=1641989986540 contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

Any ideas?

On my iPhone, Traccar client, in THE SECTION:
Server URL; I put the: DDNS of my routers:5055 and (IF WE HAVE EXTERNAL FIXED IP; IP:5055)
In HA I wrote the Device Identifier that the Traccar client gave me and 

RUNNING

En mi iPhone, cliente Traccar, en EL APARTADO:
URL Servidor; puse el: DDNS de mi routers:5055 y (SI TENEMOS IP FIJA EXTERNA; IP:5055)
En HA escribí el Identificador del dispositivo que me dio el cliente Traccar y

FUNCIONANDO

For a while now when I try to run Traccar in HA I get the message “HTTP 415 Unsupported Media Type - NotSupportedException”. In another thread it seems to be resolved by updating to at Traccar V 0.14.0 whilst mine is still 0.9.0! I’d like to update but I’m getting the warning “You are running Home Assistant 2021.12.10, to update to this version of the add-on you need at least version of Home Assistant” [sic]. Should I just ignore it and hit Update?

I’m running Home Assistant 2022.2.1 and Traccar 0.15.0. Any reason for not being on current version?