| Author |  | 
      
        | MrGibbage Super User
 
  
  
 Joined: October 23 2006
 Location: United States
 Online Status: Offline
 Posts: 513
 | 
          I know I could write a trigger for each of my elk inputs
           | Posted: December 09 2009 at 20:34 | IP Logged |   |  
           | 
 |  (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: 729
 | 
          You may have already seen this post link.
           | Posted: December 10 2009 at 09:09 | IP Logged |   |  
           | 
 |  
 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
 | 
          Hmm... the [TEMP10] did not work.
           | Posted: December 13 2009 at 23:05 | IP Logged |   |  
           | 
 |  
 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: 729
 | 
          Gibbage,
           | Posted: December 15 2009 at 19:26 | IP Logged |   |  
           | 
 |  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: 729
 | 
          Did this ever work for you?
           | Posted: December 21 2009 at 21:35 | IP Logged |   |  
           | 
 |  
 __________________
 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
 | 
          Yes, as a matter of fact it does work pretty good.
           | Posted: December 22 2009 at 06:36 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |