Help Using Computed Attributes

Luis S. last year

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 Tananaev last year

What's wrong with the examples in the documentation?

Luis S. last year

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 Tananaev last year

Are you trying to remove tampering or keep it?

Luis S. last year

Yes, I’m trying to remove the tampering alarm

Anton Tananaev last year

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

alarm == 'tampering" ? null : alarm
Luis S. last year

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

Anton Tananaev last year

The same way you link anything else.

Luis S. last year

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