Multiple events from custom attributes from one position

ppet2 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 !!!

ppet2 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 Tananaev2 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.

ppet2 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 Tananaev2 months ago

You can do something like this:

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

It worked!!! - Thanks

the most cryptic syntax i ever came accross my limited experience