Calculated attribute alarms are not working for me

Joystick5 months ago

@Andres Petrillo
Thanks, this sort of cleared it up for me as well. Just need to confirm below.
I have a computed attribute linked to my main group and have teltonika and meitrack devices in the same group.
Teltonika devices include ignition flag in messages but for meitrack devices I use computed attribute to flag it for various reasons.
Using example 1 makes ignition flag for teltonika device disappear but example 2 work. Have I done it correctly?

Example 1
Attribute: ignition
Expression: protocol=="meitrack"?power?power>="10":null:null

Example 2
Attribute: ignition
protocol=="meitrack"?power?power>="10":null:(ignition?ignition:null)

Thanks for the help

FBoscarato8 days ago

Hello, in this moment i'm still using Traccar 6.2 because i can't understand how change computed attributes in Traccar 6.4 and newer for Teltonika device.
I'm using Teltonika FMC920 and the following is one of my computed attibute

Movement - FMC920
alarm

event ? (motion == 1 && ignition == 0 ? "movement" : null) : null

How to modify it for use with Traccar 6.6?

Screenshot 2025-03-29 alle 13.55.35.png

Thank you

Anton Tananaev8 days ago
  1. Why are you comparing booleans to numbers?
  2. Have you checked whether you have all the attributes available?
FBoscarato8 days ago

Hello Anton,
thank you very much for you fast reply.
I wrote it wrong in the previous post, the calculated attribute works in traccar 6.2 and earlier.

event ? (motion == 1 && ignition == 0 ? "movement" : null) : null

Screenshot_20250329-152438.png

So i understand point 1 and i will check it, but how can modify computed attribute that works in 6.2 for using in 6.6?

Thank you very much

Anton Tananaev8 days ago

You shouldn't modify anything. You should check first what attributes you're getting.

FBoscarato8 days ago

Ok well. But in your opinin, why does it work in 6.2 although attributes or comparisons aren't correct?

Anton Tananaev8 days ago

To provide an answer, I'm requesting this information from you.

FBoscarato7 days ago

may i kindly ask yoy what steps i need to take to analyze the problem?