Incremental Alarm Issue **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

glennpm
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Aug 03, 2014 8:47 pm

Incremental Alarm Issue **solved**

Post 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
Attachments
MeteoPlug 4.jpg
MeteoPlug 4.jpg (55.07 KiB) Viewed 9083 times
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post 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.
glennpm
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Aug 03, 2014 8:47 pm

Re: Incremental Alarm Issue

Post 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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post 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]
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post 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?
glennpm
Senior Boarder
Senior Boarder
Posts: 54
Joined: Sun Aug 03, 2014 8:47 pm

Re: Incremental Alarm Issue

Post by glennpm »

Thank you for the min temp alarm guidance!

Glenn
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post by assenzuid »

Is there a comprehensive manual available for the alarm part?
I struggle to get it working properly.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post 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
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post 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?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post 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 ) )
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post 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 )
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post by admin »

yes, looks fine to me (without having actually tested it)
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post by assenzuid »

I will test it with another temperature condition and see what happens
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post 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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post 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 ) )
Post Reply