Help Using Computed Attributes

Luis S.a month ago

Hi everyone,
I'm looking for someone who understands how to use computed attributes in Traccar and can explain them clearly with a real-world example.

I’ve read the documentation, but I’d really appreciate a practical explanation or use case to better understand how to configure and apply them correctly.

Thanks in advance!

Anton Tananaeva month ago

What's wrong with the examples in the documentation?

Luis S.a month ago

I used this computed attribute, but it's still showing an error.
Captura de pantalla 2025-08-06 a la(s) 1.44.35 p.m..png
Captura de pantalla 2025-08-06 a la(s) 1.44.48 p.m..png

Anton Tananaeva month ago

Are you trying to remove tampering or keep it?

Luis S.a month ago

Yes, I’m trying to remove the tampering alarm

Anton Tananaeva month ago

Your expression does completely opposite. You should do something like this:

alarm == 'tampering" ? null : alarm
Luis S.a month ago

After correcting the computed attribute expression, how do I link it to the device?

Anton Tananaeva month ago

The same way you link anything else.

Luis S.a month ago

Thank you! I had to restart the server because it wasn't showing up.