Ad Widget

Collapse

Triggers based on multiple item comparison

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jonxor
    Junior Member
    • Jun 2016
    • 24

    #1

    Triggers based on multiple item comparison

    Hello again, all!

    I wanted to see if anyone else had a better way of solving an issue I had.

    I have a number of operations in my environment, where I want to have triggers based on comparisons between two items. For example, if last(itemX,600) > last(itemX) then trigger.

    The way I have been doing this is creating a calculated item that does a comparison, such as dividing one by the other, to establish a ratio.

    For example, last(itemX,600) / last(itemX) = "5 minute change ratio".

    I then build triggers based on, if last(5 Minute Change Ratio) < 0.95 then that means itemX has decreased by 5% in the last 5 minutes.

    This works, as long as the last polled value is not 0 (Divide by 0 error) which is still a condition I would like to trigger.

    Is there any way to have the trigger logic evaluate this instead?

    Am I doing it wrong?
Working...