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

Anton Tananaev 10 months 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é 10 months 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)
Kaldek 8 months ago

I think this post is going to help me solve some of my own issues with alarms I'm having right now.