Event based on value over time?

Moderator: leecollings

Post Reply
htilly
Posts: 14
Joined: Saturday 09 January 2016 22:05
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Stockholm
Contact:

Event based on value over time?

Post 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
pj-r
Posts: 140
Joined: Wednesday 17 December 2014 17:30
Target OS: Linux
Domoticz version: V3.8650
Location: Jyväskylä, Finland
Contact:

Re: Event based on value over time?

Post 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
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest