Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Capture any elk input? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: December 09 2009 at 20:34 | IP Logged Quote MrGibbage

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 View MrGibbage's Profile Search for other posts by MrGibbage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: December 10 2009 at 09:09 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: December 13 2009 at 23:05 | IP Logged Quote MrGibbage

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 View MrGibbage's Profile Search for other posts by MrGibbage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: December 15 2009 at 19:26 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: December 21 2009 at 21:35 | IP Logged Quote smarty

Did this ever work for you?

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: December 22 2009 at 06:36 | IP Logged Quote MrGibbage

Yes, as a matter of fact it does work pretty good.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum