Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Elk GPIO Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
narc
Groupie
Groupie
Avatar

Joined: November 21 2006
Location: United States
Online Status: Offline
Posts: 49
Posted: March 04 2007 at 13:03 | IP Logged Quote narc

Hey Guys,

I have the new version of PH, and I am trying to figure out how to use my Elk for GPIO.

I have the Elk serial connection established and can talk to it with ElkRP.

I have added a controller to PH and pointed it at the correct serial port.

Then in PH I went to "Devices, Digital I/O, Points" and defined a point referencing I/O point 162 (this is the sliding door next to my computer).

Then I went to control, device status and expected to see the "Off" change to "On" when I opened the door, but it did not.

So what is the missing step here?

- jason
Back to Top View narc's Profile Search for other posts by narc
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 05 2007 at 20:27 | IP Logged Quote dhoward

Jason,

Since the Elk input points are multi-state (more than 2 states like a standard digital input), they are defined in the Analog I/O screen. You'll see a new type of "Elk Multi-State". Do the definition here and you should see it working as you expect. If you want to define the Elk Digital Outputs, then you'll use the Digital I/O table.

Let me know how your Elk testing goes...you'll probably be the first.

Thanks,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: March 05 2007 at 20:40 | IP Logged Quote smarty

Maybe I am the first?????

I have succesfully set up my multi-state Elk alarm zones (1-16 on the main Elk panel) in the PH analog I/O screen.

Additionally, I have set up the Elk outputs (1-16) in the PH digital I/O screen.

These all appear to work fine (as verified through the device status screen), but I still need to figure out the "raw to calculated fomula column"....yes, I am reading the help menu :). I have a temperature sensor on zone 16, is it possible to display this temp?


The neat part about all this is that I am connected to the Elk via ethernet (rather than serially) using my Elk ethernet module and "HW Virtual SerialPort" freeware.

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

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 05 2007 at 21:37 | IP Logged Quote dhoward

Steve,

Yay! Someone testing the Elk functionality! Glad to hear that the multi-state's and the digital outputs are working properly.

Concerning the temperature sensor...I didnt have any temperature sensors to check with so I had to program this blind. The Elk seems to support 3 different types of temperatures...Thermostats, Keypads, and Temp sensors (which I assume is connected to an Elk multi-state input).

If it's a temperature probe connected to a multi-state input, then you should be able to declare a standard "Input" in the Analog I/O screen (don't use Elk multi-state). The value to use in the formula though, Im not quite sure. If it follows the standard temperature protocol outlined in the documentation, then you should be able to use "[DATA] - 60" without the double quotes for the "Raw to Calculated" formula to obtain the temperature in degrees farenheight.

If this works, let me know. After reading back over the docs while researching this for you, I think the light bulb may have just gone off for me and I can implement some quick changes for the next version.

Thanks,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
narc
Groupie
Groupie
Avatar

Joined: November 21 2006
Location: United States
Online Status: Offline
Posts: 49
Posted: March 05 2007 at 23:24 | IP Logged Quote narc

Ok, I have defined my Elk input as Analog I/O, type "Elk I/O". I picked my controller from the drop down, and set the point to "1" (I assume this is I/O point 1 on the mainboard of the Elk).

What should the I/O point show as a status in the "Device Status" window? Right now it just shows a yellow rectangle. I was expecting a voltage.

- jason



Edited by narc - March 05 2007 at 23:30
Back to Top View narc's Profile Search for other posts by narc
 
narc
Groupie
Groupie
Avatar

Joined: November 21 2006
Location: United States
Online Status: Offline
Posts: 49
Posted: March 05 2007 at 23:32 | IP Logged Quote narc

Now it is a blue rectangle :)
Back to Top View narc's Profile Search for other posts by narc
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 06 2007 at 20:09 | IP Logged Quote dhoward

Jason,

If the input in question is being used as a standard Elk multi-state input (with the resistors and monitoring open and closed loops), the you would define the type as "Elk Input". Leave the "Message" and "Raw to Calculated Formula" fields blank to use the built in calculations for the Elk Input. With this type of setup, the Elk Multi-State input will display 1 of 16 different values with each message in two parts. The first part can consist of ("Normal","Trouble","Violated","Bypassed") and the second part will consist of ("Unconfigured","Open","EOL","Short"). A typical message would be "Normal, EOL". The background color will be 1 of 4 different colors.

If the input is being used as a voltage input instead of the standard Elk multi-state, then configure the "Type" as "Input". Set the "Message" to "Volts" and set the "Raw to Calculated Formula" to "[DATA] / 10" (remove the double quotes when setting both of these fields).

HTH,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: March 06 2007 at 20:22 | IP Logged Quote smarty

Hhmmm...

Dave,
Through the device status screen, I able to see rows for my 16 (main elk board) multi-state zones. While I have #16 set up for temperature (see bug report), the rest are set up for normally closed or normally open operation alarm type operation. I have set these up in PH as "Elk Input's".

The PH device status screen DOES show a color change when I change the state of a given zone. What does NOT happen is that I see NO ZONE TEXT that you describe above (NO TEXT AT ALL).

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: March 06 2007 at 20:42 | IP Logged Quote smarty

Breakthrough......

For grins, I put the "[DATA]" variable in the "RAW to Calculated Data" column, and then pressed F5, so my changed would stick. I then went to the PH device status screen to see what I would get.

It appears (in my case anyway), that for the zone status text (ie such things "Unconfigured","Open","EOL","Short") to show up, I had to kinda jump start the process by adding the [DATA] variable to the Raw to Calc data column.

When I went back and removed the variable (and restarted PH), the text for that zone then worked.

P.S. I also had to cause my zones to toggle a couple of times before the text would display.


It seems there might be an "initial run" type bug here.

Edited by smarty - March 06 2007 at 20:57


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

Joined: November 21 2006
Location: United States
Online Status: Offline
Posts: 49
Posted: March 07 2007 at 10:14 | IP Logged Quote narc

smarty,

I followed your directions, putting [DATA] in "Raw to Calculated" and restarted. Still no text. I deleterd [DATA] and still no text.

I do get colors that change live with the states (blue for short circuit, green for open, grey for EOL I think) but I do not get any text.

Any ideas Dave?

- jason
Back to Top View narc's Profile Search for other posts by narc
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: March 07 2007 at 20:14 | IP Logged Quote smarty

Jason,
Try one more thing......

As I retrace my steps, I put in the "[DATA]" variable, AND I also put some text in the "Message" column (this column appears to be where you would enter units of measure like volts).

Maybe you need BOTH of these things to jump start the zone text display. I realize this is what I did, and it did work for me.

Steve

Edited by smarty - March 07 2007 at 20:16


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


Joined: March 07 2006
Location: United States
Online Status: Offline
Posts: 15
Posted: March 07 2007 at 20:28 | IP Logged Quote mmoore99

I've been reading the help file and following this thread and am still confused regarding the interface between the M1 and PH. What I would like to do is be able to trigger PH when a specific zone becomes armed or unarmed so that PH could then execute some commands. I would appreciate some guidance on exactly what I would need to setup in order to be able to accomplish this.

Edited by mmoore99 - March 07 2007 at 20:29
Back to Top View mmoore99's Profile Search for other posts by mmoore99
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 07 2007 at 21:28 | IP Logged Quote dhoward

Steve,

Awesome that it is now working...not awesome on what you had to go through. Ive been pouring over the code and have some deficiencies that I am correcting. It doesnt explain everything however.

When PowerHome is launched, it instantiates the Elk controller and then connects to the Elk. During this connection phase, the first thing that is done is the Elk controller module queries the analogio and digitalio tables to build a list of all devices controlled by the Elk. The module then performs a Zone Status request, etc. to get the current values. This is when the "text" should be populated. In a new system, these devices have not yet been defined. As the user goes into the Devices screen and defines multi-state inputs, etc., the Elk module does not know about these devices yet. This is one of the parts that I need to fix. They will not be "discovered" until the Elk controller is "connected" to again. This "connection" will occur if you shutdown/restart PowerHome, reinitialize PowerHome, or disconnect/reconnect the controllers. This should be all that is necessary to get the text to appear. It appears though that you had to do extra with adding the "[DATA]" statement and then removing it. This should not be necessary so I need to try and track down why that happened. Also, the fact that you had to cycle the points several times in addition to the above means that Ive screwed up something somewhere. I havent found it in the code yet, but will keep looking.

Now one of the things that can keep the default "text" from displaying is a value in the "Raw to Calculated Formula" field. If you have any text in this field (even a space character), the default "text" will not be displayed and instead the calculated formula will be displayed (if the formula was a space character, then only a space would be displayed which would appear to be a blank). If you do place [DATA] in the formula field, then what should be displayed is a number from 0 to 15.

Ok, Ive been through the code front to back and have found some areas that I will be fixing for the next version. In the meantime, the following steps should make everything work.

1. When making changes to the Digital I/O or Analog I/O screens, when done, disconnect and reconnect the controllers.

2. In the Analog I/O screen, if you don't want a Calc Message, then enter a single space character for this field. There is a chance that it may be NULL and this will prevent any text from displaying. The space will eliminate this problem. If you actually want a certain text to be displayed, then just type it.

3. For the "Elk Inp" types, if you want the default text, make sure that the "Raw to Calculated Formula" field is blank. It CANT have any spaces or any other characters.

If the above 3 steps are followed, it "should" make the default text for Elk Inputs be displayed properly. If it doesnt, then I would try restarting PowerHome. If this doesnt do it and it requires more "steps" or "tweaking", then let me know because it means Im still overlooking something in the code.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 07 2007 at 21:30 | IP Logged Quote dhoward

Mike,

After researching your question, Ive apparently overlooked handling the zone arming message. I will get to work on this pronto and put a corrected version out shortly that will handle this message and create a trigger.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
narc
Groupie
Groupie
Avatar

Joined: November 21 2006
Location: United States
Online Status: Offline
Posts: 49
Posted: March 09 2007 at 01:11 | IP Logged Quote narc

smarty wrote:
As I retrace my steps, I put in the "[DATA]" variable, AND I also put some text in the "Message" column (this column appears to be where you would enter units of measure like volts)


You nailed it! I put random text in both boxs, restarted, then cleared the random text, restarted and suddenly I get my EOL, Open and Shorted messages with the colors. Thanks!

- jason
Back to Top View narc's Profile Search for other posts by narc
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: March 09 2007 at 08:48 | IP Logged Quote smarty

Jason,

Glad that you got it to work!!
Also glad that you "confirmed" some sort of small bug..

Now, lets give Dave some time to "squash the bug".


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
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: May 11 2007 at 19:52 | IP Logged Quote MrGibbage

dhoward wrote:
<<SNIP>>
It appears though that you had to do extra with adding the "[DATA]" statement and then removing it. This should not be necessary so I need to try and track down why that happened.
<<SNIP>>


I just set up my PH to talk to my Elk today and had to go through the same steps mentioned here with regards to adding "[DATA]" and then removing it.

I still need to see why the lighting doesn't work at all from the device status page. The lights are all there, but the status is wrong about half the time, and I can't control the lights there either. Any ideas?
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: May 11 2007 at 20:19 | IP Logged Quote MrGibbage

Also, why would my motion sensor come up as "violated" in a blue box for "normal" (no motion but standing by to detect motion)?
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: May 12 2007 at 07:55 | IP Logged Quote mustangcoupe

Dave, when will the ethernet controller be ready? I cant try it until then.... :)

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: May 14 2007 at 10:15 | IP Logged Quote MrGibbage

Whoo hoo!! I made PH speak when I opened my front door! This is a breakthrough for me. Oh, the possiblities are endless now. How much is too much TTS??? hmmmm.......

I still can't figure out why my control center has the wrong light status and I can't control them either. Strange.

Also, how do I get the control center to show Elk arming and alarm status?

Skip
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 

Page of 2 Next >>
  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