ignore alarm

Gerard Iscala 2 months 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 Tananaev 2 months ago

You can clear alarms using computed attributes.

Gerard Iscala 2 months 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 Iscala 2 months ago

alarm.png

Gerard Iscala 2 months ago

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

Anton Tananaev 2 months ago

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

alarm != null ? (alarm == 'tampering' || alarm == 'lowBattery' ? null : alarm) : null
Gerard Iscala 2 months ago

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