Multiple events from custom attributes from one position

ppet 8 months ago

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 8 months ago

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 8 months ago

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 8 months ago

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 8 months ago

You can do something like this:

(... you logic for alarm ...) ? (alarm ? alarm + ",someAlarm" : "someAlarm") : null
ppet 8 months ago

It worked!!! - Thanks

the most cryptic syntax i ever came accross my limited experience

Kaldek 5 months ago

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