bucko
1
I have a PLEG property defined for a switch that powers my router “Router_State_p6”
I am trying to create a condition so that if this state = 0 for over 2 minutes.
I tried "Router_State_p6==0 AND (Router_State_p6==0 > 00:02:00)
Saving returns “PLEG_Control[130] : Router_State_p6==0 AND (Router_State_p6==0 > 00:02:00): Invalid Value token: 00:02:00”
I tried several other ways, but I cannot get it to work out.
Any help?
@bucko
Consider splitting things up as two separate conditions
cRouterStateIsZero Router_State_p6==0
cRouterStateIsZeroSustained cRouterStateIsZero AND (cRouterStateIsZero; Now > 2:00)
Brian is correct!
The reason:
Router_State_p6==0
Is an expression. An expression does NOT have a timestamp.
Sequence expressions operate on things with timestamps … i.e. inputs and conditions.
bucko
4
Thank you Brian, I will go that route. And thank you Richard for the explanation. I’m learning more each day!