Home Assistant Community Add-on: Traccar

Daniel - Only that message I’m getting -
“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]
scaring me off pressing the update button.
I can still access Traccar directly, just not within the HA Frame.

I just did a back up of all my data and pressed the update button. The message I got back was “Add-on a0d7b954_traccar not supported on that platform”.

My current version 0.9.0 is running OK although I cannot get to it in the HA frame, only seperately (but that’s OK). I’m running on a Raspberry Pi 4 with SD card all dedicated to HA 2022.2.6.

I would try making a complete HA system backup, delete the Traccar 0.9.0 add-on and see if you can add 0.15.0…

If it installs and runs fine then you can decide where to go from there…

  • Proceed with a virgin 0.15.0 and see if you can restore the data from 0.9.0…
  • Restore your HA backup and continue troubleshooting the 0.9.0 to 0.15.0 update…

both of which are beyond my skills I’m afraid. I’d try Discord or try posting an issue with the add-on on github

Last week i lost my HomeAssistant Server so i build a new one, restored the backup and installed the latest version of Home Assistant Core 2022.5.5

but i cannot get anything else than

Invalid config
The following integrations and platforms could not be set up:

traccar (Show logs)
Please check your config and logs.

The config i configured as followed

device_tracker:
  - platform: traccar
    host: 192.168.110.155
    username: [email protected]
    password: xTunwnv
    port: 8082

Im not sure what im missing, the new machine is also Ubuntu 22.04 LTS and Python 3.10

Aha

/srv/homeassistant/bin/hass --script check_config --config /home/homeassistant/.homeassistant/

Failed config
  General Errors: 
    - Platform error device_tracker.traccar - No module named 'aiodiscover'

cd /srv/homeassistant

python3 -m venv .

source bin/activate

pip install aiodiscover
pip install scapy

Since last update I get a lot of:
Reverse geocoding is not enabled - RuntimeException (ServerResource:69 < ...)

Seems docker is not correctly mapped:
https://www.traccar.org/forums/topic/reverse-geocoding-is-not-enabled-runtimeexception-serverresource59-less/

Possible to fix?

By default there is no geocoder enabled, you can do so by editing your Traccar.xml that is in your configuration folder. Customize it the way you want it.

1 Like

I just updated traccar to 0.17.0.
I can no longer get to it from the sidebar. In fact in Info the option to have it in the sidebar is no longer there! But it is still in the side bar from before so how can I get rid of it.
Also, I can’t see how to display on the map the drive I took, say, yesterday. All I get in reports is a table of the points but no map display. Am I missing something?

@Wingnut the icon you can easily remove the same way you can organise and delete your other icons.
I am also having the same issue that it doesn’t show the trips anymore. Apart from that, I love the new interface. It’s so much cleaner

I don’t know how. Never done that. I’m guessing it’s a YAML file somewhere?

I have the same issue, I can no longer get to it from the sidebar, but also not from the add-on page. Actually, I can’t get to it at all anymore. How can I get to it?

Go to Settings, Add-ons, Traccar then click on OPEN WEB UI. You can then bookmark the page.

Since the last update this also doesn’t work for me. When I click “OPEN WEB UI”, a new page opens with in the address bar: “about:blank#blocked”. Any ideas?

Edit: good to add: The add-on is up and running, and in the log I can see it is still receiving tracker information from my car. I could access the Web UI when it was still in the sidebar, I didn’t change any settings since.

Try typing https://your domain name or IP:8082/modern/ in your browser. Both domain name and IP work for me.

1 Like

Sorry should have been a bit more specific. Go to the UI and long click on the field called “Home Assistant”. Then you can delete all tabs you wish to remove. Once you are done click “done”. I hope this helps.

Have you managed that it displays the trip? I am still having this issue.

Weird.
After reading your post and replying, my Traccar entry in the sidebar disappeared at some point. Then, somehow, later, I saw all the sidebar entries jiggling. Don’t know what I did to do it but worked it out afterwards. So, now I know!
No, I still cannot get old journeys to show on the map. I’m guessing it’s a Traccar thing rather than Home Assistant. I would have though a lot of people will be complaining if that’s the case.

Fantastic. I am glad that worked. I think you are right. The weird thing is though that this issue does not seem to be readily discussed in the relevant traccar forums. I went through all of them in the quest of finding an answer

Hi,
I have installed this add-on and changed as adviced admin/admin but after doing that if I open the web frontend and after I have logged in I get a white screen

Any advice what I can do about that ?

Thank you!

EDIT: Even the Traccar Manger Android App gives me a white screen after I have logged in !?!?

I have forwarded the port for testing purpose of the web interface.

Since version 0.17.0 the Home Assistant Integration is not working anymore.
I had everything working and saw the 2 tracked devices in my Home assistant including all the Attributes.

Now I only see the 2 identities, showing “not_home” although they are home and as attributes:

source_type: null
friendly_name: fmc2

Do more of you guys have this same issue?

Below is my configuration in configuration.yaml
(I made many manual attributes within traccar, because of an extra Bluetooth device that is connected to my Teltonika tracker)

device_tracker:
  - platform: traccar
    host: localhost
    port: 8082
    ssl: true
    verify_ssl: false
    username: USERNAME
    password: PASSWORD
    event: ['all_events']
    monitored_conditions: ['BlueTemp', 'BlueHum', 'Motion', 'Latitude', 'Longitude', 'PeuBatt', 'PeuAutoAccu', 'PeuAfstand', 'PeuAfstandTotaal', 'PeuUren', 'PeuGebeurtenis', 'PeuSnelheid', 'distance', 'totalDistance', 'hours', 'event', 'speed', 'PeuEngineLoad', 'PeuVehicleSpeed2', 'PeuIntakeAirTemperature', 'PeuAutoGeofence', 'PeuTowing', 'PeuUnplug', 'PeuGNSSSpeed', 'PeuFuelRateGPS', 'PeuEcoScore', 'PeuDistanceSinceCodesClear', 'PeuAfstandTotaal2', 'PeuFuelUsedGPS']

After recent changes Traccar works in HA again.
But:

  1. The “last_seen” attribute disappeared from “device_tracker”:
    issue.

  2. Recently this issue caused some changes in part of update frequency:
    issue.
    There was a FR also.
    Someone asked about a possibility to define an “update frequency” (i.e. scan_interval) for Traccar.
    But since for mobile devices this frequency is set in a “Traccar Client” app:
    image
    then how THIS frequency may be replaced by some “frequency in HA”?

Assume that a Traccar client sends its data every 1 minute.
If we set the “frequency in HA” to 5 minutes - it’s OK, we just do not need more precise data.
But what is a meaning of setting the “frequency in HA” to “5 seconds”?


And one more thing - an important FR.
There is an “Offline buffering” feature:
image
How it works:
– a person is at home & connected to Internet via router;
– Traccar data are available online;
– then the person leaves the home and is NOT connected to the router - and assume that there is no mobile Internet available for the device - so Traccar data are NOT available online;
– then the person comes home;
– now we can see the whole past tracking because it was buffered.

This feature works great with a web Traccar manager - we can see buffered data.
I wonder if it is possible to get these buffered data into HA?

Does not work again…

Update: restarted HA, works again…