Use alarm key

Rib6 years ago

Hi,

I have configure a computed attribute for check level battery on my phone android client

this computed attribute work correctly

Computed Attribute
Description text

Status Attribute
Description text

Rapport Events:
Description text

But, i would like send this alarm on notification web and mail.

I want configure notification alarm, but i don't have this customer attribut on dropdown box

Description text
After many search, i must configure an alarm key,

Can you explain this procedure ?

Thanks

Anton Tananaev6 years ago

You have to use correct alarm key, which is lowBattery (not capital B).

Rib6 years ago

Thank Anton,

I modified this alarm key, and replaced it by lowBattery.
I received a notification on panel event, idem for mail notification

Description text

Question:
if i configure a computed attribut with non-existent alarm key,
should i add this attribute in the position.java file to received notification?

Exemple:

batteryLevel < "23" ? "newtest" : null

Position.java:

public static final String ALARM_NEWTEST = "newtest";
Anton Tananaev6 years ago

If you want to add a new type, you need to modify both back-end and web app.

Rib6 years ago

Thank Anton. I stay with a simple configuration, as explained