Multiple events from custom attributes from one position

ppeta month 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 !!!

ppeta month 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 Tananaeva month 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.

ppeta month 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 Tananaeva month ago

You can do something like this:

(... you logic for alarm ...) ? (alarm ? alarm + ",someAlarm" : "someAlarm") : null
ppeta month ago

It worked!!! - Thanks

the most cryptic syntax i ever came accross my limited experience