Many thanks for that tip. I hadn’t enabled debug logging yet, the above was just the info output. I’ve now done that; the logging output isn’t particularly useful but does suggest that it’s not finding any devices:
2019-12-31 17:28:48 INFO (SyncWorker_6) [homeassistant.loader] Loaded traccar from homeassistant.components.traccar
2019-12-31 17:28:49 INFO (MainThread) [homeassistant.setup] Setting up traccar
2019-12-31 17:28:49 INFO (MainThread) [homeassistant.setup] Setup of domain traccar took 0.0 seconds.
2019-12-31 17:28:50 DEBUG (MainThread) [homeassistant.components.traccar.device_tracker] Testing connection to Traccar
2019-12-31 17:28:50 INFO (MainThread) [homeassistant.components.traccar.device_tracker] Connection to Traccar restored
2019-12-31 17:28:50 DEBUG (MainThread) [homeassistant.components.traccar.device_tracker] Updating device data
2019-12-31 17:28:50 DEBUG (MainThread) [pytraccar.api] {}
2019-12-31 17:28:50 DEBUG (MainThread) [pytraccar.api] []
2019-12-31 17:28:50 DEBUG (MainThread) [pytraccar.api] []
2019-12-31 17:28:50 DEBUG (MainThread) [pytraccar.api] {}
The updating repeats at roughly 30 second intervals.
I verified the traccar data using the web api directly to fetch a list of devices (GET /api/devices). This returns the following, which looks reasonable. Oliver and Peter aren’t setup yet so not expecting data for those two.
[
{
"id": 1,
"attributes": {},
"groupId": 0,
"name": "Toby",
"uniqueId": "TobyTraccar",
"status": "online",
"lastUpdate": "2019-12-31T17:31:08.987+0000",
"positionId": 450,
"geofenceIds": [],
"phone": "",
"model": "",
"contact": "",
"category": "person",
"disabled": false
},
{
"id": 2,
"attributes": {},
"groupId": 0,
"name": "Sarah",
"uniqueId": "Sarah",
"status": "online",
"lastUpdate": "2019-12-31T17:29:48.771+0000",
"positionId": 449,
"geofenceIds": [],
"phone": "",
"model": "",
"contact": "",
"category": null,
"disabled": false
},
{
"id": 3,
"attributes": {},
"groupId": 0,
"name": "Oliver",
"uniqueId": "Oliver",
"status": "offline",
"lastUpdate": null,
"positionId": 0,
"geofenceIds": [],
"phone": "",
"model": "",
"contact": "",
"category": null,
"disabled": false
},
{
"id": 4,
"attributes": {},
"groupId": 0,
"name": "Peter",
"uniqueId": "Peter",
"status": "offline",
"lastUpdate": null,
"positionId": 0,
"geofenceIds": [],
"phone": "",
"model": "",
"contact": "",
"category": null,
"disabled": false
}
]