ignore alarm

Gerard Iscala last year

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

You can clear alarms using computed attributes.

Gerard Iscala last year

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

alarm.png

Gerard Iscala last year

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

Anton Tananaev last year

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

alarm != null ? (alarm == 'tampering' || alarm == 'lowBattery' ? null : alarm) : null
Gerard Iscala last year

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