Page 1 of 1

Event based on value over time?

Posted: Friday 01 April 2016 22:29
by htilly
How can I trigger an alarm if a value has been over a threshold over a period of time?

I.e. if power consumption is above "X" for "Y" minutes, then send alarm.
Or if temperature is below "X" degrees for "Y" minutes.

Is this possible?

Thanks in advance.

BR
Tilly

Re: Event based on value over time?

Posted: Saturday 02 April 2016 15:44
by pj-r
You can archieve this with quite simple lua script.
in script check if value is good -> store time to user variable
check if time from last good value is too long ago -> send alarm and set user variable