Report battery level of tracker

Konrada year ago

Hi. Could you explain how to use batteryLevel to send notification alert. I found thay I should prepare computed attribute:

batteryLevel < 20 ? "lowBattery" : null

But I dont know how should be attribute type: Alarm or Battery Level? Next when I prepare notification what should I choose?
When I created computed attribute as Alarm. When prepare notofication alarm, dont see this new created.

Anton Tananaeva year ago

The attribute should be alarm. What you don't see exactly? You don't see low battery alarm in settings? It should always be there by default.

Konrada year ago

OK, I configured notification alert low battery. I read forum history and documentatnion. For my clarity the key value is "lowBattery" which link fired condition event with alert definition? If event fired alert occurs?

public static final String ALARM_LOW_BATTERY = "lowBattery";
batteryLevel < 20 ? "lowBattery" : null

Now I'm waiting for notification message.

Anton Tananaeva year ago

Yes.

Konrada year ago

Thanks for your support. Have a nice day.