custom allarms do not arrive via email

Deborah3 years ago

Hi, I created a calculated alarm attribute and set the email notification for this (see attached picture), but no email arrives when the event occurs!
The alarm works, when it occurs I see it among the attributes
Emails for other notifications also arrive
What can I do? Thanks

https://drive.google.com/file/d/172VafWP5uVZY1M-ZZSy7UEtu-7S4BtPj/view?usp=sharing

Anton Tananaev3 years ago

What key are you using? You have to use one of the existing keys.

Deborah3 years ago

what keys are you talking about? For the configuration of the email I have inserted these: https://www.traccar.org/gmail/ Which others should I insert?

Anton Tananaev3 years ago

Alarm key.

Deborah3 years ago

Yes. I use "door" in the combo

Anton Tananaev3 years ago

And what do you use in your expression?

Deborah3 years ago
if (door==256) 
{return "Autista";}

I'm sure this expression works, because I also use it in another computed attribute.
But the alarm works regularly (I see it as an attribute when it occurs!) It is not only notified

Anton Tananaev3 years ago

If the key in the expression doesn't match the key that you selected for the notification, how do you expect this to work?