ignore alarm

Gerard Iscala3 days 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 Tananaev3 days ago

You can clear alarms using computed attributes.

Gerard Iscala3 days 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 Iscala3 days ago

alarm.png

Gerard Iscala3 days ago

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

Anton Tananaev3 days ago

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

alarm != null ? (alarm == 'tampering' || alarm == 'lowBattery' ? null : alarm) : null
Gerard Iscala3 days ago

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