Multiple events from custom attributes from one position

ppet8 days 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 !!!

ppet7 days 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 Tananaev7 days 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.

ppet7 days 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 Tananaev7 days ago

You can do something like this:

(... you logic for alarm ...) ? (alarm ? alarm + ",someAlarm" : "someAlarm") : null
ppet7 days ago

It worked!!! - Thanks

the most cryptic syntax i ever came accross my limited experience