Home Assistant device_tracker connection unauthorized

pkkrusty10 months ago

Anyone have experience integrating with Home Assistant? I'm trying to get access to my devices, and the integration is calling the API and gets the server info but returns unauthorized for devices, positions, and geofences.

HA log:

2024-01-22 08:20:45.189 DEBUG (MainThread) [homeassistant.components.traccar.device_tracker] Updating device data
2024-01-22 08:20:45.189 DEBUG (MainThread) [pytraccar] Calling API endpoint: devices with params: None
2024-01-22 08:20:45.190 DEBUG (MainThread) [pytraccar] Calling API endpoint: positions with params: None
2024-01-22 08:20:45.190 DEBUG (MainThread) [pytraccar] Calling API endpoint: geofences with params: None
2024-01-22 08:20:45.910 ERROR (MainThread) [homeassistant.components.traccar.device_tracker] Error while updating device data: Unauthorized

Is there a debug setting when I launch the server binary so I can see what's happening on the server side? I'm using the main admin user, so the API calls should have access to everything.

pkkrusty10 months ago

The problem was certificates. I'm running caddy for a reverse proxy, and needed to specify port 443 in my HA yaml.