Server 6.14.5 adding command.findHub.url to device

CraigT 10 hours ago

I've got a Docker version 6.14.5 of Traccar server, which is running fine. I've recently added an additional Docker Google-find-hub-sync so that I can track Android FindMy trackers (I'd rather run this on my 24H server than rely on the new phone connected relay app).
The Google-find-hub-sync instance is working fine and I can receive the tracker IDs & positions.
Rather than use the microservice to 'push' updates to the server I'd prefer to use the inbuilt commands within Traccar to start / stop tracking.
I believe that the Attributes menu for devices has recently changed. I can set command.sender to findHub (now called Command Channel), but how can I add command.findHub.url and command.findHub.key as these options aren't available on the Attribute dropdown list?

CraigT 5 hours ago

Additionally, I have tried generating a Saved Command with the data:

{"id":3,"attributes":{"command.sender": "findHub","command.findHub.url": "http://google-find-hub-sync:5500","command.findHub.key": "REDACTED_KEY"},"groupId":0,"name":"DEVICE_NAME","uniqueId":"REDACTED_ID"}

and applying this against the device, but the attributes do not get updated.

Anton Tananaev 5 hours ago

Adding those attributes to a saved command is definitely incorrect. You have to add them to the device as custom attributes.

CraigT 4 hours ago

Yes, I realised that after typing it in! The Saved Command will try to send the info to the Device, not change the settings on the Server. Are you able to explain how to set them as custom attributes on the Device please, as the only options with 6.14.5 appear to be in the dropdown list, which only includes "Command Channel" for commands.

Anton Tananaev 4 hours ago

You just type it in. Didn't you just say that yourself? I'm very confused.

CraigT 3 hours ago

Can you explain what you mean by "You just type it in" please?
Do you mean that I type command.findub.url into the Attribute box on the "Device / Attribute / + Add" popup? If so, when I type that the "ADD" button is greyed out. The only command attribute that it will accept is "Command Channel".

Anton Tananaev 3 hours ago

If the button is grayed out, it probably means you haven't selected the new value in the dropdown.

CraigT 3 hours ago

Ah! I'd missed that when typing a custom command (that's not in the dropdown list) the pop-up description that appears is actually clickable and you have to select that!
That's the custom commands added and the findHub devices are showing correctly!
Thank you for taking the time to reply and for pointing out my rookie mistake!
Traccar continues to evolve and the ability to track Google Find Hub devices is a brillianr addition.