Page 1 of 3

Incremental Alarm Issue **solved**

Posted: Sun Aug 24, 2014 8:16 pm
by glennpm
I set up an incremental alarm this morning for a "<" temperature condition as shown below. I do see that the clear should have been an even integer. It was silent for a couple of hours but then when I was out it ran away, producing over 1,000 emails, about 16 each minute.

- Is there a way to set the incremental time?

- Is there a way I set up a clear condition that grabs the time of the first alarm pushed email and stops it? A version perhaps of this string but I don't know how to grab the first alarm time.

viewtopic.php?f=56&t=9713&p=14953&hilit=alarm#p14953

Thanks

Re: Incremental Alarm Issue

Posted: Mon Aug 25, 2014 5:57 pm
by admin
your conditions don't look good to me.

1) for incremental alarms, I would recommend to use the "complex condition expressions"

2) the conditions you state don't make sense when temp is at 69.0 F. Now the raise and clear are both triggered,
which will result into the email storm you experienced.

What do you want to achieve? When you state that a sentence, we can help to draft the expressions.

Re: Incremental Alarm Issue

Posted: Tue Aug 26, 2014 2:07 am
by glennpm
Hi,

Yes, I would welcome help with this.

During the winter I am gone on trips for extended periods of time and need to monitor and be warned if the heating system, oil supply or a power outage (recognizing that i won't know the temperature until power returns); has stopped my oil burner from running. Last winter was very cold and I was fearful of frozen water piping in the house.

I would like to get an alarm when the temperature is less than 45 F and monitor its decline or increase. For the decline, I would make a call and have someone get into my house to see what is the issue. If the temperature starts increasing, that is increases steadily above 45 F then I would do nothing. I usually set the tempeature at 52 f during the winter when I'm gone.

Thanks

Re: Incremental Alarm Issue

Posted: Tue Aug 26, 2014 8:23 pm
by admin
to get an incremental alarm on decline below 45F you might use these lines.

raise (incremental):

Code: Select all

45 - [thb0temp-act=F.0:45]
clear:

Code: Select all

[thb0temp-act=F.0:0] - 45
msg:

Code: Select all

Warning: Indoor temp dropped to [thb0temp-act=F.1:--]°F at [hh]:[mm]

Re: Incremental Alarm Issue

Posted: Tue Aug 26, 2014 10:09 pm
by assenzuid
I want to setup an alarm message every time it's raining.

When I use [rain0total-act=mm:0] - 0.2 an alarm message will be cleared and triggered in an continuous loop or must I use [rain0total-sumday=mm:0] - 0.2?

Re: Incremental Alarm Issue

Posted: Wed Aug 27, 2014 2:39 pm
by glennpm
Thank you for the min temp alarm guidance!

Glenn

Re: Incremental Alarm Issue

Posted: Fri Sep 12, 2014 1:39 pm
by assenzuid
Is there a comprehensive manual available for the alarm part?
I struggle to get it working properly.

Re: Incremental Alarm Issue

Posted: Fri Sep 12, 2014 6:11 pm
by admin
just the wiki, but as I am bored with writing it has not too much examples ;-)

How alarm triggers work:
http://meteobridge.com/wiki/index.php/P ... Conditions

Available variables:
http://meteobridge.com/wiki/index.php/Templates

Re: Incremental Alarm Issue

Posted: Sun Sep 14, 2014 11:58 am
by assenzuid
Ok, I will try/ test some triggers

One question
If you set an alarm (one-time alarm) for example:
Raise: [th0temp-act=c.1:0] < 18
Clear: [th0temp-act=c.1:0] > 18
Body: blabla
to-addr: example@example.com

Will the alarm be cleared every 24 hours (day change) or only when the clear parameter is reached?

Re: Incremental Alarm Issue

Posted: Sun Sep 14, 2014 12:09 pm
by admin
Alarm will only be be cleared when clear expression is satisfied.
When you want it also cleared on day change, do:

Code: Select all

clear: ( [th0temp-act=c.1:0] > 18 ) || ( ( [hh] = 0 ) && ( [mm] = 0 ) )
This can have an unwanted side effect, as every time the trigger condition is met
during the first minute of the day (00:00) the trigger is also cleared immediately
which can result into many alarm mails during that minute. You can avoid that by
inhibiting a trigger event during that "day change reset period". Raising trigger
condition would then look like this:

Code: Select all

raise: ( [th0temp-act=c.1:0] < 18 ) && ( ( [hh] != 0 ) || ( [mm] != 0 ) )

Re: Incremental Alarm Issue

Posted: Sun Sep 14, 2014 12:48 pm
by assenzuid
Ok, this wil raise an alarm when the condition is reached over the day and cleared every 24 hours (day change).

I assume if you ( [hh] = 0 ) && ( [mm] = 0 ) change to ( [hh] = 7 ) && ( [mm] = 0 ) the alarm will be cleared at 7 hours and can triggered again that same day at for example 14:01 if the conditions are met?

the alarm will than:
raise: [th10temp-act=c.1:0] < 15 ) && ( ( [hh] != 7 ) || ( [mm] != 0 )
clear: [th10temp-act=c.1:0] > 15 ) || ( ( [hh] = 7 ) && ( [mm] = 0 )

Re: Incremental Alarm Issue

Posted: Sun Sep 14, 2014 2:48 pm
by admin
yes, looks fine to me (without having actually tested it)

Re: Incremental Alarm Issue

Posted: Sun Sep 14, 2014 8:43 pm
by assenzuid
I will test it with another temperature condition and see what happens

Re: Incremental Alarm Issue

Posted: Wed Sep 24, 2014 3:24 pm
by assenzuid
assenzuid wrote:Ok, this wil raise an alarm when the condition is reached over the day and cleared every 24 hours (day change).

I assume if you ( [hh] = 0 ) && ( [mm] = 0 ) change to ( [hh] = 7 ) && ( [mm] = 0 ) the alarm will be cleared at 7 hours and can triggered again that same day at for example 14:01 if the conditions are met?

the alarm will than:
raise: [th10temp-act=c.1:0] < 15 ) && ( ( [hh] != 0 ) || ( [mm] != 0 )
clear: [th10temp-act=c.1:0] > 15 ) || ( ( [hh] = 7 ) && ( [mm] = 0 )
The alarm will not be cleared at 7 hours, only when the tempature will rise to 15

Re: Incremental Alarm Issue

Posted: Wed Sep 24, 2014 8:44 pm
by admin
silly me, it needs "==" insread of "=" snd brackets don't look too good...

Code: Select all

raise: ( [th10temp-act=c.1:0] < 15 ) && ( ( [hh] != 0 ) || ( [mm] != 0 ) )
clear: ( [th10temp-act=c.1:0] > 15 ) || ( ( [hh] == 7 ) && ( [mm] == 0 ) )