to the log when it receives an error 401. Hmm, maybe another “bug” in the code? I.e., when it tests the connection the first time, and if it works, it doesn’t remember the connection worked, so when it updates (which it does immediately after that, and then periodically) it will test the connection again (which is where you’re seeing the restored message), and then remembers whether or not the connection worked (but ignores any authentication errors.) And even more unfortunate is that the pytraccar package doesn’t bother to write any warnings, etc. Oliver and Peter aren’t setup yet so not expecting data for those two. This returns the following, which looks reasonable. I verified the traccar data using the web api directly to fetch a list of devices (GET /api/devices). The updating repeats at roughly 30 second intervals. 17:28:50 DEBUG (MainThread) Updating device data 17:28:50 INFO (MainThread) Connection to Traccar restored 17:28:50 DEBUG (MainThread) Testing connection to Traccar 17:28:49 INFO (MainThread) Setup of domain traccar took 0.0 seconds. 17:28:49 INFO (MainThread) Setting up traccar I’ve now done that the logging output isn’t particularly useful but does suggest that it’s not finding any devices: 17:28:48 INFO (SyncWorker_6) Loaded traccar from I hadn’t enabled debug logging yet, the above was just the info output. The devices show up and update fine in Traccar itself, so I know that part is ok. I’m not sure what to expect next - I don’t see any new devices or entities added, and if I listen for events I don’t see any traccar-based events generated. 15:08:05 INFO (MainThread) C onnection to Traccar restored On startup, the only relevant line I see in the logs is this: Traccar_host is set to my internal IP address (192.168.1.xxx). I’ve added the following to my configuration.yaml: device_tracker: Home assistant is run as a docker image under docker-compose using plain home assistant (no hassio). I’ve had a traccar server running previously, which is on the same machine (a pi 4) as home assistant but otherwise totally separate. I'm a tech geek (aren't we all), and ironically my undergrad major (MIS) involved some coding, but I shy away from too much of that (guided YAML coding is kind of my maximum at the moment, Bash still confuses the hell out of me).Ĭan anyone help point me either to some guides, or to some OBD GPS trackers which would be relatively-easy to plug a SIM into and get working with Traccar (and then Home Assistant), without the need for some significant level of programming? I've done some searching and either I don't know how to look for this, or clarity seems to not exist at the moment on this topic in the areas I've looked.I’m relatively new to home assistant, and trying to add traccar to track locations. I even ordered a data-only SIM from my carrier, Google Fi.īut, in double-checking I knew what I was getting into, I noticed that these Freematics devices require some degree of programming. I see all the supported devices and the prominently-mentioned Freematics ONE+ variants. However, this is where I hit a wall, in terms of solution-finding. Seems like the clear solution, as I run an UnRAID server and presumably can run a Traccar server on there (I see a Docker app in the Community Applications store), so no need for a monthly subscription fee (if I understand correctly). Lo-and-behold, there's a massive market of them on Amazon - but I want something without a subscription service, ideally open-source, that I can integrate in Home Assistant.īoom - Traccar. ![]() But this got me thinking about OBD-based GPS trackers. However, my wife has an old Honda Civic and we'd like to track that too (she shot down using a Tile tracker, as she correctly pointed out such a device is mostly useless if the car is taken into the middle of nowhere).īack in the day, I had an Automatic OBD adapter for my old car (also a Honda Civic at the time) - it was great! Of course, Automatic is no more. ![]() This is something I love having the ability to do for peace of mind, at a bare minimum. Hey all, so I've been getting into Home Assistant, and I'm lucky enough to own a car which already has a built-in integration, allowing for tracking it via GPS and whatnot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |