Ad Widget

Collapse

Trigger OR Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kryol
    Member
    • Feb 2011
    • 70

    #1

    Trigger OR Action

    Hi,

    I have a custom item, e.g. item1. The value of this item is 0 or positive integer (it is possible to make it equal 1).

    item1 > 0 - is OK.

    I use a trigger for this item. Depend on triggers state I need to use two different remote commands.

    No problem.
    Code:
    {host:item1.last(0)=0}
    and two different actions for PROBLEM and OK.

    But I would like to use several last values of item1. E.g. if last 5 values of item1 equal 0, then trigger switches to PROBLEM, and if last 5 values of item1 equal 1, then OK.

    I tried to use
    Code:
    {host:item1.max(#5)=0}
    This works fine for a PROBLEM but switches to OK after first value of item1=1.

    I looked manual for trigger and action descriptions but didn't find any answer.
  • Kryol
    Member
    • Feb 2011
    • 70

    #2
    I found solution.
    Using Hysteresis all works fine.
    Sorry

    Comment

    Working...