Home Assistant Community Add-on: Traccar

check in your dev state (YOUR_HASS_ADDRESS:8123/dev-state) for device_tracker

Not there as well under dev_states

Here is a snip from the Traccar add on log

Yea, you are getting the data, but you are having the same issue I was when running traccar with the addon componentā€¦

Why not try spinning up traccar elsewhere (outside of Hassio) and see then if your devices appear?

One final place you could look for your devices in Home Assistant is in the .storage folder in the device registry coreā€¦

@frenck May I request you to assist here. I am not able to see the device_tracker in hassio. Y

Well Traccar is receiving dataā€¦ so it seems to be your config of Traccar integration of Home Assistant. You didnā€™t share any information on that part. No configuration, no logs. There is no way I can help. Hence me not responding.

Sorry @frenck , every detail you seek to help me was in the post above. I realise it was insensitive to me to expect you to scroll up and read through.My accept my apologies
Link to my config
Logs

please help!

  1. Have you setup a correct user and password in traccar?
  2. I assume that these are not your details?
    username: secret
    password: secret

The default username is admin/admin (WHICH YOU MUST CHANGE) you then need to plug in the corresponding username and password to your config.yamlā€¦

Apologies if this has already been done, it is the only thing that jumps out at me from your config filesā€¦

Have you enabled the port you are connecting to? The addon uses ingreds now by default (as written in the last release notes)

@uiguy yes, password is changedā€¦ and same is config.yaml
@Frenk I removed the port 8072 from config.yaml now. Left the network section to default (disabled) Restarted but still tracker not showing.

:cry:

@frenck is the default port for config.yaml 8082 or 8072?

Help needed please. I canā€™t seem to get the hass.io integration working after installing the addon. The addon itself is working (i think) and is picking up the client from my android phone. There is some conflicting HASS config information between the docs and thr addon so it makes it difficult to troubleshoot.

I do not use SSl/HTTP and my hass.io, supervisor and host system are up to date.

EDIT: I receive this in the logs about a port conflict - not sure if this is mormal or not?

2019-07-06 18:53:48  INFO: Starting server...
2019-07-06 18:53:52  WARN: Port 5037 is disabled due to conflict
2019-07-06 18:53:52  INFO: jetty-9.4.18.v20190429; built: 2019-04-29T20:42:08.989Z; git: e1bc35120a6617ee3df052294e433f3a25ce7097; jvm 1.8.0_212-b04
2019-07-06 18:53:54  INFO: Started o.t.w.@22e0ef{/,null,AVAILABLE}
2019-07-06 18:53:54  INFO: DefaultSessionIdManager workerName=node0
2019-07-06 18:53:54  INFO: No SessionScavenger set, using defaults
2019-07-06 18:53:54  INFO: node0 Scavenging every 600000ms

Hass.io Config

  - platform: traccar
    host: '192.168.0.xx'
    username: myownemailaddress
    password: myownpassword

Addon Config

  "ssl": false,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}

Addon Logs

[06/Jul/2019:17:05:39 +0100] 200 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/attributes/computed?_dc=1562429134115&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
[06/Jul/2019:17:05:40 +0100] 200 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/commands/types?_dc=1562429134117&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
[06/Jul/2019:17:05:43 +0100] 200 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/commands?_dc=1562429134118&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
[06/Jul/2019:17:05:45 +0100] 200 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/notifications/types?_dc=1562429134120&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
[06/Jul/2019:17:05:45 +0100] 200 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/notifications/notificators?_dc=1562429134121&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
[06/Jul/2019:17:05:46 +0100] 200 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/notifications?_dc=1562429134123&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
[06/Jul/2019:17:05:46 +0100] 200 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/devices?_dc=1562429134126&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
[06/Jul/2019:17:05:56 +0100] 101 149.254.234.133, 172.30.32.1(172.30.32.2) GET /api/socket HTTP/1.1 (Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36)
2019-07-06 17:11:32  INFO: [b848edcb] connected
2019-07-06 17:11:32  INFO: [b848edcb: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343239343839266c61743d35352e38373238383932266c6f6e3d2d342e313337313131352673706565643d302e302662656172696e673d302e3026616c7469747564653d3134372e34303030303931353532373334342661636375726163793d32322e36323839393937313030383330303826626174743d34302e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:11:32  INFO: [b848edcb: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:11:32  INFO: [b848edcb] id: Eeeeeediot, time: 2019-07-06 17:11:29, lat: 55.87289, lon: -4.13711, course: 0.0, accuracy: 22.6
2019-07-06 17:11:37  INFO: [b848edcb] disconnected
2019-07-06 17:18:46  INFO: [07e2d143] connected
2019-07-06 17:18:46  INFO: [07e2d143: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343239393235266c61743d35352e38373238383737266c6f6e3d2d342e313337303338392673706565643d302e302662656172696e673d302e3026616c7469747564653d3134372e34303030303931353532373334342661636375726163793d31362e373339303030333230343334353726626174743d33382e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:18:46  INFO: [07e2d143: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:18:46  INFO: [07e2d143] id: Eeeeeediot, time: 2019-07-06 17:18:45, lat: 55.87289, lon: -4.13704, course: 0.0, accuracy: 16.7
2019-07-06 17:20:24  INFO: [07e2d143] disconnected
2019-07-06 17:27:38  INFO: [7b9c3b23] connected
2019-07-06 17:27:38  INFO: [7b9c3b23: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343330343536266c61743d35352e383639383439266c6f6e3d2d342e313336313636342673706565643d302e302662656172696e673d302e3026616c7469747564653d3134342e36303030303631303335313536322661636375726163793d31372e313838393939313736303235333926626174743d33362e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:27:38  INFO: [7b9c3b23: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:27:38  INFO: [7b9c3b23] id: Eeeeeediot, time: 2019-07-06 17:27:36, lat: 55.86985, lon: -4.13617, course: 0.0, accuracy: 17.2
2019-07-06 17:28:14  INFO: [7b9c3b23] disconnected
2019-07-06 17:28:19  INFO: [9dfb0da6] connected
2019-07-06 17:28:19  INFO: [9dfb0da6: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343330343536266c61743d35352e383639383439266c6f6e3d2d342e313336313636342673706565643d302e302662656172696e673d302e3026616c7469747564653d3134342e36303030303631303335313536322661636375726163793d31372e313838393939313736303235333926626174743d33352e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:28:19  INFO: [9dfb0da6: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:28:19  INFO: [9dfb0da6] id: Eeeeeediot, time: 2019-07-06 17:27:36, lat: 55.86985, lon: -4.13617, course: 0.0, accuracy: 17.2
2019-07-06 17:28:21  INFO: [9dfb0da6] disconnected
2019-07-06 17:36:05  INFO: [63b1e458] connected
2019-07-06 17:36:05  INFO: [63b1e458: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343330383833266c61743d35352e38363734373737266c6f6e3d2d342e313332363839332673706565643d302e302662656172696e673d302e3026616c7469747564653d302e302661636375726163793d3639392e3939393032333433373526626174743d33342e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:36:05  INFO: [63b1e458: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:36:05  INFO: [63b1e458] id: Eeeeeediot, time: 2019-07-06 17:34:43, lat: 55.86748, lon: -4.13269, course: 0.0, accuracy: 700.0
2019-07-06 17:36:07  INFO: [63b1e458] disconnected
2019-07-06 17:39:52  INFO: [a8ceff81] connected
2019-07-06 17:39:52  INFO: [a8ceff81: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343331313930266c61743d35352e383031393738266c6f6e3d2d342e303439383139382673706565643d302e302662656172696e673d302e3026616c7469747564653d302e302661636375726163793d313339392e3939393032333433373526626174743d33342e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:39:52  INFO: [a8ceff81: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:39:52  INFO: [a8ceff81] id: Eeeeeediot, time: 2019-07-06 17:39:50, lat: 55.80198, lon: -4.04982, course: 0.0, accuracy: 1400.0
2019-07-06 17:39:54  INFO: [a8ceff81] disconnected
2019-07-06 17:45:30  INFO: [6102b507] connected
2019-07-06 17:45:30  INFO: [6102b507: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343331353239266c61743d35352e37363433323234266c6f6e3d2d342e303432373231392673706565643d302e302662656172696e673d302e3026616c7469747564653d3135332e32303030313232303730333132352661636375726163793d35302e303330393938323239393830343726626174743d33332e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:45:30  INFO: [6102b507: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:45:31  INFO: [6102b507] id: Eeeeeediot, time: 2019-07-06 17:45:29, lat: 55.76432, lon: -4.04272, course: 0.0, accuracy: 50.0
2019-07-06 17:45:33  INFO: [6102b507] disconnected
2019-07-06 17:48:22  INFO: [37f3d976] connected
2019-07-06 17:48:22  INFO: [37f3d976: osmand < 149.254.234.133] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343331363939266c61743d35352e373537323233266c6f6e3d2d342e303534383634362673706565643d302e302662656172696e673d302e3026616c7469747564653d3138382e31303030303631303335313536322661636375726163793d3633332e3235343032383332303331323526626174743d33332e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:48:22  INFO: [37f3d976: osmand > 149.254.234.133] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:48:22  INFO: [37f3d976] id: Eeeeeediot, time: 2019-07-06 17:48:19, lat: 55.75722, lon: -4.05486, course: 0.0, accuracy: 633.3
2019-07-06 17:48:24  INFO: [37f3d976] disconnected
2019-07-06 17:53:57  INFO: [5054cef0] connected
2019-07-06 17:53:57  INFO: [5054cef0: osmand < 86.159.172.20] HEX: 504f5354202f3f69643d45656565656564696f742674696d657374616d703d31353632343332303336266c61743d35352e37353631373538266c6f6e3d2d342e303732303938382673706565643d302e302662656172696e673d302e3026616c7469747564653d302e302661636375726163793d31362e3026626174743d33332e3020485454502f312e310d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420393b204f4e45504c5553204135303130204275696c642f504b51312e3138303731362e303031290d0a486f73743a2065656565656564696f742e6475636b646e732e6f72673a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2019-07-06 17:53:57  INFO: [5054cef0: osmand > 86.159.172.20] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2019-07-06 17:53:57  INFO: [5054cef0] id: Eeeeeediot, time: 2019-07-06 17:53:56, lat: 55.75618, lon: -4.07210, course: 0.0, accuracy: 16.0
[06/Jul/2019:17:57:19 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:19 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /app.css HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:19 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /load.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:19 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/arrow.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:19 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/bicycle.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/default.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/animal.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/boat.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/crane.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/car.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/bus.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/helicopter.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/motorcycle.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/person.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/offroad.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/pickup.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/plane.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/ship.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/tractor.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/train.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/tram.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/scooter.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/trolleybus.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/van.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /images/truck.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /l10n/en.json?_dc=1562432237880 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:20 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /app.min.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:21 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/server?_dc=1562432238343 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:21 +0100] 404 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/session?_dc=1562432238490 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:21 +0100] 304 192.168.0.100, 172.30.32.1(172.30.32.2) GET /logo.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:29 +0100] 404 192.168.0.100, 172.30.32.1(172.30.32.2) POST /fake-login.html HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:31 +0100] 401 192.168.0.100, 172.30.32.1(172.30.32.2) POST /api/session HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:38 +0100] 404 192.168.0.100, 172.30.32.1(172.30.32.2) POST /fake-login.html HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
2019-07-06 17:57:40  INFO: user: 1, action: login
[06/Jul/2019:17:57:40 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) POST /api/session HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/groups?_dc=1562432258239&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/drivers?_dc=1562432258241&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/geofences?_dc=1562432258243&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/calendars?_dc=1562432258245&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/maintenance?_dc=1562432258247&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/attributes/computed?_dc=1562432258249&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/commands/types?_dc=1562432258252&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/commands?_dc=1562432258253&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/notifications/types?_dc=1562432258255&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/notifications?_dc=1562432258258&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/notifications/notificators?_dc=1562432258256&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:57:41 +0100] 200 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/devices?_dc=1562432258298&page=1&start=0&limit=25 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)
[06/Jul/2019:17:58:27 +0100] 101 192.168.0.100, 172.30.32.1(172.30.32.2) GET /api/socket HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36)

It should work on port 8072 which differs from traccarā€™s default one.

Due to a conflict with a port of motionEye, was changed:

https://github.com/hassio-addons/addon-traccar/issues/1

:tada: Release v0.5.1

Full Changelog

This is a general maintenance release.

Changed

  • :arrow_up: Upgrades add-on base image to v4.0.2

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

How do you get to see the ā€œaddressā€? (Streetname?) Mine doesnā€™t show that in HA.

Sign up at https://eu1.locationiq.com/ to get a key.
Then add this to your traccar.xml


    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>https://eu1.locationiq.com/v1/reverse.php</entry>
    <entry key='geocoder.key'>xxxxxxxxxxxxxx</entry>
2 Likes

Hi,

Iā€™m struggling to gain access to the server when I start it. I just get a bad gateway 502 error. Iā€™m not using ingress, and set my port to 8072.
My config is otherwise default.

Here is my log file

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: Traccar
 Modern GPS Tracking Platform
-----------------------------------------------------------
 Add-on version: 0.5.1
 You are running the latest version of this add-on.
 System: HassOS 1.13  (armv7 / raspberrypi3)
 Home Assistant version: 0.96.5
 Supervisor version: 170
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] traccar.sh: executing... 
[cont-init.d] traccar.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[10:48:08] INFO: Starting Traccar server...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/traccar/lib/slf4j-jdk14-1.7.26.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/traccar/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
2019-07-31 11:48:16  INFO: HikariPool-1 - Starting...
2019-07-31 11:48:20  INFO: HikariPool-1 - Start completed.
2019-07-31 11:48:30  INFO: Clearing database change log checksums
2019-07-31 11:48:31  INFO: SELECT COUNT(*) FROM PUBLIC.DATABASECHANGELOGLOCK
2019-07-31 11:48:31  INFO: SELECT COUNT(*) FROM PUBLIC.DATABASECHANGELOGLOCK
2019-07-31 11:48:31  INFO: SELECT LOCKED FROM PUBLIC.DATABASECHANGELOGLOCK WHERE ID=1
2019-07-31 11:48:31  INFO: Waiting for changelog lock....
2019-07-31 11:48:41  INFO: SELECT LOCKED FROM PUBLIC.DATABASECHANGELOGLOCK WHERE ID=1
2019-07-31 11:48:41  INFO: Waiting for changelog lock....

It just then repeats these 2 lines

Any clues?

If you want to use Nabu Casa webhooks with the Traccar add-on have a look at this post -> Traccar via Nabu Casa webhooks.

hello, working very well, a question ā€¦ you have to add something to the mariadb addon to change the traccar database, Iā€™m not sure about the configuration

I appreciate the work of frenck, but setting up this add on was a mess for me. Mainly for lack of documentation.

I found different problems:

  1. Make the ui work
  2. Send data to traccar from a device (eg. mobile application)
  3. Let hassio discover the device

Iā€™ll try to explain here how I solved these three problems.

Make the ui work
This does not require any port forwarding from the router.
Here I faced two problem:

  1. UI returned 502 bad gateway
  2. The addon was blocked in an inconsistent while querying DATABASECHANGELOGLOCK table

To solve 1, you simply have to wait. The addon is freaking slow to start. Until you wonā€™t see that nginx is actually started, the addon is not ready.
So wait at least 5 minutes or more after restarting the application.

2 occurs if you stop the addon while it is starting up. In order to restore the state you have to send a command to the database.
I had MariaDB installed, so to solve this problem I entered in the docker container where MariaDB was running and executed the following query:
MariaDB [traccar]> update DATABASECHANGELOGLOCK set locked = 0;
In order to enter the docker container I logged using ssh using:

ssh [email protected] -p 22222

Then executed the login command.
Then executed docker ps, copied the id of the docker container where MariaDB is running and executed the command:
docker exec -it DOCKER_ID_MARIA_DB mysql -D TRACCAR_DB_NAME, where TRACCAR_DB_NAME is the name you have assigned to the traccar db.
Now you can execute the previous command.

Refer to this guide to login in ssh in advanced mode: https://developers.home-assistant.io/docs/en/hassio_debugging.html
Refer to this guide to use MariaDB as DB for traccar: https://github.com/hassio-addons/addon-traccar
Refer to this guide to set up Maria DB: https://www.home-assistant.io/addons/mariadb/

Once you removed the lock, the addon should proceed to the next step. Remember, the addon is very slow to start, so be patient.

2. Send data to traccar from a device (eg. mobile application)
This does require port forwarding from the router.
If you use a mobile application, you need to forward a port of your router (eg. 5055) to the 5055 of your hassio.
Prior to download or test the mobile application, my advice is to do a curl (or use a software like postman) to test that the API to send coordinates work.
I used the following curl:

curl --request POST \
  --url 'http://MY_DOMAIN.duckdns.org:5055/?lat=40&lon=20&id=123456'

This will return 200 if everything was setup correctly. Do not waste time using the application until this curl does not return 200.

Once the curl wors, you can proceed and download the mobile application. I used the iOS one. Since the endpoint worked previously, you simply need to copy
http://MY_DOMAIN.duckdns.org:5055/?lat=40&lon=20&id=123456 in the server URL textfield of the app.
If you enable Service Status and check the status, you should not see any Send Failed.

Now login to the Web UI and manually add the device to the interface using the device identifier that was present on the app. Give the device a friendly name and KISS because this will be the name of the device that will appear in hassio.

If after the data send, the device will show on the traccar UI map, everything worked so far.

  1. Let hassio discover the device
    This does not require port forwarding from the router.
    To do that, hassio needs to do a curl to the traccar service that is running on the traccar container.
    In the traccar addon page, this is my configuration:
{
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "log_level": "debug"
}

and I also enabled the port 8072 under the Network section.

Remember to restart the addon, if you do any change to your configuration (and be patient waiting the full addon restart).

Prior to edit the configuration.yml, test again with a curl if hassio is able to do a request to the traccar addon.
As we did in point to, ssh to hassio using:

ssh [email protected] -p 22222

Then, search the hassio container using the docker ps command (its friendly name should be homeassistant) and enter that container using the command:
docker exec -it homeassistant bash (or sh, if bash is not available).

Once you are in, use the command:
wget -O- --no-check-certificate https://hassio:8072

8072 is the port you previously add on the Network section of the addon.

This should return an HTML containing the text:

...
<div id="attribution">Powered by <a href="https://www.traccar.org/">Traccar GPS Tracking System</a></div>
...

Remember that:

  • --no-check-certificate corresponds to the property verify-ssl: false, on configuration.yaml
  • https corresponds to the property ssl: true
    If this does not work try the followings until one of this works:
    wget -O- --no-check-certificate https://localhost:8072
    wget -O- --no-check-certificate https://hassio:8072
    wget -O- --no-check-certificate https://HASSIO_INTERAL_IP:8072

Depending on your configuration, you may need to do not use the flag --no-check-certificate or use http in place of https.

When you made this work, compose your configuration like this:

device_tracker:
  - platform: traccar
    host: hassio
    port: 8072
    ssl: true
    verify_ssl: false
    username: YOUR_USERNAME
    password: YOUR_PASSWORD

That corresponds to the following curl:
wget -O- --no-check-certificate https://hassio:8072
because:

  • host comes from https://hassio:8072
  • port comes from https://hassio:8072
  • ssl: true comes form https://hassio:8072
  • verify_ssl: false comes from ā€“no-check-certificate

Add this in the configuration.yaml, restart hassio and everything should work.

If this does not work, the last check that you can do is to enter the traccar container (docker exec -it addon_a0d7b954_traccar sh) and use this command:
netstat -lutanp | grep nginx
This is my output:

tcp        0      0 0.0.0.0:8072            0.0.0.0:*               LISTEN      388/nginx: master p
tcp        0      0 172.30.32.1:63998       0.0.0.0:*               LISTEN      388/nginx: master p
tcp        0      0 127.0.1.1:8072          127.0.0.1:40558         ESTABLISHED 1298/nginx: worker
udp        0      0 172.30.32.1:49636       172.30.32.2:53          ESTABLISHED 1298/nginx: worker

As you can see in the first row, this container is exposing on the public interface (0.0.0.0 LISTEN) the port 8072. If this is different from the one you wrote, probably there is some misconfiguration.

P.S.: I am sure this guide will not fit your exact case, but I am sure can help you in debugging your problem.

2 Likes

:tada: Release v0.5.2

Full Changelog

This is a general maintenance release.

Changed

  • :arrow_up: Upgrades add-on base image to v4.0.3

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