Notification Type for Teltonika device FMB920

Aiman Ibrahim2 years ago

when power disconnect of FMB 920 , data receive on traccar5.6 with event ID 66, and it seems in event column of route reports.
How this event can set in Notification, so i could receive notification under "bell button"?
I tried Alarm type> power cut option, but it doesnot work.

Anton Tananaev2 years ago

You have to create a computed attribute to convert event code into an alarm.

Aiman Ibrahim2 years ago

Hi, thanks for your reply.
I created computed attribute like
Description: Power Fails
Attribute: Alarm
Expression: event ? event == 66 : null

After this, i can see Alarm appearing in Type column of Reports>Events , whenever event 66 is received.

In Notification section , for the above computed alarm, when i go to add new notification and select "Alarm" in type, so what should i select in alarm field option to receive notification.

Aiman Ibrahim2 years ago

Continued from my last post:
when I add computed attribute like
Description: Power Fails
Attribute: Alarm (no further alarm name option is available)
Expression: event ? event == 66 : null

I observe the red warning appear next to vehicle name in vehicle list , it shows message "Alarm: undefined"

Cristian2 years ago

create these 2 calculated attributes and assign them to the device
https://ibb.co/df5NCBr
then you create the power failure and power restore alarm notifications and assign them to the device as well.

that should work, let us know if it works for you.

Cristian2 years ago
Anton Tananaev2 years ago

You actually need to return the alarm key in your expression. Something like this:

event ? (event == 66 ? "powerCut" : null) : null
Aiman Ibrahim2 years ago

Thank you for nice support.

It is working now