Author |
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: December 09 2009 at 20:34 | IP Logged
|
|
|
I know I could write a trigger for each of my elk inputs
(and that may not be such a bad idea), but I was wondering
if there was a trigger that would fire on any Elk input
changing, and perhaps it writes the input number/name to a
global temp?
The reason why I ask is I want to have PH send me an email
when the alarm sounds, and I'd like it to contain the zone
that triggered the alarm in the body of the email.
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: December 10 2009 at 09:09 | IP Logged
|
|
|
You may have already seen this post link.
This is what I had to do to be able to find out what zone actually tripped.
Hope this helps.
Edited by smarty - December 10 2009 at 09:10
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: December 13 2009 at 23:05 | IP Logged
|
|
|
Hmm... the [TEMP10] did not work.
I had a line in a macros like this:
ph_sendsmtpemail("smtp.east.cox.net", 25, "{SKIP_HOME_EMAIL}", "{SKIP_CELL_EMAIL}", "ALARM SOUNDING" + " " + "[TEMP10]", "The Alarm is
Sounding." + " " +
"[TEMP10]")
And all I got was "ALARM SOUNDING 1"
Edited by MrGibbage - December 13 2009 at 23:06
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: December 15 2009 at 19:26 | IP Logged
|
|
|
Gibbage,
I revisited at my implementation of this.....hope this helps you....
Just to be clear...I set up a couple of elk zones as Digital I/O, INPUT type, zones.
As a side note, these same zones are also still set us as Analog I/O, MULTI-STATE INPUTS...ie, regular elk zones.
I then have a trigger that calls a macro.
The trigger is:
trigger type:Digital In
trigger ID:ANY
trigger value:Changed
In the macro that the trigger calls, I run a "tts" commands that looks like this:
ph_macroparm( "ANNOUNCE", "Attention. Zone violation at"+ mid("[TEMP10]",6,30),2,"buzzer2.wav",2,"set100")
What I don't remember is why I use the midstring. I forget what exactly TEMP10 returns, but there is useful information in there....you might want to be sure you name your digital inputs descriptively, as it likely returns this digital name information.
Steve
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: December 21 2009 at 21:35 | IP Logged
|
|
|
Did this ever work for you?
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: December 22 2009 at 06:36 | IP Logged
|
|
|
Yes, as a matter of fact it does work pretty good.
|
Back to Top |
|
|