Short of it is, when the internet goes down or the IPsec VPN disconnects, I stop getting data from traccar into Home Assistant. Traccar runs on a VPS, and I’ve been using a hass container. Previously under kubernetes and currently under docker. Thought maybe it was a coredns/k8s issue but clearly not.
Logs simply report:
File "/usr/local/lib/python3.13/site-packages/pytraccar/client.py", line 77, in _call_api
File "/usr/src/homeassistant/homeassistant/components/traccar_server/coordinator.py", line 205, in import_events
File "/usr/local/lib/python3.13/site-packages/pytraccar/client.py", line 145, in get_reports_events
File "/usr/local/lib/python3.13/site-packages/pytraccar/client.py", line 101, in _call_api
raise TraccarConnectionException(
"Timeouterror connecting to Traccar"
pytraccar.exceptions.TraccarConnectionException: Timeouterror connecting to Traccar
File "/usr/local/lib/python3.13/site-packages/pytraccar/client.py", line 77, in _call_api
File "/usr/src/homeassistant/homeassistant/components/traccar_server/coordinator.py", line 205, in import_events
File "/usr/local/lib/python3.13/site-packages/pytraccar/client.py", line 145, in get_reports_events
File "/usr/local/lib/python3.13/site-packages/pytraccar/client.py", line 101, in _call_api
raise TraccarConnectionException(
"Timeouterror connecting to Traccar"
The only solution seems to be a complete restart of home assistant. I’ve seen similar issues with other integrations in the forums but no solutions posted. Anyone have thoughts on how I might go about attacking this one? It seems the only workaround people have found is a regular restart of the services which is really wasteful and hard to make consistent.
Thanks!