Help Using Computed Attributes

Luis S.2 months 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 Tananaev2 months ago

What's wrong with the examples in the documentation?

Luis S.2 months 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 Tananaev2 months ago

Are you trying to remove tampering or keep it?

Luis S.2 months ago

Yes, I’m trying to remove the tampering alarm

Anton Tananaev2 months ago

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

alarm == 'tampering" ? null : alarm
Luis S.2 months ago

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

Anton Tananaev2 months ago

The same way you link anything else.

Luis S.2 months ago

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