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
Event based on value over time?
Moderator: leecollings
-
- 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?
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
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
Who is online
Users browsing this forum: No registered users and 1 guest