ignore alarm

Gerardo Iscala 10 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 10 months ago

You can clear alarms using computed attributes.

Gerardo Iscala 10 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.

Gerardo Iscala 10 months ago

alarm.png

Gerardo Iscala 10 months ago

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

Anton Tananaev 10 months ago

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

alarm != null ? (alarm == 'tampering' || alarm == 'lowBattery' ? null : alarm) : null
Gerardo Iscala 10 months ago

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