home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.65k stars 30.41k forks source link

Traccar Integration Slow To Report #75043

Closed Grunticus03 closed 2 years ago

Grunticus03 commented 2 years ago

The problem

When a vehicle is in motion, my GPS device is set to update my on-prem traccar server every five seconds and I see these updates in the Traccar interface. However, in Home Assisstant, position updates only appear to be occurring every 25-30 seconds.

What version of Home Assistant Core has the issue?

2022.7.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Traccar

Link to integration documentation on our website

https://www.home-assistant.io/integrations/traccar/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

traccar documentation traccar source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @ludeeus, mind taking a look at this issue as it has been labeled with an integration (traccar) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

ludeeus commented 2 years ago

30 is the default for this integration. Use interval_seconds to control it https://www.home-assistant.io/integrations/device_tracker

Grunticus03 commented 2 years ago

Thanks @ludeeus !!! That should make GPS trackers WAY more useful. Kinda of surprised at the low rate of adoption by the HA community.

Grunticus03 commented 2 years ago

Alright...so I've added the setting interval_seconds and restarted HA (twice), but do not see a change in update frequency. Below is the config I have in my configuration.yaml.

device_tracker:
  - platform: traccar
    host: traccar.contoso.com
    username: xxx
    password: xxx
    interval_seconds: 3