I am running an instance of HA in my RV. I have an esp32 gps providing my location data and appropriate automations to update my HA location.
I’ve been playing around with Traccar and wondering if its possible to add my HA instance as a traccar client (can’t see any options in the HA traccar client).
no, not with the integration. You can do it by constructing a osmd url and posting that to traccar. It looks something like this:
http://mytraccarserver:5055/?deviceid=<deviceid>&lat=-<lat>&lon=<long>×tamp=<current date time>&speed=0&bearing=0&altitude=5.583982543945311&accuracy=8&hdop=0.8&batt=90
Then I created an automation that triggers when lat or long change, builds the rest command and fires it. I’m pulling from from the gps sensors on my esp32 gps:
I will probably change the trigger as the gps coordinates change alot even when stationary. I created a sensor that sets the rv_moving_state as ‘moving’ if speed >0 is determined for a period of 10 seconds so this is probably a more appropriate trigger.
The github mentions setting up mariadb but the HA integration page but nothing is mentioned on the main home assistant page. Is this required and if I install mariadb will it autoconfigure. I’m running influxdb right now.