Issue with Low Battery Alarm in Computed Attributes: Alarm Not Triggering Correctly

Kutta2 months ago

have you a solution?

Anton Tananaev2 months ago

It is definitely possible to do, but I still don't understand why it needs to be done.

Kutta2 months ago

you do not answer my question!
because the alarm does not remain set

Anton Tananaev2 months ago

Sorry, I cannot provide you a full solution because it's pretty complicated.

Kutta2 months ago

I have now found the following solution:
Attribute: alarm
Expression: batteryLevel < 55 && lastBatteryLevel >= 55 ? "lowBattery" : null
Type: string

And add following in the config:

<entry key='processing.computedAttributes.lastAttributes'>true</entry>