![]() ![]() |
Aug 8 2005, 02:44 PM
Post
#1
|
|
|
CocoonTech Admin ![]() ![]() ![]() ![]() Group: Admin Posts: 8424 Joined: 12.22.03 From: New York Member No.: 1 |
filename : my.elk.txt
version : 2.3 description : Monitor & control the Elk M1 Gold & M1 EZ8 alarm panel author : Dan (electron) email : dan at marstracker dot org changelog:
|
|
|
|
Aug 8 2005, 04:08 PM
Post
#2
|
|
|
Cocoonut ![]() ![]() ![]() ![]() Group: Manufacturers Posts: 2317 Joined: 05.04.05 From: Lenoir, NC USA Member No.: 672 |
Impressive work! What operating software do I load to make it run?
|
|
|
|
Aug 8 2005, 05:37 PM
Post
#3
|
|
|
CocoonTech Admin ![]() ![]() ![]() ![]() Group: Admin Posts: 8424 Joined: 12.22.03 From: New York Member No.: 1 |
It is meant to run with Homeseer for now, but it is pretty easy to port the code to something which would work with HAL, Girder, and any other scriptable packages. VBS files can be run from the command line as well, the only reason this script requires Homeseer is for the serial port interaction.
|
|
|
|
Aug 11 2005, 12:14 PM
Post
#4
|
|
|
CocoonTech Admin ![]() ![]() ![]() ![]() Group: Admin Posts: 8424 Joined: 12.22.03 From: New York Member No.: 1 |
I posted the latest version, 1.5. It now supports monitoring as well. While the script isn't finished yet, I would definitely appreciate some input (no pun intended), so I can eliminate any potential bugs I might have missed.
|
|
|
|
Aug 19 2005, 11:35 PM
Post
#5
|
|
|
Cocoonut ![]() Group: -= Gold Supporter =- Posts: 2441 Joined: 01.05.04 From: Orlando, FL Member No.: 21 |
OK, what am I doing wrong. Per the instructions, I tried putting my.elk.txt("OpenSerialPort","") in both the startup script and in an event. Both give me errors. It started with Cannot use parenthesis when calling a sub. If I remove the parens in the event, then I get error 0 in line 0.
|
|
|
|
Aug 21 2005, 07:25 PM
Post
#6
|
|
|
Advanced Cocooner ![]() ![]() ![]() Group: Registered Posts: 291 Joined: 08.03.04 Member No.: 224 |
I'm obviously not the guru on this script, but I did get it working by setting up an event like this....
link to first screenshot And it seems to be working. Well, at least I can see zones changing status in HomeSeer. I do have a stupid question though.....I can't seem to get events to fire based on zone status changes. I add the device - say "Security Motion Den" which is hooked to a motion in the den. I can see it change status from "Normal: Short" to "Violated: Open" however I can't seem to figure out what to trigger on to get reliable operation. As I was typing this, my wife walked into the Den and the event triggered, however that is the only time it has worked..... link to second screenshot Any ideas? |
|
|
|
Aug 21 2005, 07:48 PM
Post
#7
|
|
|
Cocoonut ![]() Group: -= Gold Supporter =- Posts: 2441 Joined: 01.05.04 From: Orlando, FL Member No.: 21 |
Sorry, I forgot to follow up on this, based upon a chat E and I had... the problem is that the script file was in Unix mode (LF only) and needed to be saved in DOS mode (CR/LF). I used conTEXT as a script editor and it allowed me to change the format.
I do notice that all the HS log entires seem to be "off", there are no "on"s. To get events to trigger, I had to use a type of "device status change" and a status of "set off" or "set any status". |
|
|
|
Aug 21 2005, 08:02 PM
Post
#8
|
|
|
Advanced Cocooner ![]() ![]() ![]() Group: Registered Posts: 291 Joined: 08.03.04 Member No.: 224 |
Yeah Wayne, I do see the same thing. When I am monitor "Set to off" my event fires with either opening or closing of a sensor.....
|
|
|
|
Aug 21 2005, 11:15 PM
Post
#9
|
|
|
Advanced Cocooner ![]() ![]() ![]() Group: Registered Posts: 291 Joined: 08.03.04 Member No.: 224 |
First off, good job. I'm liking the script better than the plugin already!
I thought I'd provide a 208 position array for folks to make life a bit easier. I use 200+ position outputs for stuff so needed this. array("","","","","","","","","","","","","""","","","","","","","","","","","","","","","","","","","","", "","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" ,"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","") 208 "", there... Which makes me wonder. I use a couple of Elk outputs to let HS know the armed status of the Elk. Do you have a better way? Thanks, contrary to your comments in the past, this script rocks. This post has been edited by electron: Aug 22 2005, 10:00 PM |
|
|
|
Aug 22 2005, 11:03 AM
Post
#10
|
|
|
CocoonTech Admin ![]() ![]() ![]() ![]() Group: Admin Posts: 8424 Joined: 12.22.03 From: New York Member No.: 1 |
I still have to add support for monitoring the 'armed status', and support for arming the panel (so you wouldn't have to use outputs). It's something I didn't do on purpose (security reasons) since I wanted to test the script first.
|
|
|
|
Aug 22 2005, 08:59 PM
Post
#11
|
|
|
CocoonTech Admin ![]() ![]() ![]() ![]() Group: Admin Posts: 8424 Joined: 12.22.03 From: New York Member No.: 1 |
fixed a few issues, you no longer should be experiencing the ON/OFF bug.
|
|
|
|
Aug 22 2005, 11:42 PM
Post
#12
|
|
|
Advanced Cocooner ![]() ![]() ![]() Group: Registered Posts: 291 Joined: 08.03.04 Member No.: 224 |
Works like a champ. Thanks!
|
|
|
|
Aug 24 2005, 09:34 AM
Post
#13
|
|
|
CocoonTech Admin ![]() ![]() ![]() ![]() Group: Admin Posts: 8424 Joined: 12.22.03 From: New York Member No.: 1 |
posted 1.7
the bAutoOpen variable (when set to TRUE) will force the script to automatically try to open the COM port when sending a command. This is useful if you don't want to automatically open the COM port at startup, and you aren't interested in processing incoming data (if you are, you would have to open the port during startup anyways). I added this to make debugging a little easier. keypad temperature readings are now supported as well, you can tell the script to check the temperature by using the keypad_temp command, but the M1 should automatically send out temperature changes anyways (if configured correctly). It puts the value in the homeseer device string, but it also sets it as a device value, so you can trigger events, without any scripting, based on this temperature value (i.e: if x19 is greater than 70, ...). |
|
|
|
Aug 25 2005, 07:37 PM
Post
#14
|
|
|
Advanced Cocooner ![]() ![]() ![]() Group: Registered Posts: 291 Joined: 08.03.04 Member No.: 224 |
Hi Electron, thanks for the cool script.
I have a question. Want to confirm this as a HS 2 bug and not my stupidity before I submit it to HS. I want to add the my.elk script to startup and shutdown. Added the following to startup.txt hs.run (my.elk.txt("OpenSerialPort","")) and got Running script, script run or compile error in file: startup.txt424:Object required: 'my' in line 21 More info: Object required: 'my' Also tried hs.run "my.elk.txt("OpenSerialPort","")" and got Running script, script run or compile error in file: startup.txt1025:Expected end of statement in line 21 More info: Expected end of statement So am I doing it wrong, or is it a bug with having 2 "."'s in a filename that is screwing things up? Thanks! This post has been edited by Chakara: Aug 25 2005, 07:37 PM |
|
|
|
Aug 25 2005, 08:11 PM
Post
#15
|
|
|
CocoonTech Admin ![]() ![]() ![]() ![]() Group: Admin Posts: 8424 Joined: 12.22.03 From: New York Member No.: 1 |
you need to use hs.RunEx, i.e.
hs.RunEx "my.elk.txt","OpenSerialPort","" |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 3rd September 2010 - 03:15 AM |
|
|