Home Assistant Community Add-on: Traccar

Did you fix this? I have exact same issue!

Thanks for sharing gerard33.
How can this be viewed in traccar? Is there a specific setting to change like the Custom Map?

I added the code you provided in traccar.xml and used my own key; however, nothing changes when I click the Show Address hyperlink in the Traccar interface!

@khalilio When you select the device it will show the parameters below (with e.g. lat and lon) and one of the parameters is the address.

Other question. I have noticed that the name of the geofence area doesnā€™t change anymore even when I have left that area. This was working fine when I first started Traccar.
When I have left the geofence it shows that correctly on the map, just the attribute doesnā€™t get updated. Anyone else noticing this?

1 Like

I have been trying to get Traccar working for a few days on A RPI3 B+ HA Ver 0.88.1, but am getting a 502 bad gateway error.
I have tried re-installing and waiting for several hours but still the same.
I have a version of Traccar running on a MAC (using a different port) and have gor this working.

I get his error appearing in the logs which is way beyond my limited knowledgeā€¦

2019-02-26 11:23:12 INFO: SELECT COUNT() FROM PUBLIC.DATABASECHANGELOG
2019-02-26 11:23:12 INFO: Reading from PUBLIC.DATABASECHANGELOG
2019-02-26 11:23:12 INFO: SELECT * FROM PUBLIC.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
2019-02-26 11:23:13 INFO: Successfully released change log lock
2019-02-26 11:23:14 INFO: Logging initialized @296113ms to org.eclipse.jetty.util.log.Slf4jLog
Exception in thread ā€œmainā€ java.lang.NoClassDefFoundError: net/fortuna/ical4j/model/Calendar
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetPublicMethods(Class.java:2902)
at java.lang.Class.getMethods(Class.java:1615)
at org.traccar.database.QueryBuilder.executeQuery(QueryBuilder.java:430)
at org.traccar.database.DataManager.getObjects(DataManager.java:452)
at org.traccar.database.BaseObjectManager.refreshItems(BaseObjectManager.java:61)
at org.traccar.database.SimpleObjectManager.refreshItems(SimpleObjectManager.java:67)
at org.traccar.database.BaseObjectManager.(BaseObjectManager.java:43)
at org.traccar.database.SimpleObjectManager.(SimpleObjectManager.java:40)
at org.traccar.database.CalendarManager.(CalendarManager.java:24)
at org.traccar.Context.initEventsModule(Context.java:480)
at org.traccar.Context.init(Context.java:436)
at org.traccar.Main.run(Main.java:110)
at org.traccar.Main.main(Main.java:104)
Caused by: java.lang.ClassNotFoundException: net.fortuna.ical4j.model.Calendar
at java.net.URLClassLoader$1.run(URLClassLoader.java:371)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
ā€¦ 15 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)
at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at sun.misc.Resource.getBytes(Resource.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:463)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
ā€¦ 21 more
2019-02-26 11:23:25 INFO: HikariPool-1 - Startingā€¦
2019-02-26 11:23:29 INFO: HikariPool-1 - Start completed.
2019-02-26 11:23:42 INFO: Clearing database change log checksums
2019-02-26 11:23:43 INFO: SELECT COUNT(
) FROM PUBLIC.DATABASECHANGELOGLOCK
2019-02-26 11:23:43 INFO: SELECT COUNT() FROM PUBLIC.DATABASECHANGELOGLOCK
2019-02-26 11:23:43 INFO: SELECT LOCKED FROM PUBLIC.DATABASECHANGELOGLOCK WHERE ID=1
2019-02-26 11:23:44 INFO: Successfully acquired change log lock
2019-02-26 11:23:48 INFO: SELECT MD5SUM FROM PUBLIC.DATABASECHANGELOG WHERE MD5SUM IS NOT NULL
2019-02-26 11:23:48 INFO: UPDATE PUBLIC.DATABASECHANGELOG SET MD5SUM = NULL
2019-02-26 11:23:48 INFO: Successfully released change log lock
2019-02-26 11:23:48 INFO: SELECT COUNT(
) FROM PUBLIC.DATABASECHANGELOGLOCK
2019-02-26 11:23:48 INFO: SELECT COUNT(*) FROM PUBLIC.DATABASECHANGELOGLOCK
2019-02-26 11:23:48 INFO: SELECT LOCKED FROM PUBLIC.DATABASECHANGELOGLOCK WHERE ID=1
2019-02-26 11:23:49 INFO: Successfully acquired change log lock

ANy ideas on a fix

It seems that after the latest home assistant update even if I donā€™t get any errors in the traccar component and my traccar server gets updated from the clients, the entities in home assistant donā€™t get updated.

Anyone else having the same problem?

Hi, can you help me for install Traccar on my OSX? Thankā€™s in advance!!!

Hi!

Iā€™m just trying to add my external traccar domain IP to the configuration but it doesnā€™t work:

   device_tracker:
     - platform: traccar
       host: http://18.XXX.XXX.XX
       username: admin
       password: XXXX
       port: 8082

But it doesnā€™t work. Anyone could get it working?

Thanks!

I use this configuration:
host: a0d7b954-traccar
port: 8072

I dont remember from where I have this information, but this config is working for me.

Has anyone gotten the websocket worked out with Traccar instead of polling?

:tada: Release v0.3.0

Full Changelog

Changed

  • :arrow_up: Upgrades add-on base image to 3.0.1
  • :ambulance: Workaround Docker issue by reinstating legacy tags
  • :sparkles: Adds ARMv7 support
  • :hammer: Makes log_level optional
  • :fire: Removes custom log format override
  • :arrow_up: Upgrades openjdk8-jre to 8.201.08-r0
  • :sparkles: Adds nss package
  • :hammer: Rewrite add-on onto Bashio

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

1 Like

:tada: Release v0.4.0

Full Changelog

This is a general maintenance release and an option to change the port from the native Hass.io Network settings has been added.

Changed

  • :arrow_up: Upgrades add-on base image to 3.1.0
  • :arrow_up: Upgrades openjdk8-jre to 8.201.08-r1
  • :hammer: Refactor of init scripts
  • :hammer: Makes NGinx wait for Traccar before starting
  • :hammer: Refactors add-on to use Hassio ports on the host network

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

@frenck, thank you for your awesome work! Tell me please, itā€™s possible to add hassio ingress support for this plugin?

1 Like

I am curious for this as well. With Ingress support I should be able to connect my Traccar client via Nabu Casu isnā€™t it? That would be a real nice feature :grinning:

Anyone else struggling after the 0.93 update?
Very strange behavior, I have a new device discovered, and it has some reference to actual devices but some kind of missmatch in the information sent to HA?
traccarerror

I have the some problem :frowning:

@Max_Ross @itmax86
https://github.com/home-assistant/home-assistant/issues/23904

I havnt updated to 93 yet but traccar will not load except about every other host reboot. And i get this in the addon logs. Any Ideas? I have tried setting up another account on traccars website and changing the login credentials in my configuration.yaml with no joy. When it finally loads it works fine for sometimes minutes and sometimes hours then out of the blue it just quits.

2019-05-18 17:13:35 ERROR: Could not release lock - liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: The database has been closed [90098-197] - LockException (... < DataManager:310 < *:90 < Context:389 < Main:110 < ...)
2019-05-18 17:13:35 ERROR: Main method error - Error executing SQL SELECT MD5SUM FROM PUBLIC.DATABASECHANGELOG WHERE MD5SUM IS NOT NULL: The database has been closed [90098-197] - DatabaseException (... < DataManager:310 < *:90 < Context:389 < Main:110 < ...)
Exception in thread "main" java.lang.RuntimeException: liquibase.exception.DatabaseException: Error executing SQL SELECT MD5SUM FROM PUBLIC.DATABASECHANGELOG WHERE MD5SUM IS NOT NULL: The database has been closed [90098-197]
	at org.traccar.Main.run(Main.java:152)
	at org.traccar.Main.main(Main.java:104)
Caused by: liquibase.exception.DatabaseException: Error executing SQL SELECT MD5SUM FROM PUBLIC.DATABASECHANGELOG WHERE MD5SUM IS NOT NULL: The database has been closed [90098-197]
	at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:70)
	at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:138)
	at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:146)
	at liquibase.executor.jvm.JdbcExecutor.queryForList(JdbcExecutor.java:211)
	at liquibase.executor.jvm.JdbcExecutor.queryForList(JdbcExecutor.java:206)
	at liquibase.changelog.StandardChangeLogHistoryService.init(StandardChangeLogHistoryService.java:244)
	at liquibase.Liquibase.checkLiquibaseTables(Liquibase.java:1219)
	at liquibase.Liquibase.clearCheckSums(Liquibase.java:1445)
	at org.traccar.database.DataManager.initDatabaseSchema(DataManager.java:310)
	at org.traccar.database.DataManager.<init>(DataManager.java:90)
	at org.traccar.Context.init(Context.java:389)
	at org.traccar.Main.run(Main.java:110)
	... 1 more
Caused by: org.h2.jdbc.JdbcSQLException: The database has been closed [90098-197]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:357)
	at org.h2.message.DbException.get(DbException.java:179)
	at org.h2.message.DbException.get(DbException.java:155)
	at org.h2.message.DbException.get(DbException.java:144)
	at org.h2.engine.Database.checkPowerOff(Database.java:536)
	at org.h2.command.Command.executeQuery(Command.java:228)
	at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:85)
	at liquibase.executor.jvm.JdbcExecutor$QueryStatementCallback.doInStatement(JdbcExecutor.java:419)
	at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:57)
	... 12 more

Hello

I have a SinoTrack ST-901, which I currently use through its app on my iOS device. This device is available as ā€œSupported Devicesā€ on https://www.traccar.org/devices/

I have installed the add-on on Hassio. But I am unable to figure out how to add SinoTrack ST-901 in Traccar of Hassio. Any pointers to assist me will be quite helpful. Thank you

hi, i cant access traccar from my nabu casa url, someome with this problem?

hi, is there an update for this?