Use computed attributes to generate a new attribute based on the raw data.
The Traccar code for decoding Teltonika parameters into Traccar attributes is here: https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
Anything not listed there needs a computed attribute to create the attribute you want in Traccar. However, io240 (Teltonika "Movement") is already decoded as "Motion". At least it is in Traccar v6.6.
I should also add that the term "alert issued by the device" isn't technically correct. Everything coming from the Teltonika devices is just a "Data Sending Parameter", whether that is an I/O element or some kind of alarm.
Whether those parameters are treated as alarms or not within Traccar is a Traccar specific configuration. If you look at the decoder source code I listed in my previous post, you will note that some of the Teltonika Data Sending Parameters are already decoded as Traccar Alarms, whereas others are just decoded as regular status attributes.
Note here an example of Traccar v6.6 automatically decoding io240 into "Motion". The other parameters which are listed as ioXXX are the parameters being sent by this Teltonika tracker which are not, as yet, automatically decoded by Traccar.
Me and my team are currently actively working on a lot of Teltonika settings for Traccar and will be issuing Pull Requests for these soon enough.
What a good topic, I'm implementing Teltonika Dashcam in Traccar but it's been a bit complex because of the amount of code that has to be modified...
Teltonik devices send various events, such as power outages and others. The Traccar platform displays them with codes, such as 240, where I can see the meaning of each event, so I can identify the alert issued by the device.
