Multiple events from custom attributes from one position

ppet last year

Please someone confirm the above?
if a single tracker has 5 possible custom alarms, this is 5! (fuctorial) = 120 possible combinations of alarm conditions !!!

ppet last year

My previous post is wrong but i cannot edit
the possible combinations of 5 custom alarms are 2^5 - 1 = 31
(minus one for the condition than none of the 5 sensors are in alarm state)

Anton Tananaev last year

You can create multiple attributes that calculate each one. But you need to make sure you append value to the alarm, if it already exists.

ppet last year

Anton, thank you for the reply

Can you please elaborate a bit, since i don’t know where to start on order to append values to the alarm?

Anton Tananaev last year

You can do something like this:

(... you logic for alarm ...) ? (alarm ? alarm + ",someAlarm" : "someAlarm") : null
ppet last year

It worked!!! - Thanks

the most cryptic syntax i ever came accross my limited experience

Kaldek 11 months ago

In short, I think most of us hate JEXL with the fire of a thousand suns.