ignore alarm

Gerard Iscalaa month ago

Hi everyone, I have the following situation: I have some devices that are reporting tamper and low battery alarms, but that's not actually the case.

How can I ignore these alarms in Traccar, specifically on the alarm icon of each device?

Anton Tananaeva month ago

You can clear alarms using computed attributes.

Gerard Iscalaa month ago

Hi Anton, thanks for your reply.

alarm != null ? (alarm.toLowerCase() == 'Tampering' || alarm.toLowerCase() == 'Low Battery' ? null : alarm) : null

I'm using this expression, but it's not clearing the alarms; the alarm icon for each device is still appearing.

Gerard Iscalaa month ago

alarm.png

Gerard Iscalaa month ago

Captura de pantalla 2025-11-05 a la(s) 10.54.37 a.m..png

Anton Tananaeva month ago

It's definitely incorrect. You should do something like this:

alarm != null ? (alarm == 'tampering' || alarm == 'lowBattery' ? null : alarm) : null
Gerard Iscalaa month ago

With your expression, it works perfectly. Thank you very much, Anton.