Hello,
I'm experiencing an issue with custom commands in Traccar. When I send custom commands manually through the web interface (/settings/device/1/command), they work correctly. However, when the same commands are triggered automatically by events (like geofence exit), they don't seem to have any effect.
What works:
Sending a custom command via the web interface
The logs show the command is sent and I receive a response from the device:
[object Object]
What doesn't work:
The same custom command when triggered by an event (like geofence exit)
The logs show "command sent" but no device response, and the device doesn't execute the command
My question:
Are custom commands processed differently when sent manually versus when triggered by events? Is there a different encoding or processing path for these two scenarios?
I'm using Huabao protocol devices. My custom command is: 465245512C3132333435362C33363030
Any help or insight would be greatly appreciated!
Commands are sent the same way.
thats really weird. i just tested it again:
via /command in web view
[object Object]
with automatic event
[object Object]
it sends command after geofence exit but it does not work and i dont know why. its 100% same command that i use..
in web view i get answer from device in logs
Chris, are you creating a notification that when the device leaves the geofence it sends the command? that's it?
it works fine for me for both cases. What I do for the second case you mention is to assign the command to the device. Do you have it assigning the command to the device?
I have never tried without assigning the command
Hello,
thanks for your answer. Yes I have assigend everything to user and device. commands, events and geofence
Hello,
I'm experiencing an issue with custom commands in Traccar. When I send custom commands manually through the web interface (/settings/device/1/command), they work correctly. However, when the same commands are triggered automatically by events (like geofence exit), they don't seem to have any effect.
What works:
Sending a custom command via the web interface
The logs show the command is sent and I receive a response from the device:
What doesn't work:
The same custom command when triggered by an event (like geofence exit)
The logs show "command sent" but no device response, and the device doesn't execute the command
My question:
Are custom commands processed differently when sent manually versus when triggered by events? Is there a different encoding or processing path for these two scenarios?
I'm using Huabao protocol devices. My custom command is: 465245512C3132333435362C33363030
Any help or insight would be greatly appreciated!