Teltonika FMC003 – IO 246 / 252 never trigger alarms (decoder reads only 1 byte, device sends 2-byte values)

Anton Tananaev a month ago

If you want to support multiple alarms, you have to update your TRUE case as well, of course. You need to concatenate new alarm to existing values.

José a month ago

So far it's working well like this:

power < 12.2 && (!ignition || !motion)
    ? (
        alarm
            ? (alarm.contains("lowBattery") ? alarm : alarm + ",lowBattery")
            : "lowBattery"
      )
    : (alarm ? alarm : null)