Hi,
I am currently using the Traccar integration in Home Assistant and would like to implement a feature where the address is only updated when the vehicle is stationary (e.g. when the speed of the vehicle is zero or the movement is detected as "off"). Currently, the address is frequently updated even when the vehicle is moving, resulting in unnecessary API calls.
We have tried to adjust the reuseDistance setting to reduce the frequency of address updates, but we have found that increasing the value too much can lead to inaccurate results for the last known position. It is important for us to get the most accurate position at the time the vehicle stops.
My ideal solution would be to trigger
address update when the vehicle stops:
The address should only be updated when the vehicle is stationary (e.g. when it has stopped moving or the speed has been zero for a certain duration, e.g. 30 seconds).
Alternatively: Triggering via API call:
I tried to trigger reverse geocoding directly via the API, but I could not find any corresponding API commands or the functionality seems to be missing in the documentation or is not provided.
Another alternative: use time interval:
Another approach would be to trigger the address update at certain time intervals (e.g. every 5 minutes)
Has anyone implemented something like this, or can someone give me a solution or instructions on how to do this?
Thank you in advance!
Best regards,
Manuel
Updating address only on stops is an interesting concept, but it's probably not trivial to implement.
Thank you for your feedback!
That's why the idea of triggering the address retrieval via the API, as if clicking "Show Address" in the UI, seemed like a good solution. This is currently my main hope because I had feared that automatic address updates upon stopping the vehicle might not be feasible.
Alternatively, I would be fine with a time interval as well. Ultimately, I just want to reduce the frequency of reverse geocoding requests to save on traffic, especially since the setup in my campervan operates on mobile data.
Hi,
I am currently using the Traccar integration in Home Assistant and would like to implement a feature where the address is only updated when the vehicle is stationary (e.g. when the speed of the vehicle is zero or the movement is detected as "off"). Currently, the address is frequently updated even when the vehicle is moving, resulting in unnecessary API calls.
We have tried to adjust the reuseDistance setting to reduce the frequency of address updates, but we have found that increasing the value too much can lead to inaccurate results for the last known position. It is important for us to get the most accurate position at the time the vehicle stops.
My ideal solution would be to trigger
address update when the vehicle stops:
The address should only be updated when the vehicle is stationary (e.g. when it has stopped moving or the speed has been zero for a certain duration, e.g. 30 seconds).
Alternatively: Triggering via API call:
I tried to trigger reverse geocoding directly via the API, but I could not find any corresponding API commands or the functionality seems to be missing in the documentation or is not provided.
Another alternative: use time interval:
Another approach would be to trigger the address update at certain time intervals (e.g. every 5 minutes)
Has anyone implemented something like this, or can someone give me a solution or instructions on how to do this?
Thank you in advance!
Best regards,
Manuel