Elk M1 Plugin

Posted on
Fri Aug 23, 2013 7:58 am
Bollar offline
Posts: 520
Joined: Aug 11, 2013

Re: Elk M1 Plugin

If you don't get an answer in this thread, I'd try in a thread related to the plug-in you're using, or a new thread. This one may be seen only by Elk M1 users.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Sat Sep 14, 2013 7:21 am
pgershon offline
Posts: 345
Joined: Jul 10, 2004

Re: Elk M1 Plugin

Finally loaded this plugin for my month old ELK system. Trying to get my arms around the functionality. All of the zones seemed to loan ok (17-48, all wireless) but that seems to be it. How does Indigo know if a device has been triggered. I tried opening my front door or triggering a motion sensor and nothing shows in the log. Am I missing a step?

Actually I cam get Indigo to trigger an action when a zone is triggered, so although no automatic logging of events, this is sufficient.

What I cannot do however is arm/ disarm the alarm. Action code fails. Log shows (on debug):


ELK M1G Control Debug Arming state is arm stay (a2)
ELK M1G Control Debug Setting code to saved value
ELK M1G Control Debug Preparing to send 0Da2100847500 to alarm.
ELK M1G Control Debug 17IC00000000000000101007A
ELK M1G Control Debug 1EAS00000000211111110000000000F8

ACTUALLY SOLVED IT - Needed to turn "Access" off in the user controls.

Posted on
Sun Sep 15, 2013 6:32 pm
Bollar offline
Posts: 520
Joined: Aug 11, 2013

Re: Elk M1 Plugin

pgershon wrote:
ACTUALLY SOLVED IT - Needed to turn "Access" off in the user controls.

Excellent -- nice to see another Elk user.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Mon Sep 16, 2013 11:59 am
pgershon offline
Posts: 345
Joined: Jul 10, 2004

Re: Elk M1 Plugin

Semi-related question - are you able to open the Virtual Keypad? I can use it only if I turn user id and password to blank at the XEP for Elk. Been told it is a Mac issue. Would be nice to have a web interface from remote PC/Mac to the Elk. Can use Indigo now, but also nice to have Elk's built in functionality working, if possible. Thanks

Posted on
Tue Oct 08, 2013 6:36 pm
jallen60 offline
Posts: 4
Joined: May 18, 2013

Re: Elk M1 Plugin

Hey JC don't stop developing the ELK plugin. I really need to have a working recent program.

Posted on
Sat Nov 02, 2013 11:03 am
Trovan offline
Posts: 18
Joined: May 26, 2008

Re: Elk M1 Plugin

Although I am not the original author, I've made a change to this plugin. In my setup, I have my lighting devices connected directly to the M1. I've changed the plugin so that if there are devices with the type Universal Module Receiver, it will monitor the devices status within Indigo and communicate changes to the M1.

So....

If I change a lighting device in Indigo, it sends a command through the M1 to turn on the light.

If I change a lighting device by hand, the M1 communicates this back to Indigo.

Config:
Click the checkbox in the config panel that says "Enable device monitoring"

Add a X10 device with the same device/house code as the M1 device.

Set the model of the X10 device to Universal Module Receiver.


I may be tweaking this further in the future. For now, I've added the file to SourceForge...

https://sourceforge.net/projects/indigo ... gin/files/

Thanks,


Mark

Posted on
Sat Jan 11, 2014 10:55 am
scotsman offline
Posts: 66
Joined: Aug 14, 2010
Location: Austin, Texas

Re: Elk M1 Plugin

Bollar wrote:
So, I have been having the same problem. I'm evaluating Indigo and have about zero Python experience, but I found that if I modified the plugin.py code at line 127 like this:
Code: Select all
         if 'XK' in msg:
            # logging heartbeat to elkTick variable as received (expected 30 seconds)
            indigo.variable.updateValue("elkTick", msg.rstrip())
            # logging "tick" messages from M1XEP once per hour
            if (time.localtime().tm_min % 60) == 0 and time.localtime().tm_sec < 30:
               indigo.server.log("Tick: %s" % msg.rstrip())
... then I would have a variable with the last 30 second heartbeat. From there, I added a trigger to look for a change in the elkTick variable and put in a delayed action to execute this Python script I found on this forum:
Code: Select all
plugin = indigo.server.getPlugin("com.elkplug.indigoplugin.elkm1g")
if plugin.isEnabled():
   plugin.restart()


So, if I don't get a heartbeat from the Elk within a minute, I'll try to reload the plugin.

Otherwise, I truly know little-to-nothing about Indigo or Python, so that's the best I can do for now.


Hey Bollar, I have been using your heartbeat tip for a while (thanks!). It works better but not perfectly, with Indigo still losing comms with the Elk now and again. As an idiot's solution, is there a way to restart the plugin every day at midnight or something like that? Or perhaps you have had a chance to investigate further?

Posted on
Sat Jan 11, 2014 1:38 pm
Bollar offline
Posts: 520
Joined: Aug 11, 2013

Re: Elk M1 Plugin

Hi Scottsman!

You should be able to make a schedule that uses that last snippet of code and have it run at the frequency you want. I have the same problem you do, but I also haven't figured out a better way to handle it. If only we could convince one of the gurus here to get an Elk... :D

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Thu Jan 01, 2015 6:43 pm
flg8r96 offline
Posts: 3
Joined: Dec 09, 2012

Re: Elk M1 Plugin

scotsman wrote:
OK it seems to be working now. Still some python errors, but I am seeing the state of the zones and alarms. Great plugin.


I'm having a similar issue (see below) how did you fix it?

Jan 1, 2015 4:37:18 PM
Enabling plugin "ELK M1G Control 1.1.1"
Starting plugin "ELK M1G Control 1.1.1" (pid 16923)
Started plugin "ELK M1G Control 1.1.1"
ELK M1G Control Debug Debug logging enabled.
ELK M1G Control Debug Getting 'ELK M1' folder id.
ELK M1G Control Debug Getting 'Alarm Panel' device id.
ELK M1G Control Debug Folder id: 1863461918, Alarm Panel id: 1601385590
ELK M1G Control Debug Creating instance of class Elk.
ELK M1G Control Debug Elk class instance <elk.Elk instance at 0x17bb5f8> created.
ELK M1G Control Debug Initiating connection to alarm panel.
ELK M1G Control Debug Connected to panel, sending arming state request.
ELK M1G Control Debug Processing arming state request.
ELK M1G Control Debug Checking for zone devices.
ELK M1G Control Debug Startup validation disabled, not checking zones.
ELK M1G Control Debug Checking for thermostat devices.
ELK M1G Control Debug Startup validation disabled, not checking thermostats.
Received INSTEON "21de9c back porch motion" off (button 1)
ELK M1G Control Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 50, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Elk Plugin.indigoPlugin/Contents/Server Plugin/elk.py", line 23, in readData
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/telnetlib.py", line 318, in read_until
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/telnetlib.py", line 528, in fill_rawq
<class 'socket.error'>: (54, 'Connection reset by peer')

ELK M1G Control Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
ELK M1G Control Error EOFError: telnet connection closed
ELK M1G Control Error EOFError: telnet connection closed
ELK M1G Control Error EOFError: telnet connection closed

Posted on
Thu Jan 01, 2015 10:34 pm
flg8r96 offline
Posts: 3
Joined: Dec 09, 2012

Re: Elk M1 Plugin

Enabling the "Non-Secure Port" solved my issue. I ended up using the default (2101) and configuring that port in the plugin configuration.

Posted on
Mon Feb 16, 2015 4:25 am
wickey offline
Posts: 22
Joined: Feb 15, 2015

Re: Elk M1 Plugin

Hi guys,

I am using the ELK M1 plugin with indigo without any issue.
i want to enhance the plugin with "Display Text on LCD Screen" feature.
Can you help me on this?

Posted on
Thu Feb 19, 2015 2:46 pm
neilgreene offline
Posts: 32
Joined: Nov 29, 2012

Re: Elk M1 Plugin

My ELK plugin used to work perfectly within Indigo. Arm my security panel and Indigo triggers would fire just right.
Now, I am running Indigo 6.0.20. But, for months my Elk plugin has not worked getting status of the security panel.
ELK is on the same ip address, and I can connect to it without issue from PC Client as well as Phone Mobile app.
I can control the elk using either just fine.

But now, the status of the ELK shows "unknown" in Indigo and never updates. Debug connecting to panel shows the following:

Feb 19, 2015, 12:39:33 PM
Reloading plugin "ELK M1G Control 1.1.1"
Stopping plugin "ELK M1G Control 1.1.1" (pid 8540)
ELK M1G Control Debug Getting ready to exit plugin.
ELK M1G Control Debug Closing connection to alarm panel.
Stopped plugin "ELK M1G Control 1.1.1"
Starting plugin "ELK M1G Control 1.1.1" (pid 8545)
Started plugin "ELK M1G Control 1.1.1"
ELK M1G Control Debug Debug logging enabled.
ELK M1G Control Debug Getting 'ELK M1' folder id.
ELK M1G Control Debug Getting 'Alarm Panel' device id.
ELK M1G Control Debug Folder id: 1155921517, Alarm Panel id: 499369247
ELK M1G Control Debug Creating instance of class Elk.
ELK M1G Control Debug Elk class instance <elk.Elk instance at 0x6f08a58> created.
ELK M1G Control Debug Initiating connection to alarm panel.
ELK M1G Control Debug Connected to panel, sending arming state request.
ELK M1G Control Debug Processing arming state request.
ELK M1G Control Debug 1EAS010000001411111100000000000A
ELK M1G Control Debug Checking for zone devices.
ELK M1G Control Debug Startup validation enabled, checking zones.
ELK M1G Control Debug Sending zone data request
ELK M1G Control Debug Processing zone data request.
ELK M1G Control Debug D6ZD1137306:00000000057:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000053
ELK M1G Control Debug [(1, 'Burglar Entry/Exit 1'), (2, 'Burglar Entry/Exit 1'), (3, 'Burglar Perimeter Instant'), (4, 'Burglar Interior Night Delay'), (5, 'Burglar Perimeter Instant'), (7, 'Burglar Interior Night'), (8, 'Fire Alarm'), (18, 'Burglar Interior Follower'), (19, 'Burglar Interior Night Delay'), (20, 'Fire Alarm')]
ELK M1G Control Updating existing device Front Door , Burglar Entry/Exit 1
ELK M1G Control Updating existing device Kitchen Door , Burglar Entry/Exit 1
ELK M1G Control Updating existing device Family Room Door, Burglar Perimeter Instant
ELK M1G Control Updating existing device Entry Motion , Burglar Interior Night Delay
ELK M1G Control Updating existing device Patio Door , Burglar Perimeter Instant
ELK M1G Control Updating existing device Office Motion , Burglar Interior Night
ELK M1G Control Updating existing device Downstairs Fire , Fire Alarm
ELK M1G Control Updating existing device Garage Motion , Burglar Interior Follower
ELK M1G Control Updating existing device Kitchen Motion , Burglar Interior Night Delay
ELK M1G Control Updating existing device Upstairs Fire , Fire Alarm
ELK M1G Control Debug Sending zone status request
ELK M1G Control Debug Processing zone status request.
ELK M1G Control Debug D6ZS22222022000000000222000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065
ELK M1G Control Debug [(1, 'Normal'), (2, 'Normal'), (3, 'Normal'), (4, 'Normal'), (5, 'Normal'), (7, 'Normal'), (8, 'Normal'), (18, 'Normal'), (19, 'Normal'), (20, 'Normal')]
ELK M1G Control Debug Updating zone descriptions.
ELK M1G Control Debug Processing string data request for Downstairs Fire .
ELK M1G Control Debug Getting ready to send 0Bsd0000800
ELK M1G Control Debug 1BSD00008Downstairs Fire 00AA
ELK M1G Control Debug Processing string data request for Entry Motion .
ELK M1G Control Debug Getting ready to send 0Bsd0000400
ELK M1G Control Debug 1BSD00004Entry Motion 007A
ELK M1G Control Debug Processing string data request for Family Room Door.
ELK M1G Control Debug Getting ready to send 0Bsd0000300
ELK M1G Control Debug 1BSD00003Family Room Door00D0
ELK M1G Control Debug Processing string data request for Front Door .
ELK M1G Control Debug Getting ready to send 0Bsd0000100
ELK M1G Control Debug 1BSD00001Front Door 0028
ELK M1G Control Debug Processing string data request for Garage Motion .
ELK M1G Control Debug Getting ready to send 0Bsd0001800
ELK M1G Control Debug 1BSD00018Garage Motion 0060
ELK M1G Control Debug Processing string data request for Kitchen Door .
ELK M1G Control Debug Getting ready to send 0Bsd0000200
ELK M1G Control Debug 1BSD00002Kitchen Door 00AA
ELK M1G Control Debug Processing string data request for Kitchen Motion .
ELK M1G Control Debug Getting ready to send 0Bsd0001900
ELK M1G Control Debug 1BSD00019Kitchen Motion 0000
ELK M1G Control Debug Processing string data request for Office Motion .
ELK M1G Control Debug Getting ready to send 0Bsd0000700
ELK M1G Control Debug 1BSD00007Office Motion 005D
ELK M1G Control Debug Processing string data request for Patio Door .
ELK M1G Control Debug Getting ready to send 0Bsd0000500
ELK M1G Control Debug 1BSD00005Patio Door 0030
ELK M1G Control Debug Processing string data request for Upstairs Fire .
ELK M1G Control Debug Getting ready to send 0Bsd0002000
ELK M1G Control Debug Checking for thermostat devices.
ELK M1G Control Debug Startup validation disabled, not checking thermostats.
ELK M1G Control Debug 1BSD00020Upstairs Fire 0043

Posted on
Thu Feb 19, 2015 6:06 pm
Swancoat offline
Posts: 493
Joined: Nov 20, 2009
Location: Houston

Re: Elk M1 Plugin

I'm not sure if any of the Elk M1G plugins are currently being actively maintained. Unfortunate, because I think a lot of people have these panels and would like to use a bit more of the functionality. Beggars can't be choosers I guess.

Neilgreene, did you recently update the software on your M1EXP? I understand that's caused problems for some people.

http://nerdhome.jimdo.com

Posted on
Thu Feb 19, 2015 9:18 pm
neilgreene offline
Posts: 32
Joined: Nov 29, 2012

Re: Elk M1 Plugin

Not to my M1, no. Its running the same release. I have used the Elk plugin for years prior. Worked great.
I even tried creating a brand new Indigo database, with only the M1 in it and 1 insteon device. Just in case something was wrong with the objects in my home database.
But, that has the same problem.

And +10 on the bummer that there are a lot of us with ELK security panels and no one updating the software integration. Making me have to consider an alternate home security panel now.
What are the alternatives?

Posted on
Fri Feb 20, 2015 8:08 am
Swancoat offline
Posts: 493
Joined: Nov 20, 2009
Location: Houston

Re: Elk M1 Plugin

The alternative is that we band together and get a hired gun to write a plugin. No idea what it would cost to call in a pro, but I'm thinking less than replacing the panel if you get enough people.

http://nerdhome.jimdo.com

Who is online

Users browsing this forum: No registered users and 2 guests