This is normal. See This entity does not have a unique ID? - Home Assistant
You can still use the entity device_tracker.xxxxx
as usual. It should have a state
and be usable in automation triggers, for example zone trigger.
There should be no need to “manage the entity from the UI”.
Horray !
it finally works!
Zone trigger was what I was looking for.
This automation will open the garage gate when my car enter the zone
automation
trigger:
- platform: zone
entity_id: device_tracker.xxxxx
zone: zone.home_for_gate
event: enter
condition: []
action:
- type: turn_on
device_id: xxxxx
entity_id: xxxxx
domain: switch
mode: single
Thank You Ondra
After last changes:
Enhancements
Migrate Traccar config out of Home Assistant config folder @frenck (#261)
where or how to find traccar.xml to edit (Supervisor 2023.11.3) ???
Hello guys. I’m having some trouble setting up Traccar.
I’ve used “OwnTracks” with great success in the past, but I decided to try Traccar and I stumbled upon a wall.
- I’ve setup Traccar in a docker on my Unraid Server.
- My HA is running on a VM on the same Server.
- Traccar works fine using its WebUI, both locally and via external access.
- I’ve setup two devices (Android phone + car system) and they show up fine on Traccar.
- I’ve setup the HA Integration as the instructions suggest.
The problem is, that I see no devices on HA.
I enabled Debugging for the Traccar Integration, and I see this:
2023-11-18 21:11:36.189 DEBUG (MainThread) [pytraccar] API response: [{‘id’: 1, ‘attributes’: {‘speedLimit’: 50}, ‘groupId’: 1, ‘calendarId’: 0, ‘name’: ‘bonamin’, ‘uniqueId’: ‘bonaPhone’, ‘status’: ‘online’, ‘lastUpdate’: ‘2023-11-18T19:11:36.170+00:00’, ‘positionId’: 28228, ‘phone’: ‘Xiaomi’, ‘model’: ‘RedmiNote’, ‘contact’: ‘14355664215’, ‘category’: ‘person’, ‘disabled’: False, ‘expirationTime’: None}, {‘id’: 2, ‘attributes’: {}, ‘groupId’: 0, ‘calendarId’: 0, ‘name’: ‘Honda Jazz’, ‘uniqueId’: ‘HondaJazz’, ‘status’: ‘offline’, ‘lastUpdate’: ‘2023-11-11T08:40:04.383+00:00’, ‘positionId’: 25601, ‘phone’: None, ‘model’: None, ‘contact’: None, ‘category’: None, ‘disabled’: False, ‘expirationTime’: None}]
Which (I GUESS) means that there is indeed something going on between HA and Traccar, as this is actually showing the names of the two devices I’m using the Traccar Client apps on.
But I don’t see them in the map, nor can I see anything in the Integration’s page. It says:
For what it’s worth, this is my config YAML:
device_tracker:
- platform: traccar
host: 192.168.1.10
verify_ssl: false
username: ***username***
password: ***password***
event: ['all_events']
new_device_defaults:
track_new_devices: true
Can someone smarter than me figure out what I’m doing wrong…?
I’d appreciate it a lot ! Thanks !
Hi i cant help you with your problem, but can you tell me wich url you are using on your devices as i can only connect using my local url to homeassistant
So, this is an awesome plugin - thank you. Just wow…
I just exposed this plugin/port to the scary internet, everything works just fine. Two questions.
-
I did not install the maria DB, what’s this going to do? It seems to work just fine right now
-
How do you enable failed login attempts / maximum attempts, block source ip, etc? I mean, pretty much anyone can now just hammer away at a login/password with http (I do not use https) all day long right now
-
No matter what I do I can not get traccar to show in the sidebar. I have tried editing the config, that did nothing. I even show screen shots on the previous posts show the “easy button” in the plugin that says add to sidebar…I don’t see that.
Guessing I am posting this in the wrong area? Any help where I should be posting this?
Hello and sorry this took so long, but I though nobody would answer and I didn’t check my notifications sooner.
I TRIED* to use Traccar with the server hosted elsewhere and not on my Home Assistant machine.
(I say tried cause it never actually worked with HA, but I did connect to the Traccar server)
So for the history, and to avoid confusion, I’ve setup Traccar Server as a Docker, on Unraid.
So to (first) connect to my Traccar server internally, I use Unraid’s IP, and Traccar’s port.
I then port forward (in my Router) incoming traffic towrards that port, to Unraids IP.
Then I have a domain name setup, that points to my public IP.
So when I access “example.com” it points to the IP “123.123.123.123” which is my PUBLIC IP, which then forwards traffic to 192.168.1.10, which is my server’s internal IP, which routes port 8082 traffic to the Traccar Docker.
That being said, I never got this to work with Home Assistant, because apparently I have to setup some webhook in Traccar, and I can’t find how to do it and nobody seems eager to help.
I am looking at the link and where to ask questions, but Is seem to be to dumb, to find a “normal” one. So I’ll try here.
I just installed traccar addon in HA and in the logs I see this:
[10:34:55] INFO: Starting NGinx server…
2024-01-16 10:34:55 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2024-01-16 10:34:56 INFO: Started o.e.j.s.ServletContextHandler@3dbdde8d{/,null,AVAILABLE}
2024-01-16 10:34:56 INFO: Started ServerConnector@60ff009{HTTP/1.1, (http/1.1)}{localhost:18682}
2024-01-16 10:34:56 INFO: Started Server@3fa66a8d{STARTING}[11.0.19,sto=0] @8429ms
2024-01-16 10:34:56 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:49 < <gener:-1 < *:-1 < … < ScheduleManager:48 < …)
Any Idea what I am missing? Also, I do not see the option to display it in the side bar.
I have the Traccar server running for a time now and it works great. Now I would like to integrate my car into HA over Traccar.
Thanks!
Hello,
Attributes “Address” and “Geofence” are always in “Unknown” state. Any ideea why is this happening? The rest of the attributes report the correct data.
I use Traccar with a cheap GPS tracker (TK911 Pro 4G) and I am happy with it. I also have the same questions and I will look into a reverse proxy as I cannot use WireGuard on a tracker device and a dedicated router with more options to block traffic.
Since it’s been over a month and no one has jumped in on this, I thought I would provide an update.
-
I did not install the maria DB, what’s this going to do? It seems to work just fine right now
I still did not install Maria DB and one month later everything is just fine. Not sure why the developer of this says it’s a requirement when it’s obviously not. Maybe once I have been using it for years it might be an issue?? -
How do you enable failed login attempts / maximum attempts, block source ip, etc? I mean, pretty much anyone can now just hammer away at a login/password with http (I do not use https) all day long right now
I did the unthinkable and enabled direct port forwarding in my pfsense firewall to an oddball port not listed in the standard tcp/ip list to hit the traccar service running inside my homeassistant instance. This way WHEN someone discovers the port, they wont know what it is right away until they poke more. Speaking of poking, in efforts to reduce pain and suffering from would be attacks I did the following:
When someone port scans me, snort blocks their ip
I blocked every country except the USA (where I live) from hitting this port (I know, I know vpn pivot attacks)
Turn off new registration on the traccar landing page
Future work here: Since my phone service is only with T-Mobbile, I am working on narrowing down the list even more to allow only t-mobile ip’s to hit the port. That’s the best anyone can do.
- No matter what I do I can not get traccar to show in the sidebar. I have tried editing the config, that did nothing. I even show screen shots on the previous posts show the “easy button” in the plugin that says add to sidebar…I don’t see that.
No matter how much reading or effort I put into this, I simply can not get Traccar to integrate into the Home assistant side bar, and I REALLY need to get this done. As of now I am simply accessing the site by it’s web address
Thanks for the update! I just received a router with firewall features and will look into those options. I currently only use the created entity on a map inside HA and it works fine and it gives me simple route tracing.
I have the same problem - where is the file to edit to add additional protocols?
Be great if the add-on configuration in the Home Assistant UI allowed you to add new protocols line by line and then have them incorporated at runtime.
FYI, for those looking for the config file. If you are running HAOS I found mine here:
/addon_configs/a0d7b954_traccar/traccar.xml
Yours should be similar, likely with a different hex string in place of what mine is. (No, I don’t know what it represents)
e.g: /addon_configs/nnnnnnnn_traccar/traccar.xml
I have not tried making changes to it to see if they take effect, or persist restarts/updates.
Thanks.
For those (like me) using the “File Editor” Add-On, go into its settings (Add-Ons/File Editor/Configuration) and DISABLE “Enforce Basepath” - this will allow you to “go back” a folder from the default folder before (/homeassistant) and you should be able to now see /addon_configs.
(tap the folder icon top left, then arrow left)
Now I can edit the settings… so much easier.
Hi,
How did you manage to remove the Register from the homepage? I cannot find the addon data folder only the xml file. I am however using SSL for traccar
I have the same issue with the sidebar where the addon shows a simple switch to “show in sidebar” - nonexistent
Ever since the last few updates, TracCar seems to be managed differently. I had to completely remove all TracCar xml code from my configuration.yaml and then the new warning/error removed itself. I do not have anything in the sidebar related to Traccar, etc. HOWEVER as you can see below, I now have the ability to add the “Traccar Server” as an integration. For me, this server is running on the same homeassistant platform/itself. And those 2 devices? Those are my 2 phones. I really only needed this for one objective, see where my kids are when I need to. Anything more granular, I simply login to the traccar server itself. This serves my purposes. You might ask how do I see where they are inside of homeassistant? The new update integrated them into your MAP!! super cool! (see 2nd picture) The F is the first letter of my name, the 2nd phone that is out of scope of this picture, is on the same map as the letter S, because that is the first letter of my daughters name. If you just sit and watch the map, it automatically updates itself every 30 seconds with new positioning.
If you click on map, you will see where my phone is right now
If you click on the F / the phone letter on the map, you will see these details
Dear all,
I would require some very generic help with integrating a GPS tracker into HA / traccar. I have a Sinotrack ST-901 device, which according to the traccar website is a supported one. On the Home Assistant side, I installed the traccar addon and I can access the web interface. Here I added the sensor with its ID. In addition, I also adjusted the traccar.xml accordingly.
How can I now add the GPS tracker to my traccar server in Home Assistant? I know how to configure the device, i.e. I am aware of the fact that I need to send the IP of the server and the port. But which IP do I need to use? I read in this thread that it might work with DuckDNS. I have it running but do not know how to relate the domain to traccar. Moreover, is port forwarding required? Which port do I have to use? Is it in the meantime possible, to use Nabu Casa instead?
Any help is pretty much appreciated!
Many thanks in advance!
Noticed the same and I would like to see the address. Your question has not been answered, so I guess no one knows why “address” and “geofence” are always unknown???
Anyone?