Can someone pls advice.
I have finally made the connection from iOS app to Traccar in Hassio but, I dont see any device tracker entity in HA
How have you made the āconnectionā between the Traccar IOS app and the Traccar-server running on Home Assistant?
Port forward 5055 and just in case also 8072. What did the trick I think for me is just put the http not https in ios app server address.
In device_tracker config both host works:
host: a0d7b954-traccar or the local ip of HA
I have also added port 8072 in traccar web port in the plugin config section.
But like I said I dont see any entity in device trackerā¦
Does your IOS Traccar app provide a Device Identifier (a 6-digit number)?
You need to login into your local Traccar web page (via OPEN WEB UI) and add your Device (using the + button).
Give the Device a unique name and in the Identifier-field put the Device Identifier number from the Traccar app.
I have used traccar before, therefore yes I have already done this. I can see my device in traccar web ui and the location is updating. Why I donāt see any device_tracker entity in HA its a mystery for me.
Sooo, thanks to @daaaaa , sorry BIG THANKS, I have finally made it. I have read his nice long post and what did the trick for me was just to remove from configuration file in HA http(s) from host line. Thanks again @daaaaa
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ā¦
Did you solve this by the way? Iām having the same issue right now! It only happends when the power is cut to the raspberry pi! The way I solve it is by uninstalling and installing the MariaDB addon again so it creates a new database but that removes everything stored! Very annoying because I really wanna use this addon! If anyone have some advice with this situation please contact me <3
I think you need to use Mariadb database not the SQLite which is build in. I am using the hassio addon MariaDB and it works nicely.
- Follow the instruction how to install MariaDB add-on and put this in config - change the passwords as you like.
{
"databases": [
"homeassistant",
"traccar"
],
"logins": [
{
"username": "hass",
"host": "%",
"password": "your_password"
},
{
"username": "traccar",
"host": "%",
"password": "your_password"
}
],
"rights": [
{
"username": "hass",
"host": "%",
"database": "homeassistant",
"grant": "ALL PRIVILEGES ON"
},
{
"username": "traccar",
"host": "%",
"database": "traccar",
"grant": "ALL PRIVILEGES ON"
}
]
}
- Then you need to add this in configuration.yaml:
recorder:
db_url: mysql://hass:your_password@core-mariadb/homeassistant?charset=utf8
- Uncomment the 4 lines as per this link https://github.com/hassio-addons/addon-traccar and change the password in traccar.xml file.
Release v0.5.3
This is a general maintenance release.
Changed
- Upgrades nginx to 1.16.1-r0
- Upgrades openjdk8-jre to 8.212.04-r1
- Fix ability to have SSL certs in folders (#24)
- Upgrades add-on base image to v4.1.1
- Use Hass.io DNS as NGinx resolver
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck
Release v0.5.4
This is a general maintenance release.
Changed
- Upgrades Traccar to v4.6
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck
Ok, so I need that to launch Traccar, Iād read it as a stability issue. Ok will give it a go!
Hey,
Can you maybe help me with this? I have the same issueā¦
I have never setup a reverse proxy before.
Thanks in advance
You donāt have to have a reverse proxy set up to use traccar. You could just open a port in the traccar addon and forward the port on your router to the machine running hassio. If you do want to set up a reverse proxy, the easiest way to do so would probably be using the addons available in hassio for that purpose
Hm oke thanks for replying. Iāll try again, its just that everything worked fine, before i setup duckdns.
I check my port forwarding again.
Thanks again!
Hi, i'm new on traccar, can anyone help me to add ignition info to home assistant. The info didn't appear on attributes on device_tracker.
I havenāt connected my ignition to traccar device. But wonāt it show under status ?
@vitinho Hi, please look at this https://www.home-assistant.io/components/traccar/
Under events, you can specify ignition_on and ignition_off
Hope it helps
I cant get it to work. I tried port forwarding in my router but somehow docker doesnt assign ports to the hassio addon from traccar.
Any ideas?
UPDATE - Got it working, the identifier the tracker gave was wrong.
Hi,
Iām still a newbie, and having trouble to understand/find correct information within the documentation.
I have HASSIO installed on an Intel NUC running Docker.
Running DuckerDNS with LetsEncrypt.
Installed the addon, and used following configuration:
{
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"log_level": "info",
"port": 8072
}
Still, I have the following issues/questions:
- When I open the UI and try to add something, I get a āweb socket connection errorā
- Should I be able to do a https://my_hassio_ip:8072 and get a login/password page?
I have installed the client on my android, and using WiFi Iāve set https://my_hassio_ip:8072 but do only get messages that sending was unsuccessful.
Do I need to configure some more to get this to work? I would assume I would get the android device to appear on the map within HA->Traccar
Any help is highly appreciated.
EDIT:
As a newbie I have to say the documentation is poor, but managed to get it running (more or less - still get that error āweb socket connection errorā when Iām in the Traccar UI.
- The port for sending updates from an android/iOS app is 5055
- Edit from āhttpsā to http in the target url (at least for Android) for tracking updates
- Add port 8072 to the add-on config for access to Traccar UI from the internet (and device_tracker)
- Make an access rule to accept - and forward - both ports from internet to hassio