The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => Elk M1 Alarm Panel Plugin => Topic started by: mcvflorin on June 23, 2011, 01:49:44 pm

Title: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 23, 2011, 01:49:44 pm
The plugin finally reached beta stage.

You can find installation and usage instructions (plus additional info) here:
http://code.mios.com/trac/mios_elk-alarm-panel/wiki/WikiStart

Post here any bugs you find or any feature requests, or send them to my e-mail address:
florin@my.mios.com

Also, if you have any questions, post them here.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on June 27, 2011, 10:05:33 am
Does it work via a ELK-M1XEP. It is the Elk serial to ethernet converter.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 27, 2011, 12:40:45 pm
I don't know, I haven't tried it with M1XEP because we didn't have one, but it would be interesting to know.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on June 28, 2011, 08:08:47 am
It works via M1XEP.

I used guessed's plugin http://code.mios.com/trac/mios_ipserial/wiki/Installation-UI4 (http://code.mios.com/trac/mios_ipserial/wiki/Installation-UI4) to connect via port 2101 (Non-encrypted) and it picked up the M1 no problem.

As I am still in the middle of building the system (at a snails pace) I have not fully tested but can arm and disarm.

Cheers and thanks for the plugin

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 28, 2011, 08:23:22 am
Keep in mind that the plugin is still beta. If you find any bugs or if you require any features, let me know.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: guessed on June 28, 2011, 11:58:41 am
@mcvflorin, you may want to add the bits directly to your plugin so that they don't have to go through the intermediary IPSerial Plugin.

ie. Let them associate directly with IP:Port, or do a Serial-device Attach.

The DSC & the Onkyo Receiver plugins both do this, to simplify the setup for users... and to reduce the need for extra plugins floating around.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 28, 2011, 01:54:39 pm
@guessed
Thanks for the suggestion, I modified the plugin as you said.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on July 02, 2011, 08:16:22 am
Just noticed if check sum is 0 then the calculated checksum becomes 256: -


Code: [Select]
local calculatedChecksum = calculateChecksum (length .. msgType .. data .. misc)
--if calculatedChecksum == 256 then calculatedChecksum = 0 end
if (calculatedChecksum ~= tonumber (checksum, 16)) then
log ("(checkMessage) ERROR: The calculated checksum is incorrect.")
log ("(checkMessage) ERROR: The calculated checksum is " .. calculatedChecksum)
log ("(checkMessage) ERROR: The actual checksum is " .. checksum)
return nil
end

Code: [Select]
50 07/02/11 20:13:50.018 luup_log:215: (checkMessage) ERROR: The calculated checksum is incorrect. <0x402>
50 07/02/11 20:13:50.019 luup_log:215: (checkMessage) ERROR: The calculated checksum is 256 <0x402>
50 07/02/11 20:13:50.020 luup_log:215: (checkMessage) ERROR: The actual checksum is 00 <0x402>

Thanks

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on July 04, 2011, 12:02:43 pm
Good catch zoot1612, I updated the plugin to handle the case when the ASCII sum is a multiple of 256.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: cipherwarrior on July 05, 2011, 11:41:30 am
Is it possible with this plugin to use the Vera2 and the lighting control interface for the ELK.   Here is what would be ideal:

1) Ability to disable the ARM/DISARM functions from the plugin.   Personally I don't feel comfortable with ZWAVE having this ability.

2) Use the Vera2 as the lighting control interface for lighting rules which I setup on the M1G.    Right now I am using a Leviton serial interface which isn't that reliable.    Is this possible with this plugin?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on July 05, 2011, 12:33:21 pm
1) I understand your concerns, however, arming or disarming the panel requires the PIN code (the requirement is at the panel level, not at the plugin level, which means that it's not possible to arm/disarm without the code even if the plugin is somehow hacked). If a PIN code is not entered in the PIN code box, or stored in memory, you can consider this functionality as disabled.

2) There are no commands for controlling lights, only for getting their status, and it's not implemented in the plugin. Unless more people require this, I won't implement this feature in the near future.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on July 18, 2011, 04:04:35 am
I have only just skimmed through the wiki at this point, but I will install the plugin tomorrow after I get some shut-eye.
Being quite familiar with the Elk M1G and a couple of other applications that can work with it, I would like to make a couple of requests right away, if I may be so bold. ;)
The following features would be excellent additions:
1) A tab with the statuses of the zones (this would include the temperature probes that may be placed in the first 16(?) zone slots),
2) A tab with the statuses and control buttons for the outputs (relays),
3) A tab that lists and gives us the option to trigger tasks.

Light control would be nice, but I'm sure we can do that by other means. I guess the main purpose would be to flash the lights in the event of an alarm, or activate a certain scene when the system is disarmed. Can we use these Elk events in our programs on the Vera 2 with this plugin?

Thanks for your consideration and your great work!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on July 18, 2011, 09:10:59 am
@Quixote
All those features are supported in the API. I added them as feature requests and I'll come back to them when I finish my current assignments.

@cipherwarrior
I believe it's possible to control lights through tasks, so I'll add a tab to display the lights' status.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on July 20, 2011, 03:43:12 pm
Thanks! Looking forward to it!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on August 08, 2011, 04:26:10 am
Hi Mcvflorin,
Just wondering what the status is on your current workload. Are you close to readdressing the Elk plugin?
Thanks!

-D
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on August 08, 2011, 04:53:22 am
Hi Quixote,
Nope, not close yet. I might get to work on it in 2-3 weeks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 02, 2011, 10:35:35 pm
Hi Mcvflorin

Feature
Is it possible to change the following in the startup for the ELK: -

Code: [Select]
local ipAddress, ipPort = string.match (luup.devices[lul_device].ip, "^(.*):(%d+)")
debug (string.format ("(Elk Plugin Startup) ipAddress=%s, ipPort=%s", tostring (ipAddress), tostring (ipPort)))
if (ipAddress and ipAddress ~= "") then
if (not ipPort) then
ipPort = 5000
end

with

Code: [Select]
local ipAddress, ipPort = string.match (luup.devices[lul_device].ip, "(%d+.%d+.%d+.%d+):?(%d*)")
if (ipAddress and ipAddress ~= "") then
if (ipPort==nil) or (ipPort == "") then
ipPort = 2101
end
debug (string.format ("(Elk Plugin Startup) ipAddress=%s, ipPort=%s", tostring (ipAddress), tostring (ipPort)))

If the ip address is entered without the port the first instance does not work, for me anyway.

Thanks

John

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: guessed on September 02, 2011, 10:41:18 pm
John,
The second format isn't correct, it needs to be of the more generic form.  The one you've listed only works for IPv4 addresses (no IPv6) and won't work for anything that's resolved using DNS Names instead of raw addresses.

In it's original form both the IP and Port are mandatory.  Something akin to the following can be used to get around that:

Code: [Select]
       local ipAddress, trash, ipPort = string.match(luup.devices[lul_device].ip, "^([%w%.%-]+)(:?(%d-))$")

UPDATE: corrected to be closer to what's needed...
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: futzle on September 02, 2011, 11:16:54 pm
no IPv6

Fortunately*, Vera's version of OpenWrt doesn't even have IPv6 compiled in, so supporting IPv6 in a plugin is kind of moot.

* Warning: may contain sarcasm.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 02, 2011, 11:21:04 pm
doh, didn't even think of IPV6 or that someone else may use DNS. Living in my little world apologies to all who look further ;)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: guessed on September 02, 2011, 11:35:13 pm
I'm an optimist...   Funnily enough I didn't even check IPv6 on Vera, it's just that it was on my mind as we have to code to it @work, so I'm on autopilot...

no IPv6

Fortunately*, Vera's version of OpenWrt doesn't even have IPv6 compiled in, so supporting IPv6 in a plugin is kind of moot.

* Warning: may contain sarcasm.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on September 08, 2011, 11:50:30 am
Hi,
Can we get an update on your work-load and another estimation of when you might get to look at this again?

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 08, 2011, 12:00:19 pm
My plan is to work on the new features next week. Hopefully I will be able to stick to it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on September 08, 2011, 12:18:36 pm
Awesome. I think I can speak for us all when I say that we appreciate your hard work!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on September 10, 2011, 07:38:43 pm
I just received my Vera2 a couple days ago and I have my Elk M1gold interfaced via M1XEP. I have 2 questions on the Elk plugin, I know its still in beta which maybe the issues I am running into.

1) When arming or disarming with UI4 or controlling via scenes it shows Invalid PIN code on UI4 but system arms and disarms like it should.

2) I am also running home buddy on my android and is there a way to have the partition show up so the alarm can be armed or disarmed like the UI4 interface. The zones show up and nothing else.

Thanks
John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 12, 2011, 04:45:23 am
1) I think I know why this happens. This is an easy fix, and will be present in the next version.
2) The partitions are created the same way as the zones, so I don't know why this happens. Can you get the user_data with http://<Vera_IP>:3480/data_request?id=user_data&output_format=xml and send it to me at florin@my.mios.com?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 13, 2011, 09:43:48 am
I think I found the cause for the second issue. Try removing the '*'  (or giving it a simple name like partition_1, just to test this theory) from the device name and let me know if this fixes anything.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on September 15, 2011, 09:54:37 pm
Just to update, I have not been able to test with a new partition name yet. When I changed the name and went to save the changes my Vera2 locked up and I cant get it reset. I have all lights on steady except ETH1 and ZWave. I have had no luck resetting it and I dont even get a network link out of either ethernet port. Talked to Tech support on the 13th and they requested me to put a request in online. Just waiting to hear back from.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on September 29, 2011, 03:21:02 pm
I am excited about this plugin.  A couple of questions:

- Will it have the ability to take events from the ELK and act on them?  (e.g. motion sensor trips, door sensors, etc)
- Will it have the ability to turn outputs on and off?
- Will it have the ability to execute tasks?
- Will it have the ability to pull the status of outputs and inputs?

I love my ELK, but the automation programming stuff is very limited.  If I could do it on Vera, this would make my life much easier.

One of my main gripes is that when the ELK sends an email/SMS, there is no way for it to put the name or ID of the violated zone in the email.  I can just have a generic message that the alarm is tripped.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 30, 2011, 06:54:03 am
Currently it can do only basic stuff like arming/disarming a partition and bypassing/unbypassing a zone. Some of the things you asked about have been requested by users and are on my TODO list. Unfortunately I didn't have much time to work on the new features, but they will be added eventually.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on October 17, 2011, 07:21:51 pm
I think I found the cause for the second issue. Try removing the '*'  (or giving it a simple name like partition_1, just to test this theory) from the device name and let me know if this fixes anything.

I received my replacement Vera 2 and set it back. I changed the partition name to my last name with no special characters. I am still getting the same results. The zones show in home buddy but the partition does not. As of right now the only way I can control the partition in home buddy is setting up different scenes to control the partition.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on October 18, 2011, 06:58:29 am
Try this Json file and let me know if it works.

1. Upload the file on Vera.
2. Check Restart Luup after upload.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on October 18, 2011, 08:56:16 pm
Still no luck with the new file. If it helps I tried the AutHomation App by garrettwp and it shows the partition with a question mark icon and there is no function to the partition.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: shaudeus on October 19, 2011, 12:03:13 pm
Hello I am considering Vera 2 for home automation needs replacing the automation features of my ELK M1 GOLD. Just a couple of questions about the security functions.

Can Vera 2 notify my via Text AND Email of specific events, IE zone 1 trigger, CO alarm Trigger etc?

Can Vera 2 remotly disarm alarm with a scene, IE child returning home so unlock door, disable alarm, reduce thermostat turn on lights and outlets in certain rooms?

Can Vera 2 send a photo from IP enabled camera upon an event, IE someone ringing doorbell, kinda like the ADT pulse system sends you a photo upon an event like your child disarming the alarm.

Can Vera 2 use the motion sensors from my elk to control lighting, such as turning lights on and off as people pass through?

Also how does the system connect to the ELK board since the board does not have Zwave, does it need to be in close promimity to connect via usb or can it be connected via cat5

I have 3 properties (which have ELK Security) I would love to offer this functionality too if its already enabled or will be enabled soon, please let me know when you have a chance.

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on October 20, 2011, 05:02:02 am
Can Vera 2 notify my via Text AND Email of specific events, IE zone 1 trigger, CO alarm Trigger etc?
Yes.

Can Vera 2 remotly disarm alarm with a scene, IE child returning home so unlock door, disable alarm, reduce thermostat turn on lights and outlets in certain rooms?
Yes.

Can Vera 2 send a photo from IP enabled camera upon an event, IE someone ringing doorbell, kinda like the ADT pulse system sends you a photo upon an event like your child disarming the alarm.
Possible with some scripting (this until the picture archiving functionality will be implemented).

Can Vera 2 use the motion sensors from my elk to control lighting, such as turning lights on and off as people pass through?
Yes.

Also how does the system connect to the ELK board since the board does not have Zwave, does it need to be in close proximity to connect via usb or can it be connected via cat5
If it's in close proximity you can connect it via USB, otherwise you can use the Elk M1XEP to connect it via Ethernet.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on October 27, 2011, 03:08:23 pm
Do you have a new ETA for this plugin, or an estimation of when you will be able to return to it? I'm anxious to try it out with its enhanced functionality.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on October 28, 2011, 12:13:36 pm
Hopefully as soon as all the UI5 pre-release tasks are done.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on November 17, 2011, 06:44:06 pm
Is it possible to store a user code in vera so i dont have to leave a brower opened to control arm/bypass with home buddy

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on November 18, 2011, 05:11:41 am
Yes, it's possible. There is a Store button under the PIN code input box.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on November 19, 2011, 02:05:11 pm
Yes, it's possible. There is a Store button under the PIN code input box.

The store button is what I have been using but when I do a refresh of UI4 or make changes and do a save I lose the code. This has also happened by just closing the browser out and when i go back i'll receive Pin code required error until i put the code back in and hit store.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on November 21, 2011, 03:24:45 am
The PIN code is stored in RAM (for security reasons) so it's lost at Luup restart, but it doesn't have anything to do with the UI, which means that unless you restart Luup, you should be able to bypass/unbypass zones even if you closed and reopened the browser.

In the next plugin version I will offer the possibility to store the PIN code in the flash memory so it will survive Luup restarts.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on December 01, 2011, 01:53:18 am
@mcvflorin

I am going to add a few more zones to my Elk M1 and was wondering if vera will automatically add the additional zone or will I need to do something to add the new zones.

Thanks
John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on December 01, 2011, 05:13:22 am
@jwiz

It will automatically add the new zone when you restart Luup.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on December 08, 2011, 07:47:58 pm
@mcvflorin

Wanted to add "Alarm Type" to the description due to the fact that I have three zones with fire alarms and a quick look at the UI does not indicate which is which.

So I had a look at the code and can see ZD is implemented then tried to make some changes so that the ZD information was included in the UI. The upshot is that it did not work and was hoping you might be able to give me some pointers or mabye UI5 will give the option to select custom icons   :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on December 09, 2011, 05:30:03 am
I attached an updated Lua file which adds more descriptive zone labels. The drawback is that some zone names will be too long, so you may want to modify the ZONE_DEFINITIONS variable to give the names you want to the zones. I took them directly from the documentation.

Quote from: zoot1612
mabye UI5 will give the option to select custom icons

This feature has been requested several times, but it's not going to be added soon because it requires some major changes to the MiOS engine.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on December 09, 2011, 10:27:38 am
OK all working, Thanks :)

I did have to make a couple of changes as follows, the reason for the changes is that the processLabels function overwrites the g_childDevices.zones.label created in the ZD handler function. Plus the zone label was updated twice with "Zone" so I ended with a double up.

The changes don't really affect anything if you are not adding zone definitions so I leave it up to you whether you change it or not.

Code: [Select]
L_ElkAlarmPanel1.lua
@@ -481,7 +481,8 @@
  log ("(processLabels) Invalid name. Return.")
  else
  if (labelId == "00") then
- g_childDevices.zones[num].label = data:sub (6)
+ local ZoneType = g_childDevices.zones[num].label
+ g_childDevices.zones[num].label = data:sub (6) .." - ".. ZoneType
  elseif (labelId == "01") then
  g_childDevices.partitions[num].label = data:sub (6)
  else
@@ -655,7 +656,7 @@
    c = data:sub (i, i)
    if (c ~= "0") then
    g_childDevices.zones[i] = {} -- Create zone.
-   g_childDevices.zones[i].label = "Zone #"..i.." - "..ZONE_DEFINITIONS[c]
+   g_childDevices.zones[i].label = ZONE_DEFINITIONS[c]
    end
    end
    return true


Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: guessed on December 10, 2011, 03:53:14 am
Quote from: zoot1612
mabye UI5 will give the option to select custom icons

This feature has been requested several times, but it's not going to be added soon because it requires some major changes to the MiOS engine.

@mcvflorin,
You'll get part-way there with what you've done for my Bug report in UI5:
    http://bugs.micasaverde.com/view.php?id=1660

as long as you create the different Sensor Types (Door, Smoke, Motion) for the Zones, you'd get a different form of icon.  It's just that there are a few sensor named types that have been left out (Window, Fire/Heat come to mind).  The DSC lets you specify which are the "Smoke" zones, for example, for this very reason (icon differences, scripting differences)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on December 12, 2011, 03:23:48 am
@guessed,

You're right about this. I do give the user the option to specify which sensors are door sensors and which are smoke sensors.

Code: [Select]
local function getDeviceType (zoneNo)
-- Motion Sensors
-- No need to parse the MotionSensors state variable, because all the devices
-- that are not of one of the types below will be set as Motion Sensors by default.

-- Door Sensors
local doorSensors = luup.variable_get(SID.PANEL, "DoorSensors", lug_device) or ""
if (doorSensors == "") then
luup.variable_set(SID.PANEL, "DoorSensors", doorSensors, lug_device)
else
for zn in doorSensors:gmatch("%d+") do
if (tonumber(zn, 10) == zoneNo) then
return {type = "urn:schemas-micasaverde-com:device:DoorSensor:1", file = "D_DoorSensor1.xml"}
end
end
end

-- Smoke Sensors
local smokeSensors = luup.variable_get(SID.PANEL, "SmokeSensors", lug_device) or ""
if (smokeSensors == "") then
luup.variable_set(SID.PANEL, "SmokeSensors", smokeSensors, lug_device)
else
for zn in smokeSensors:gmatch("%d+") do
if (tonumber(zn, 10) == zoneNo) then
return {type = "urn:schemas-micasaverde-com:device:SmokeSensor:1", file = "D_SmokeSensor1.xml"}
end
end
end

return {type = "urn:schemas-micasaverde-com:device:MotionSensor:1", file = "D_MotionSensor1.xml"}
end
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on December 12, 2011, 09:35:52 am
@mcvflorin

So is it just a matter of manually adding a variable to each device?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on January 03, 2012, 12:18:46 pm
I'm considering adding a Vera to my Elk M1G for Z-Wave control, but have a few questions about integration with this plugin.
This is what I'm looking for initially:


Can this be accomplished at this point and, if so, what is the reliability factor?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on January 03, 2012, 01:25:30 pm
Except for the tasks (implemented in the latest development version, but not tested) everything is possible and should be pretty reliable.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on January 03, 2012, 01:36:25 pm
Except for the tasks (implemented in the latest development version, but not tested) everything is possible and should be pretty reliable.
Excellent.
So, task execution is possible but just needs to be ironed out - would this be within' a month or so?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on January 03, 2012, 02:02:28 pm
Well, I don't recommend using the development version, but the release version (1.01 on code.mios.com, or the one in apps.mios.com if using UI5).

Hopefully I will have an update for this plugin this month.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: joeberg on January 03, 2012, 05:17:02 pm
So do we just add the zones for each in the Advanced field for "DoorSensors" and "SmokeSensors" separated by commas in order for it to differentiate between sensor types?

I tried that and it reset all of those sensors for a few minutes (no image at all) and then they came back as they were before with a Motion icon.

I am sure I am missing something simple.

Joe

@guessed,

You're right about this. I do give the user the option to specify which sensors are door sensors and which are smoke sensors.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: schwa13 on February 19, 2012, 12:31:07 pm
Hi, I have had the Vera 2 for over a year now, but just got an Elk M1 installed.  I am using UI5, downloaded the app for the Elk, entered the IP address and the non secure port number as configured in the M1XEP, but can't get the Vera to talk to the panel.  I get a message that says "Elk Alarm Panel, failed to get zones".  When I go to the device and hit clear, there is nothing else to see. 

I tried the secure port as well as the non secure port number.  Not sure where I can look in terms of logs to see what is failing.  I know that the IP portion is working correctly as i can connect to and program via the the ElkRP software no problem.

Any other suggestions?

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on February 19, 2012, 04:28:49 pm
Hi, I have had the Vera 2 for over a year now, but just got an Elk M1 installed.  I am using UI5, downloaded the app for the Elk, entered the IP address and the non secure port number as configured in the M1XEP, but can't get the Vera to talk to the panel.  I get a message that says "Elk Alarm Panel, failed to get zones".  When I go to the device and hit clear, there is nothing else to see. 

I tried the secure port as well as the non secure port number.  Not sure where I can look in terms of logs to see what is failing.  I know that the IP portion is working correctly as i can connect to and program via the the ElkRP software no problem.

Any other suggestions?

Thanks

Can you access your M1XEP web page from your browser. I had that same issue a couple of times when my M1XEP locked up on me. I power cycled the M1XEP and reloaded UI. After that zones were received with no problem.

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: schwa13 on February 19, 2012, 05:11:19 pm
Yes, I can access the web page as well as the device via the ElkRP software.  I have restarted the M1XEP, added and removed the application within Vera as well a couple of times.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on February 19, 2012, 05:36:18 pm
Yes, I can access the web page as well as the device via the ElkRP software.  I have restarted the M1XEP, added and removed the application within Vera as well a couple of times.

Is your unsecure port enabled in the M1XEP settings. I believe it is disabled by default. You can also see if you telnet into the M1XEP on port 2101.

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: schwa13 on February 19, 2012, 11:04:33 pm
Thanks for the telnet check, I don't think the M1XEP saved the port settings the first time around on the insecure port.  I went back through resent the data and then it worked.  Now it loaded the zones...  Off to figure out how to use it.

Did anyone get it working via Home Buddy on Android yet, I read above that the partition does not show up and am having the same problem.  All I see are all of the zones so I can't arm/disarm remotely.

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on February 19, 2012, 11:59:58 pm
Thanks for the telnet check, I don't think the M1XEP saved the port settings the first time around on the insecure port.  I went back through resent the data and then it worked.  Now it loaded the zones...  Off to figure out how to use it.

Did anyone get it working via Home Buddy on Android yet, I read above that the partition does not show up and am having the same problem.  All I see are all of the zones so I can't arm/disarm remotely.

Thanks

AutHomation is the only Android app that works with the Elk plugin. It will allow you to arm/disarm the system with the app. Only way to do it in Home Buddy is to create arming and disarm scenes which was the way I was doing it until we got the elk supported in AutHomation which works very well.

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: garrettwp on February 20, 2012, 12:00:31 am
You might want to check out AutHomation. An app that I wrote for android. It supports alarm panels. I have not tested it with the Elk, but it should work. You can find it in the market or in the Remote Control Section of the forum:

http://forum.micasaverde.com/index.php/topic,8156.0.html

If you have Android 2.3 or older, you want AutHomation.

- Garrett

jwiz, you beat me to it. Glad it is working for you.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: schwa13 on February 20, 2012, 11:23:59 am
Thanks for the tip on AutHomation to control the Elk.  That did the trick for me.
Title: Re: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: garrettwp on February 20, 2012, 02:28:28 pm
Thanks for the tip on AutHomation to control the Elk.  That did the trick for me.

If you have any problems, let me know.

- Garrett
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rweisback on March 09, 2012, 05:57:34 am
Hi Mcvflorin,

I just wanted say what great app you have created, but I just want to know what is the 8 best files to use with UI4 1.1.1350 on Vera 2?
 
Cheers Rob
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on March 09, 2012, 06:25:38 am
Hi Rob,

The files from the 1.01 tag, which you can get directly from here: http://code.mios.com/trac/mios_elk-alarm-panel/wiki/UI4#Plugininstallationandsetup
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rweisback on March 09, 2012, 07:21:25 am
Thanks for the quick reply, I have used these files and successfully to setup up my M1 via its ip address, but I have 2 problems;
1)   The disarm trigger and notification does not trigger a scene or notifies me.
2)   There is an invalid pin warning, see screen shot (I notice this was covered earlier but I couldn’t see it was not resolved, more it was probably me not being able to find the answer!)

I have had these features working earlier in UI5 but I rolled it back to UI4 due to sluggish performance when scenes were triggered via the Ness M1 (Australian distributor of the ELK M1).

Thanks in advance.
Rob
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on March 09, 2012, 08:11:26 am
1) Did you put Disarmed for the Armed state or Armed detailed state events?
2) This means that either the PIN code is missing, has other characters than numbers, or the invalid PIN message has been received from the panel. Re-enter the PIN code, maybe you entered a wrong PIN code accidentally.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rweisback on March 09, 2012, 01:38:29 pm
Hi Mcvflorin,

I definately have "disarmed" in armed detail state, but I just tried "No" to the answer for armed state and it work, then went back to disarm for armed detailed state and it stop working!

With the code, I have tried several codes in the system all arm and disarm the system but show the invalid pin code message.

Rob
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on March 09, 2012, 02:05:22 pm
Do you have a more unusual PIN code? By usual PIN code I refer to numeric pin codes, between 4 and 6 digits.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rweisback on March 09, 2012, 10:43:54 pm
No its just a 4 digit pin, but I do have a Rosslare wiegand pin/prox reader on the system and my code also is mirrored in wiegand format. But I have tried other codes that do not get access from the Rosslare and still receive the error message. But in receiving the error message on Vera, it still arms and disarms the system perfectly.

Cheers Rob
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on March 12, 2012, 05:33:42 am
I think I know why this happens. Does the panel status update correctly on the dashboard?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rweisback on March 13, 2012, 07:34:19 am
Yes the dashboard updates in real time but the popup box from where you enter the code does not.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on March 13, 2012, 08:06:33 am
Yeah, I know why this happens. I'll add this fix on my TODO list.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on March 14, 2012, 11:52:12 pm
What is the status of this plugin?
Last I heard, there were many things yet to be completed, such as control of the outputs, tasks and readouts of the temperature sensors. From what I understood, it was going to be an indefinite wait because of UI5 development.

I am really looking forward to using those features.

Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 05, 2012, 12:10:30 am
@mcvflorin

In message http://forum.micasaverde.com/index.php/topic,6916.msg55727.html#msg55727 (http://forum.micasaverde.com/index.php/topic,6916.msg55727.html#msg55727) you mention the following: -

Quote
You're right about this. I do give the user the option to specify which sensors are door sensors and which are smoke sensors.

Can you specify how this is done, do we need to change the device files in the actual device or is it some other method.

Thanks

Zoot
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on April 05, 2012, 04:42:37 am
In the panel device Advanced tab there should be two variables, DoorSensors and SmokeSensors. Add the zone numbers separated by a comma (e.g. if zones 5, 12 and 13 are door sensors, add them in the DoorSensors variable like this: 5,12,13).
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 05, 2012, 08:53:42 am
@mcvflorin

Thanks, I know it is a minor thing but now I can tell the difference at a glance.

Is there any plan to have this done automatically for the ELK M1?

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on April 05, 2012, 10:36:57 am
I wanted to do this automatically when I made the plugin, but I reached the conclusion that I couldn't do it based on the zone definition alone. This is the list of the zone definitions as reported by the panel. As you can see, there isn't an obvious mapping between these zone definitions and the MiOS security sensor types. So I decided that instead of doing guesswork on what would be best, I better let the user specify what type are the zones.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on April 05, 2012, 11:34:21 am
Hi,
Are DoorSensors and SmokeSensors the only two options?
The Elk can use a great deal of sensors, including temperature sensors, water (leak) sensors, etc. many of which I own and use frequently.

Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on April 06, 2012, 05:24:57 am
Hi Quixote,

Currently yes, I used only sensors of type SecuritySensor. I will add support for temperature sensors and waterleak sensors in the next plugin version.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on April 06, 2012, 01:38:14 pm
Cool! Thanks!

Another useful type would be "Switch". I have some zones set up with switches instead of door sensors so that I can use zones to turn on and off relays. The switches have three positions so that I can achieve more with one switch by including an End-of-Line resistor in one circuit.
I suggest that the zones have a status for each "orientation" (for lack of a better word), if possible. For example: open, closed, EOL, short. Having a status to show a short would not only be useful for applications such as mine with the switches, but also help detect problems with the security system early, should a wire be damaged while doing renovations, etc.

Thank you for considering my suggestion.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 12, 2012, 05:19:43 am
Elk has the wireless crystal frequency add-on for the M1.  If I get this to incorporate my current GE wireless sensors, will they also show up individually in Vera?

 2
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on April 12, 2012, 05:23:42 am
If the panel can report them as zones, then yes.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: aschwalb on April 26, 2012, 05:06:05 pm
Hi Quixote,

Currently yes, I used only sensors of type SecuritySensor. I will add support for temperature sensors and waterleak sensors in the next plugin version.

Any ETA on this @mcvflorin?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on April 27, 2012, 06:47:42 am
Nope. Sorry.

If anyone is willing to get involved and add the requested features sooner  I'd be happy to give him access to the repository.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on May 03, 2012, 09:20:59 pm
Hi Mcvflorin,

I definately have "disarmed" in armed detail state, but I just tried "No" to the answer for armed state and it work, then went back to disarm for armed detailed state and it stop working!
I have the same issue.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: reslip on June 01, 2012, 11:48:42 pm
I'd have to see how to add in climate sensors with Luup, but I've got some java code that I wrote that will parse the temperature data from a keypad.

Quote
    public static void parseTemperatureData(String data){
       char group = data.charAt(0);
       int address = Integer.parseInt(data.substring(1,3));
       int temp = Integer.parseInt(data.substring(3,6));
       
       l.debug("Group:" + parseGroup(group) + " Address:" + address + " Temp:[" + fixTemp(group, temp) + "]");
    }
   
    public static String parseGroup(char group){
       if(group == '0'){
          return "Temperature Probe";
       } else if (group == '1'){
          return "Keypad";
       } else if (group == '2'){
          return "Thermostat";
       } else {
          return "Unknown";
       }
    }
   
    public static double fixTemp(char group, int temp){
       if(group == '0'){
          return temp-60;
       } else if (group == '1'){
          return temp-40;
       } else if (group == '2'){
          return temp;
       } else {
          return 0;
       }
    }
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: aschwalb on June 07, 2012, 09:08:47 am
I just installed a new M1G.  Have it interfaced to Vera via the plugin and have only 3 devices showing up.  The Elk Alarm Panel, Partition 1 and 2 door sensors.  I have 5 door and 1 smoke (currently) enrolled but they are not showing up.  These are all wireless via the ELK wireless module.  I have restarted the Luup engine, rebooted Vera etc...  Why am I missing the 3 other doors and the one smoke detector? 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 07, 2012, 10:11:06 am
Hard to tell without looking at the logs. You should enable Verbose Logging and look in LuaUPnP.log for lines starting with 52.
Code: [Select]
tail -f /tmp/log/cmh/LuaUPnP.log | grep '^52'
Search for messages containing ZD. This is the Zone Definition data. Post here or send me an e-mail with these messages.
Title: Re: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on June 08, 2012, 03:20:10 pm
I just installed a new M1G.  Have it interfaced to Vera via the plugin and have only 3 devices showing up.  The Elk Alarm Panel, Partition 1 and 2 door sensors.  I have 5 door and 1 smoke (currently) enrolled but they are not showing up.  These are all wireless via the ELK wireless module.  I have restarted the Luup engine, rebooted Vera etc...  Why am I missing the 3 other doors and the one smoke detector?
Just wondering if you had any luck resolving your missing zones?

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: aschwalb on June 10, 2012, 05:35:10 pm

Just wondering if you had any luck resolving your missing zones?

John

No Just set a log to @MCVFLORIN.

Code: [Select]
52 06/10/12 17:26:19.448 intercept 0x2bef898c: 0x44 0x36 0x5a 0x44 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x31 0x30 0x33 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x38 0x34 (D6ZD00000000000000001030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084) <0x2e2f9680>
Title: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on June 10, 2012, 06:11:49 pm
How are you connected with Vera. If you are using the M1XEP which firmware are you using? I did have issue with the latest firmware and had to roll it back to 1.3.26

John

Sent from my iPad using Tapatalk HD
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: aschwalb on June 11, 2012, 05:08:16 pm
How are you connected with Vera. If you are using the M1XEP which firmware are you using? I did have issue with the latest firmware and had to roll it back to 1.3.26

John

Sent from my iPad using Tapatalk HD

I am using the latest...  So I should roll back?  Is that easy?  Any thing lost if I do?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on June 11, 2012, 11:01:22 pm
How are you connected with Vera. If you are using the M1XEP which firmware are you using? I did have issue with the latest firmware and had to roll it back to 1.3.26

John

Sent from my iPad using Tapatalk HD

I am using the latest...  So I should roll back?  Is that easy?  Any thing lost if I do?

I would try to roll back and see if that fixes it. I had upgrade to ver. 1.3.28 and that caused all sorts of communication issues with vera. A soon as I rolled it back to ver 1.3.26 everything was back to normal and running stable. Ver 1.3.28 list as an update for ip communications to a DSC SurGard receiver. The firmware is easy to due under module enrollment in the Elk RP software.

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: aschwalb on June 14, 2012, 04:47:51 pm
How are you connected with Vera. If you are using the M1XEP which firmware are you using? I did have issue with the latest firmware and had to roll it back to 1.3.26

John

Sent from my iPad using Tapatalk HD

I am using the latest...  So I should roll back?  Is that easy?  Any thing lost if I do?

I would try to roll back and see if that fixes it. I had upgrade to ver. 1.3.28 and that caused all sorts of communication issues with vera. A soon as I rolled it back to ver 1.3.26 everything was back to normal and running stable. Ver 1.3.28 list as an update for ip communications to a DSC SurGard receiver. The firmware is easy to due under module enrollment in the Elk RP software.

John

@jwiz & @mcvflorin, I did fix my problem, this was completely a user error.  While I had correctly enrolled the other sensors in the wireless section I guess I did not save them in the database.  I went and looked last night and they were listed as not configured..  So I re-configured them and they show up in the interface...  I/O error I guess (incompetent operator) 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on June 14, 2012, 11:06:02 pm
@aschwalb good to hear your up and running now

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 21, 2012, 06:53:27 am
Can someone with a panel and some lights connected to the panel let me know if they receive any update of the light's status from the panel? The documentation is pretty confusing and I don't want to implement something based on assumptions. Even if the polling request works, it will be pretty ugly, because it will require that the users specify which lights are active. The protocol doesn't offer any control command for the lights.

Quote from: The Elk M1 Manual
This command allows the M1 to poll single light devices to obtain their on, off, dim status. This will be an automatic command issued from the M1 to the M1XSP Type modules that connect to lighting devices. This command cannot be used by automation equipment.

To see if the panel sends updates for the lights you should SSH into Vera (http://wiki.micasaverde.com/index.php/Logon_Vera_SSH) and look in the LuaUPnP.log file.

1. First you must enable verbose logging with the command:
VerboseLogging.sh enable

2. Then watch the logs for lines starting with 52:
tail -f /var/log/cmh/LuaUPnP.log | grep '^52'

The messages with the lights status contain the DS letters, e.g. 0BDS001990094
This one means:  Reply lighting status of device 001, set to a dim level of 99%

0B – Length as ASCII hex
DS – Reply Lighting Device Status data
001 – Lighting device number 001 to 256, base 1, device A1 = 001
99 – Lighting status. 00 = Off, 01 = Full On, 2 to 99 = Dim level
00 – future use
94 – Checksum

3. After you're done watching the logs you should disable verbose logging:
VerboseLogging.sh disable

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on June 22, 2012, 12:55:37 am
@mcvflorin

I have a zwave interface connected to my panel that is setup as a secondary controller to my Vera 2 and I can control all my lights via my elk panel. I can test with that or I can reconnect my old x10 interface and test with that if you would like.

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 22, 2012, 06:31:03 am
@jwiz

Thanks, but I decided to drop support for lights because of the many limitations and time restraint.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on June 22, 2012, 06:01:17 pm
I think that as long as we have a Vera Elk plug-in with all of the other functionality that the Elk offers, we can just work around the lighting situation using tasks. The key is two way communication with the Vera and the Elk.
We can even use virtual relays for certain things.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on June 26, 2012, 06:18:07 pm
Agreed - I don't have to have lighting - any kind of two way would work.

Initially, I tries bypassing and unbypassing zones as a way to communicate between the two units.  Imagine my surprise when it didn't work at all because each has it's own bypass status!  ???

As hokey as this implementation would be, if each security device in Vera could show the actual bypass status from the Elk and also allow bypassing and unbypassing zones in the Elk from the Vera, that would at least give enough rudimentary 2 way com to actuate relays and other commands by bypassing dummy zones within the Elk.

Elegant? well, no.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on June 28, 2012, 12:06:20 am
My Oh My! I can't believe I finally found you guys!
This is a jackpot for me after so many weeks of research. This all looks like what I need to get my problems solved.

 I am Jack, a USA guy living in SW China mainland. I am designing my HA project for my new townhouse here in Kunming. It is a 200 sq meter, 3 story brick building. I just returned from the US with a few suitcases of Elk M1 Gold goodies for which to build my HA home. Currently I have my entire system breadboarded in my condo, programmed and running nicely. I hope you all can appreciated the mass amount of work involved to get everything happy with Chinese voltages, devices, etc. But it is all good. You can see my system on my blog in the Cocoontech.com. I cannot post a link here(???) so you can just go to cocoontech.com and click blogs there.

I am at the lighting control phase now. After much more research, I decided to go with Z-Wave for control. Well, in China, I can get Z-Wave products, but no joy with getting anything hooked up to my M1. I cannot use VRCOP+3 due to the freq difference. In China, Z-Wave operates on 868.42Mhz. Then I ran across MiCasaVerde! The company Wintop makes "iHUB" which appears to be the Vera3 in all it's glory, AND working on 868.42Mhz like I need here.

PLEASE let a newbi throw a few questions a you good folks before I jump into this other investment.....

1. I already have the M1XSP with the latest FW. Do I need to get the M1XSLZW? Do I get more features using the M1XSLZW over the M1XSP? If I understand things, the M1XSLZW allows beaming. Is this the only extra?

2. I need my M1 to use rules for light controlling because I am using OC sensors, water valve, door contacts reporting to the M1 zones for rules in lighting control. Am I correct in thinking the Vera3 and this plug-in will allow me to do this?

3. I also use the EKpro app on the iPhone and iPad for control and it of course connects to my M1 and sees whatever the M1 has listed for devices.
Will this app work, say, I turn on a light, and the M1 knows to send this command to Vera3? OK, maybe a dumb question, but I need to ask.

4. Is there anything more I need to get for my M1 controlling Z-Wave?

5. How do I get this plug-in? Where is the link?

Thanks in advance for your help. I'm really in no mans land out here. It doesn't help that I can't speak Mandarin either!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on June 28, 2012, 06:48:07 am
Hi Jack, welcome to the forum!

The current plugin version gives you only basic control of the panel: arming and disarming the panel, bypassing and unbypassing the zones, enabling/disabling the Chime Mode. The version I'm working on will allow you to control thermostats, trigger tasks, control the outputs and see the temperatures from the temperature sensors and keypads. It won't show you the status of the lights because there's little support for lights in the Elk API.

You can install the plugin from apps.mios.com, or from the Vera UI in Apps >> Install Apps.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on June 28, 2012, 02:29:50 pm
Somebody correct me if I'm wrong, but Bucko has two ways to go here:
1. Use the Vera to emulate a VRC0P (assuming the Wintop uint has this emulation function)
2. Connect the Vera to the Elk via serial or ethernet and use Florin's plugin.

I assume that option 1 requires the M1XSLZW
Option 2 can be done serially using the M1XSP or over ethernet using the M1XEP
Option 2 can't be fully implemented until the new Elk plugin is complete, with the lighting limitation Florin mentions (hopefully this limitation can be overcome using task & rules to control lighting so not a major problem).

Which option you choose may depend on whether you intend to put most of your interface and control logic / UI in the Vera or most of it on the Elk.

I'm currently using option 2 and I am anxiously awaiting the new plugin.  I can currently disarm the Elk remotely and via z-wave door locks through Vera.  All of my lighting control is done via the Vera.

Once the new plugin is done, I can actuate the Elk outputs from Vera and use it for things like irrigation control, garage door control, etc.

I still haven't decided what to use for an aggregated UI for the Elk, Vera, Audio, etc.  I'm considering Girder webserver...

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on June 28, 2012, 03:52:25 pm
The version I'm working on will allow you to control thermostats, trigger tasks, control the outputs and see the temperatures from the temperature sensors and keypads.
THIS is what I need to complete my Elk integration. I don't care about lighting control... that is what I have Vera for! If Vera can get the status of outputs and act on them then I can do all I need!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on June 28, 2012, 11:46:34 pm
@electnixon- You mentioned an option of Vera and VRCOP emulation. I thought the Vera3 does indeed emulate the VRCOP+3. Then the Elk  M1XSLZW  should would work the same way with Z-Wave. If this is an "assumption" only, do you know how I may go about verifying this is indeed the case? My resources are a bit limited in China. I can't talk with the WIntop people about the Vera3 here. All I know is that the Wintop device is indeed a Vera3 UI5.

Hey, maybe I am going about this all the wrong way so let me ask you guys this way.  Sounds like you all have the Elk, controlled lights, etc. so we are in the same boat. Are you all running a PC server with HA software (i.e Premise, Homeseer, Elve, etc?) Is this how you guys roll?

I am trying to accomplish lighting control using the M1 for basically one reason. I'm using OC sensors that will just report to Elk zones. Then I will write Elk rules to trigger lights based on zone trips. i.e bedroom Zn 20 open then turn on bedroom light. if after 10pm turn light on at 40%. Or if the alarm trips, flash all on and off. This kind of thing. Am I thinking about this correct? You guys have a better way to do it? I can only figure that if I need zone input from the Elk, then SOMETHING somehow has to report status to Z-Wave. If I wanted to pick up  remote every time I need a light to do something, then all I need is a standalone Z-Wave system. I just thought I would utilize the Elk to do control since that is a function of the M1 system. Later I will expand the Vera3 to do my audio/video control.

I mean, what do you all do? I'm sure you have more experience with this than me. I am just getting into the whole Elk/HA thing. I wanted to avoid having a PC server running 24/7 to use some HA software. My needs are not so complicated to justify the cost of that now. Maybe in the future, but not now.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on June 29, 2012, 09:07:08 am
@bucko
The M1 can definitely do lighting control the way that you state using the Vera as a VRC0P (I haven't actually tried using it as a VRC0P, so maybe get confirmation of this first).

If you are using z wave lights though, you can also use the Vera to control the lights - it can get zone trip and alarm status from the Elk and run those through scenes for lighting control as you describe.

That's what I'm currently doing and I'm awaiting the new plugin so I can also utilize Elk's outputs and other features from Vera.

With Vera and the M1, you have some redundancy between the M1's rules and Vera's scenes.  I actually like Vera's scenes better because you can put in some fairly powerful code, whereas the M1 seems a bit limited but the M1 is still a great panel and I'll still use rules to "help" with the Vera interface.

I don't have a HA server such as Homeseer which would add some features, but also add more redundancy.  I plan to add something for UI and for AV server / control but I'll probably keep the security on the Elk and lighting on Vera and just have the UI server handle certain scene activations and security status reporting.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on June 29, 2012, 09:23:20 pm
@ELECTNIXON- Great info there. It helps me a lot. One question at you......Does the Vera 2 also emulate the VRCOP+3?

 It seems I cannot the Vera 3 in China. They only have the Vera 2.

I also noted you use the M1SP (or XEP) to connect to the Vera. I already have these as well. Do I really need to get the  M1XSLZW to do this stuff?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on July 09, 2012, 05:31:15 pm
Sorry I missed your question on the 29th.
I do not use the M1XSLZW, only the M1XEP.  My original plan was to have the Elk do direct zwave, but I trust the Vera enough to do it for me and I did not like the Elk's integration with Locks (I couldn't figure where their plugin would do things based on which user PIN was entered, but the Vera can).
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on July 25, 2012, 10:45:34 am
The current plugin version gives you only basic control of the panel: arming and disarming the panel, bypassing and unbypassing the zones, enabling/disabling the Chime Mode. The version I'm working on will allow you to control thermostats, trigger tasks, control the outputs and see the temperatures from the temperature sensors and keypads. It won't show you the status of the lights because there's little support for lights in the Elk API.

You can install the plugin from apps.mios.com, or from the Vera UI in Apps >> Install Apps.

@MCVFLORIN - Any status updates on the updated Elk plugin?  Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on July 26, 2012, 02:26:31 am
All the new features are implemented, I just have to test it and update the documentation. Up until this week I didn't have access to an Elk panel, but now I have, so I hope I will be able to release it the next week.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Schwaggs on August 12, 2012, 12:41:43 pm
I have been using an Elk M1G for about 5 years and recently added a Vera 3 to my system. I can't get the Vera 3 app to connect through my M1EXP. I get the "Elk Alarm Panel: Failed to get zones" error. I started by using the secure port number but then enabled the unsecure port but am getting the exact, same results either way. My M1EXP works fine from Elk RP and a browser. I was using a really old version of M1EXP FW (getting the same error) but upgraded it to the latest (1.3.28) and don't have access to the version people say works better, 1.3.26 so I can't try that. I also don't have the Door Zone and Fire Zone variables on the advanced tab like was mentioned eariler in the thread so I'm not sure if I have the correct version of the app installed or if we are supposed to manually add those variables to the Advanced tab (I installed right from the Vera 3 the other day so I don't see how I couldn't have the latest). I can telnet to the unsecure IP:Port just fine.

Anyone have ideas for me?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on August 27, 2012, 04:14:25 pm
All the new features are implemented, I just have to test it and update the documentation. Up until this week I didn't have access to an Elk panel, but now I have, so I hope I will be able to release it the next week.

Just checking to see if there has been any progress on this since it has been over a month the last time we heard anything.
Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on August 29, 2012, 06:00:36 am
Me too!  I'm anxious to know how the new plug in is coming.......
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: garrettwp on August 29, 2012, 06:28:44 am
Hopefully MCVFlorin can chime in. However he has been away for the last few weeks (vacation). So that would explain half of the month.

- Garrett
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on September 07, 2012, 11:15:27 am
Looks like he enjoyed his vacation so much that he decided to extend it.   :-\
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: garrettwp on September 07, 2012, 01:50:03 pm
He has been posting, but I'm sure he has much to catch up on.

- Garrett
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Riggs on September 09, 2012, 09:33:58 pm
Quick question does the Elk M1G plugin support the virtual outputs,
ie if i was to program a task on the Elk to control an output and have Vera register the change to trigger a scene. (Hope this makes sense)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 19, 2012, 05:18:34 am
An extended vacation, that sounds nice. :)

Unfortunately I've been given some high priority tasks since coming from vacation and I didn't have much time to read the forums or work on plugins. I think things will return to normal starting from the next week. The Concord plugin and the Elk plugin are the first on my list, since they're both very close to completion.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: homejones on September 20, 2012, 03:11:07 am
Quick question on the plugin: Would I be able to program a button on my keyfob (which is registered with Elk) to unlock a ZWave deadbolt?

Trying to figure out whether this is within the realm of possibility with the plugin. Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 20, 2012, 05:58:51 am
Quick question on the plugin: Would I be able to program a button on my keyfob (which is registered with Elk) to unlock a ZWave deadbolt?

If the keyfob button is seen as a "zone" then yes. Otherwise no, because there's no support for keyfobs in the API.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on September 20, 2012, 09:42:53 am
The Concord plugin and the Elk plugin are the first on my list, since they're both very close to completion.
Excellent news! Being able to utilize tasks and outputs will be perfect!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: homejones on September 20, 2012, 01:50:51 pm
Quick question on the plugin: Would I be able to program a button on my keyfob (which is registered with Elk) to unlock a ZWave deadbolt?

If the keyfob button is seen as a "zone" then yes. Otherwise no, because there's no support for keyfobs in the API.

I don't have my Elk installed yet, but from reading forums, it appears that the keyfob is enrolled as a Keyfob zone in the Elk. So...would this work? Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 21, 2012, 05:33:18 am
@homejones

Yes. The plugin works with any type of zones.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: homejones on September 21, 2012, 04:35:31 pm
@homejones

Yes. The plugin works with any type of zones.

Thank you sir!

Please excuse these basic questions, but I am trying to anticipate functionality before actually deploying my system.

So if I press a button on my keyfob - how would Vera register this?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on September 24, 2012, 03:30:05 am
So if I press a button on my keyfob - how would Vera register this?
Vera will create a motion sensor device for the keyfob. When you press the button the motion sensor will be tripped.
... At least that's the theory. I haven't tested the plugin with a keyfob so I'm not 100% certain of its behavior.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: asoz on October 08, 2012, 04:01:35 am
Hi, I am having VeraLite and ELK M1 with XEP. I am trying to add ELK Alarm to Vera Lite but its not working. As soon as I set the profile to ELK, it will disappear from device panel. Also there is no field to put PIN for Alarm. Any help?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: asoz on October 08, 2012, 08:42:42 am
Hi, I am having VeraLite and ELK M1 with XEP. I am trying to add ELK Alarm to Vera Lite but its not working. As soon as I set the profile to ELK, it will disappear from device panel. Also there is no field to put PIN for Alarm. Any help?

Here is debug log:

50      10/08/12 23:40:36.043   luup_log:9: (sendCommand) ERROR: Failed to send command: '06zd005C' <0x2b4ab680>
50      10/08/12 23:40:36.044   luup_log:9: (getZonesAndPartitions) ERROR: Failed to get zones. <0x2b4ab680>
01      10/08/12 23:40:36.044   LuaInterface::CallFunction_Startup-2 device 9 function elkStartup failed Elk Alarm Panel wit return false <0x2b4ab680>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on October 09, 2012, 03:56:19 am
@asoz,

Please enable Tech Support and submit a trouble ticket and post here the ticket number.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: asoz on October 10, 2012, 04:49:43 am
@asoz,

Please enable Tech Support and submit a trouble ticket and post here the ticket number.

Thanks! Managed to fix the issue by changing the port on XEP to insecure. It didn't work with secure port.

cheers,
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on October 16, 2012, 02:40:21 pm
Hello,
Does this hardware order look correct?  I have a 2nd home run for the door jamb sensors which is why I'm getting the zone expander the salesperson didnt think there was a keypad that would take 3 additional inputs, only 1... 

Please see below and advise me if possible.

Code: [Select]
ELK-M1GSYS4
ELK-M1G CONTROL, TRANSFORMER,K
EACH
Whse: 000
1  0  0  585.95  585.95
ELK-M1XRFEG
ELK WIRELESS RECEIVER AND INPU
EACH
Whse: 000
1  0  0  142.79  142.79
RX-40PI
OPTEX PASSIVE INFRARED
EACH
Whse: 000
3  0  0  15.95  47.85
BR-1012T
WINN 3/8' RECESSED CONTACT W/
EACH
Whse: 000
3  0  0  3.95  11.85
ELK-M1XEP
ELK ETHERNET PORT INTERFACE
EACH
Whse: 000
1  0  0  234.21  234.21
ELK-M1XIN
ELK M1 16  ZONE INPUT EXPANDER
EACH
Whse: 000
2  0  0  102.79  205.58
NX-003
GE CADDX X-PAND-A-CAN CABINET (For Zone input expander)
EACH
Whse: 000
2  0  0  21.00  42.00
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on October 24, 2012, 02:48:55 pm
Nobody responded to my post, hopefully I got the rigth stuff, it's going to be delivered sometime today. 

Can this plugin Control a device?  For example this relay:
ELK Relay Module, 12Amp SPDT Relay, 12vdc coil - ELK-912
http://www.smarthomeusa.com/ShopByManufacturer/ELK-Products/Item/ELK-912/

I'm wondering if I can replace an LFM20 module with this, and control it on/off in Vera...

Any feedback?  Thanks,
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on October 24, 2012, 04:14:00 pm
Nobody cares about the Elk here.

I've been waiting a year for a fully functional plug-in myself. Unfortunately, it always seems to find itself at the bottom of their priority list.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on October 24, 2012, 04:36:10 pm
Surprising...  I thought this was the most integrated panel...  maybe I will have to return it.  What is NOT working?  I want to at least see updates on tripped sensors and in the case of this trigger would like to activate / deactivate it.  Is that not possible?

 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on October 24, 2012, 04:39:21 pm
Activate a relay?

No. Not in its present state.
Title: Re: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: garrettwp on October 24, 2012, 09:28:13 pm
Surprising...  I thought this was the most integrated panel...  maybe I will have to return it.  What is NOT working?  I want to at least see updates on tripped sensors and in the case of this trigger would like to activate / deactivate it.  Is that not possible?

 2

The DSC is currently the most supported panel at the moment.

- Garrett

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on October 25, 2012, 12:00:08 am
I've been eagerly awaiting the updated Elk Plugin as well and am hoping for full 2way functionality.  Is there any ETA?  Elk can bring a lot more to the table than just security. 

As Quixote said, the plugin can not currently activate a relay.  What specifically are you looking to do?  I have hacked a code that can send commands to elk via the xep to control relays, run tasks, etc.  The Elk protocol documentation and sdk are available online.  I'm not a programmer and I haven't gone beyond the proof of concept phase.

It would be great to have a plugin that would link the devices on vera with elk.  Specifically I am thinking zwave devices but it could be expanded to everything.  Elk has a zwave interface but instead of trying to have a primary/secondary controller relationship I think it can be done with simple communication.  Elk broadcasts what it does out of the xep (or serial port if you are connected directly).  So vera could monitor this, identify the data that is relevant, and respond accordingly.  When things change on vera, it identifies it and sends the info to elk.  Elk doesn't require/verify any hardware be attached to change the light status.  It behaves like a virtual switch and just reflects what it receives.

This can also go beyond lights.  Since vera controls locks, you can now do the same with elk without having to buy the new zwave expander and levition controller.  You can use a block of unused elk "outputs" to montor/control this.  Output100=lock.  On=Locked Off=Unlocked.  Output101=Onkyo Receiver, 102=tv.

I'm not a programmer so I don't know how hard this would be but it seems doable.  I got the commands working from vera but haven't tried the other way around.  I'm sure there is some code that can read the state of a device and respond, just need to find it.

On a smaller scale, I was thinking of making an plugin that works like a customizable keypad.  Basically take what I can now do with sending commands to elk and create a plugin where you have x buttons and you can enter the commands you want associated to each button in the xml file.  Maybe include the elk function keys as well.  So click on button 1, send whatever code you specified in the xml to elk.  Click on button 2, activate big517's relay.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Ruetech on October 25, 2012, 12:51:52 am
@shorty

I did something similar with my Dmp xt50 using arduino and its been working great so far I can activate relays with a virtual switch. I have four set up and working right now but they can be added at will same goes for inputs I'm only using two but they can be easily added as well
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on October 25, 2012, 09:09:18 am
@Shorty,
Is this progress you've made something you can share to help further the progress of this plugin.   Is ELK competing with Vera now with the release of their zwave interface?

I had no idea it was missing these basic functions.  Does anyone have an ETA now?
Pretty bummed right now, installing this weekend, but now i'm hesitating... 

I saw @MCVFlorin post that he was almost completely finished back in June / July and that is probably why I assumed it was good to go...  @mcvflorin , are you incorporating these features discussed?  Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on October 25, 2012, 11:33:38 pm
Overall it was pretty simple.  I took the sharptv plugin and set the ip/port for elk and entered the commands.  This is just the proof of concept and it turns on/off a light. 

You could argue they they have always been competitors since they are both smarthome controllers but I think they serve different segments.  Elk is still primarily a security system with automation capabilities.  They have always had zwave by using their serial expander and the leviton serial adapter.  The new adapter is so they can support locks (security class).  It is fairly past due.

Big - Do you have any experience with home automation?  I assume you don't have much with elk as you are just buying the equipment.  If you need any help send me a message, I have both elk and vera.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on October 25, 2012, 11:36:36 pm
Forgot the attachment. 

If an admin is watching, these captchas need to be a bit more legible. 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: homejones on October 26, 2012, 04:13:31 pm
I have hacked a code that can send commands to elk via the xep to control relays, run tasks, etc.  The Elk protocol documentation and sdk are available online.  I'm not a programmer and I haven't gone beyond the proof of concept phase.

This can also go beyond lights.  Since vera controls locks, you can now do the same with elk without having to buy the new zwave expander and levition controller.  You can use a block of unused elk "outputs" to montor/control this.  Output100=lock.  On=Locked Off=Unlocked.  Output101=Onkyo Receiver, 102=tv.

Hi Shorty - can you please share the code that you've built to send commands to the Elk?

Also, in the second paragraph above, are you saying that this (specifically about the Door Lock/Unlock) is possible or is this desired functionality? This is precisely what I want to do and ideally, using a Keyfob tied to Elk to unlock specific doors.

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on October 26, 2012, 10:48:24 pm
I attached the code with my last post.  I modified it from the sharptv plugin, just switched the ip/port.  It requires port 2101 open on the xep, can't get it to work on 2601.

Per your question, no I don't have a way to currently control items on vera from elk.  All I did was figure out a was for vera to send commands to elk.  I think elk to vera must be doable and within reach. 

The existing plugin can obviously connect, receive zone data from elk, and update/display zone changes when they occur.  It looks like 99% of the work is done.  I just want to copy this and have it do the same with lights. 

Here's what I am thinking.  Maybe mcvflorin can chime in as to feasibility. 

The user should have setup the elk lights to match the light names in vera.  When vera starts up it queries the light names.  Have vera compare these names to the names of it's devices.  When it finds a match, take note.  A programmer will have to take it from here.  Somehow create an object, table, hidden devices, etc for whatever matches. 

Now monitor whatever matches the for changes just as it currently does for zones.  Instruct vera to perform whatever status change it receives as if it were a command.  Basically make vera behave like a annoying sibling who copies elk's every move.  If elk turns on bedroom light, then vera turns on bedroom light. 

Then do the reverse to update elk.  I don't know how to accomplish so hopefully a programmer can chime in.  Simply stated, whenever a device in vera changes and the plugin has identified that it has a match in elk, then send the corresponding command to elk.

Does it require a lot of resources to constantly monitor vera for changes and listening/parsing/executing data from elk?  If not, how feasible is this?  If it works then it should make a pretty strong combination and render the elk zwave expander and leviton controller obsolete.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on November 03, 2012, 01:03:37 am
You could argue they they have always been competitors since they are both smarthome controllers but I think they serve different segments.  Elk is still primarily a security system with automation capabilities. 

And that's the drawback of using the ELK as a home automation platform.  I have one, and I really do like it.  But ELK is limited in what they can do with the platform if they want to maintain their UL listing, which is required in many cities for any security system that is installed.  The UL requirements for a security system say things like it has to be embedded hardware that doesn't run a general purpose underlying operating system, and some other things that really hinder what the ELK is capable of.  Have you used their automation rules?  They give you like 3 operators (When, And, and Then).  There's no OR, or CASE like HAI has, and things that should take 3 lines of code can take 8 or 9.  Plus, you're limited to 1500 lines of code total. 

My plan with the Vera is to completely move ALL of my automation functionality off of the ELK, while still using the ELK for security and it's sensors and outputs.

ELK and HAI are really the only players in the Security *and* home automation market.  But, when you play in both fields and security is your major market, you have to play by the UL rules or you're going to lose a ton of sales.

That said, I would really like to have outputs working through the ELK plugin, and the option for the plugin to save the PIN code.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on November 08, 2012, 07:38:48 pm
Does anyone know what the ETA is of the next release of this plugin?  Or what features it might have?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on November 08, 2012, 07:40:22 pm
We'll have it by 2014 if we're lucky.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on November 11, 2012, 06:02:49 pm
I see "ChimeEnabled" as a variable for my partitions.  But it's always set to "1" on the vera, whether or not my chime on the Elk is disabled.  Is this a value that's not really updated/polled?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on November 17, 2012, 06:25:43 am

That said, I would really like to have outputs working through the ELK plugin, and the option for the plugin to save the PIN code.

Ditto,
Really looking forward to this.  I wonder if someone with some know-how can create a little plugin to send text to the ELK similar to our discussion in the garage door thread.  At least this would help in the meantime.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on November 17, 2012, 09:14:54 am

That said, I would really like to have outputs working through the ELK plugin, and the option for the plugin to save the PIN code.

Ditto,
Really looking forward to this.  I wonder if someone with some know-how can create a little plugin to send text to the ELK similar to our discussion in the garage door thread.  At least this would help in the meantime.

Hmm, I like the idea of a generic plugin that can send data over a user specified TCP or UDP port.  Although, the LUUP code I posted to do it is pretty easy.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on November 23, 2012, 07:12:24 am
I noticed on Cocoontech there are folks looking for an alternative solution to the newer Zwave interface and the Vera is mentioned, there is a post linking to the update on this plugin and it shows that the plugin is not finished yet.  Seems like a big market over there has their eyes peeled on this plugin coming to fruition.   Hopefully this gets updated, I bet the user base will increase a good amount which is good for everyone.   
@mcvflorin, do you have any update on this?

"Thanks,
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on December 03, 2012, 04:52:29 am
The reason this is so low on the priority list is because there is already a functional version for this alarm panel, and new plugins take precedence over this one.

I added a new tag: 2.0_alpha_1 (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/67/tags/2.0_alpha_1?old_path=%2F&format=zip) (which is actually revision 63 from trunk) which contains implementation for:
>> Possibility to trigger tasks.
>> Relays control and status display.
>> Display zone temperatures.
>> Expose and control thermostats.

Unfortunately, since this is Alpha, it's far from stable and bug free. Some time ago I started making this plugin more like the GE Concord 4 plugin, to be more stable, but this is quite a bit of work, and I get to work on the plugin pretty rarely. The code is public, so everyone is free to make a fork of the code and provide his own implementation.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on December 03, 2012, 01:21:32 pm
FYI, for those interested, here's a link to a PDF which contains the ELK serial protocol:

http://www.scribd.com/doc/50097012/Elk-m1-Rs232-Protocol

This may or may not be the latest version of it.  For those that want task control, I posted under a garage door thread in General that tells you how to do this with the existing plugin by using a custom string and watching for it on Serial0 on the Elk.  Tasks can be configured to control outputs, so it would give you output control also.


Unfortunately, since this is Alpha, it's far from stable and bug free.

What are the problems you know of off the top of your head?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on December 03, 2012, 04:46:12 pm
Thank you for the update.

I can't log in for some reason. Is there somewhere else I might find the files and instructions on how to install them?
Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 04, 2012, 07:13:20 am
I cannot access either....  if someone does have access, please mirror until mcvflorin can fix.
Really want to give this a run today Thanks.

 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 04, 2012, 12:34:22 pm
I think I got to it!

http://code.mios.com/svn_public/mios_elk-alarm-panel/tags/2.0_alpha_1/

 :o

UPDATE:
Not sure if that link is the same stuff that MCVFLorin posted, but I'm getting an infinite loop of reboots now!

It boots to starting the Elk Alarm Panel Getting Temperatures, then REBOOT
Going to see if I can sneak in and upload the OLD trunk files.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 04, 2012, 03:54:20 pm
I deleted the plugin, created a new one from scratch with the trunk files; it's hanging on "Starting up..."
Took about 10 minutes, but it's showing all the zones now... I'm waiting for outputs to show up hopefully... but something still isn't right.
Has anyone else installed the new trunk?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on December 05, 2012, 11:38:00 am
What are the problems you know of off the top of your head?

It can get stuck waiting for a response or it can show an error that it hasn't received the right response. Probably other too.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 05, 2012, 01:14:41 pm
What are the problems you know of off the top of your head?

It can get stuck waiting for a response or it can show an error that it hasn't received the right response. Probably other too.

So this is in addition to my problem above?

Can you post another link to the files?  I thought I found them, but I updated them and it put me in a reboot loop while loading the ELK Plugin...
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on December 06, 2012, 11:47:31 pm
Signal15 - Thanks for posting the vera-elk text solution.  Exactly what I was hacking around plugins trying to find.  I don't know lua, plug-in development, etc so this is a big help and an elegant solution.

For those looking for a russound solution and who happen to have elk as well (don't know how far I have whittled the pool) this can work.  Elk can control russound and this control can be built into rules.  Vera sends elk a text that activates a rule and Signal15's playlist automatically starts whenever he opens his garage door between 630-730pm. 

It may not be absolute control but you can satisfy most audio automation needs with 10-15 rules.  If you need full control you'd need to look elsewhere.

Mcvflorin - Kudos for the work on the plugin.  I want to test it but am hesitant on a live system until later beta.  Really looking forward to recognizing status of output as this is a good path for elk to vera communication.

Speaking of which, I'm still searching for the zwave expander/leviton rs232 controller killer app...  And I think it is within reach.

Do either of you know how to have vera listen for texts from elk and respond.  Basically what Signal provided in reverse.  Maybe a plugin that connects to elk on 2101 and translates any lighting/thermostat commands into vera commands.  MCV your code can read and write elk protocol, how hard is it to translate this into something vera can act upon?

Lastly, how can vera echo zwave status changes back as elk formatted messages?

Signal's - Your code above is simple, compact, and easy to use direct to elk communication.
Mcvflorin - You have code that already translates vera info into elk protocol. 

We need to get you guys in a room together with a case of beer.  You guys combine your code and use it to send "live" zwave status changes to elk.  It seems like the only missing piece is capturing/parsing vera status changes.  This has to be fairly routine thing to do.   

I sure there are some things I'm missing but it seems that we have all the parts we need and they just need to be bolted together.  I'll buy the beer.

BTW:  Micasaverde should consider buying the beer and throwing a couple of brains at this.  If it works, they will sell more product and profit.  A Vera3 is less expensive than Elk zwave expander + Leviton VRC0P controller.  If it works just as well it is a no brainer.  You would get lighting/hvac control plus all of the features of vera, wireless router, vera apps, and smarthphone app/interface for less money than another solution that just provides lighting/hvac.  This is more true now since people must upgrade the elk expander/VRC0P to support locks.  They know they are going to spend the money but are just waiting for a reason to do it now or until their current setup becomes so obsolete they are forced to.  Low hanging fruit.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on December 07, 2012, 12:17:22 am
My feeling is that the Elk kind of sucks as an automation platform, and I've since moved all of my automation stuff over to the Vera.  So, the fact that the Elk doesn't pick up my Z-wave statuses and other things doesn't really bother me.  I love my Elk, but it's well known that there are limitations, and that's why things like Vera and CQC and all the other automation products that integrate with it do so well.

I should mention one more hack for getting data between the units.  I needed to know the Chime status on the Elk from the Vera.  There's a variable for it in the plugin, but it doesn't seem to be updated.  So, I set up a rule on the elk for when the chime is off, turn one of my outputs off (NC on a relay output) and when it's on, turn the output on.  Then, I ran wires from the relay to an input zone on the Elk.  Since the plugin can monitor input zones, I have a binary value that I can use in LUUP code to determine if the chime is on or off.

I thought about hacking the code for the Elk plugin to fix the Chime variable.  But I found that the Elk only sends the chime status (via Serial0) when the Chime button is pressed on the keypad.  If the chime is toggled from a rule, no update is sent.  This means the Vera would have to poll for it on a regular basis.  My way == no polling.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 07, 2012, 12:32:31 am
I noticed disabling chime on sensor setting via RP hid the status from vera but disabling it globally allowed versa to see and disabled annoying chimes from elk speaker

 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on December 07, 2012, 03:23:43 am
I noticed disabling chime on sensor setting via RP hid the status from vera but disabling it globally allowed versa to see and disabled annoying chimes from elk speaker

 2

Ah, that makes sense.  It's not really useful that way though.  If you disable it via RP, it's not exactly a dynamic variable that's going to change on a regular basis.  It really needs to be able to be updated via chime button press or rule toggle.  But, like I mentioned before, if elk rules change the chime status, it's not sent to the Vera, you still have to poll for it.

One of the things I was thinking about is how would the Elk plugin handle outputs?  If I remember correctly, they are all "active" in RP.  Would the Elk plugin create a Vera device for each of the 200+ outputs?  Or would there be a single "output" device that had on/off for each of them?  I use/used outputs pretty extensively in my automation rules in the elk as binary variable storage (using high numbered unused outputs) coupled with timers.  I still have a few things in there, and it would be useful to be able to get the status of outputs. 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 07, 2012, 06:57:49 am
I don't have chime enabled and the trigger is instant so its still broadcasting the trip.  Try it again: go into the zone and enable chime for the device then globally disable chime.  I did it that way and its perfect.

 Not all outputs are active, and either are the zones for that matter, unless you check the "show" box in RP.

 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 10, 2012, 04:25:23 pm
While we're waiting for the update, Is there a way for the Vera to receive the text from ELK? 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on December 10, 2012, 04:30:19 pm
While we're waiting for the update, Is there a way for the Vera to receive the text from ELK?

Receive what text from the ELK?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 11, 2012, 02:56:25 pm
the text can send text out the same way it receives it from your code;

Code: [Select]
local socket = require("socket")
host = "192.xxx.xxx.xxx"  --  IP of your Elk
c = assert(socket.connect(host, 2101))
c:send("mute\r")
c:close()

So i'm wondering if we can utilize this medium to trigger events in Vera...  I just installed a M1XOVR to run outputs to my expander in order to trigger events, it's a bit hacky and expensive so I'm hoping there is another way such as this.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on December 11, 2012, 03:14:53 pm
the text can send text out the same way it receives it from your code;
 
Code: [Select]
local socket = require("socket")
host = "192.xxx.xxx.xxx"  --  IP of your Elk
c = assert(socket.connect(host, 2101))
c:send("mute\r")
c:close()

So i'm wondering if we can utilize this medium to trigger events in Vera...  I just installed a M1XOVR to run outputs to my expander in order to trigger events, it's a bit hacky and expensive so I'm hoping there is another way such as this.

What exactly do you want the elk to send to Vera beyond what it does now?  Why not just move the bulk of your automation control to the Vera?  I'm trying to think of a scenario where you would need the elk to send additional info, and I'm having trouble doing it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 11, 2012, 10:50:17 pm
Some of the programming in elk is easy.  Whenever/and/then type code required luup knowledge until the recent boom of plugins which are great but still don't tie in flawlessly or without time invested to learn the plugin.
It took 6 mouse clicks to determine if someone was approaching or leaving my driveway in elk maybe a total of 2 minutes max and I only had the system for a day.  In Vera I spent 3 days and still didn't get it reliably.
So now I let elk tell me if someone is coming then trigger a zone as violated and fire all zones to 100% volume and sonos input all of which takes a few milliseconds then- vera sees the zone trip with a 1.5 second delay but does an awesome job playing a networked voice file in both sonos zones, turning on the flood lights outside and dimming the interior lights...
My only gripe is the small delay waiting for sensor trigger as I feel I could save a full second if I could somehow ping the versa first....  make sense?
 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on December 11, 2012, 11:44:38 pm
When an input status changes on my Elk, Vera is updated instantly for me.  There's no delay.  The Vera does not poll the Elk for status, it might initially, but it waits for the Elk to tell it what's changed via the Elk serial protocol.

So, if there is a delay, it's likely on your Vera.  If your Vera is quite busy, it's going to take a bit to react to the message it just got from the Elk.  Which means, that if you send an Elk text string to the Vera, you're going to have the same issue.  It wouldn't solve anything.

In any case, you do bring up a good point regarding the programming.  The Elk automation language, while limited, is very easy.  LUA/LUUP, definitely not as easy, but you can do just about anything with it.  What would make Vera easier to use for people with little programming experience, or even people who are lazy  like me, is some sort of wizard/clipboard for LUUP code that you could bring up on the LUUP pages and have it auto insert chunks of code for commonly used things, and you just change a couple values to make it work for you.  This doesn't even need to be done on Vera itself, someone could make a firefox/Chrome plugin for doing it.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on December 12, 2012, 06:51:09 am
Interesting concept on the browser plugin. 

At any rate a lot could be solved by bringing this plugin to fruition.  I hope @mcvflorin implements usage of the outputs at a very minimum.

Did you try his new beta? I couldnt get in with his link! I searched the svn and believe I found the right files but It was completely broke for me.

 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: garrettwp on December 12, 2012, 08:25:57 am
I believe MCVFlorin pretty much gave permission to anyone who wants to continue development for this plugin as he does not have the time to continue supporting it. It is mentioned a page or two back.

- Garrett
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on December 12, 2012, 01:16:18 pm
Interesting concept on the browser plugin. 

At any rate a lot could be solved by bringing this plugin to fruition.  I hope @mcvflorin implements usage of the outputs at a very minimum.

Did you try his new beta? I couldnt get in with his link! I searched the svn and believe I found the right files but It was completely broke for me.

 2

I did not try the new plugin, and as I recall it was mentioned that it's alpha software.  I saw a couple of people tried it, and it screwed up their Vera and they had to restore from backup.  However, I'm not sure if they actually grabbed the latest one.  I don't think the latest one is actually set to be public in the repo. 

I don't have a spare vera to test with, so I haven't tried it.  I have little time to mess with this at all, so I really try to not screw things up and have to spend hours fixing it.  :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on December 22, 2012, 03:52:56 pm
MCVFlorin, can you confirm that you will no longer be developing the Elk plugin? I'd like to know where it stands.
Also, please give us a link that works so that we can try out what you have put together.

Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 03, 2013, 05:47:42 pm
Yes, @MCVFLorin, please respond at least with valid link so we can try the alpha.
In the meantime does anyone know how to get VERA to automatically reboot in the event if failed to get zones?  I notice whenever i'm using Elk RP and Vera Reboots, it will not be able to get zones for some reason.  If I didn't notice it will go on without connection to ELK until it's rebooted again.
It would be great to have some scene or logic to retry connection to the ELK...  Anyone know how?

Thanks,
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin - Vera->Elk Communication
Post by: electnixon on January 05, 2013, 09:36:58 pm
If you want basic two way communications with an Elk panel (turning single bits on and off), here's what i've resorted to doing: 

(I think that I posted on this once before and stated that I couldn't get it to work, but I guess I just forgot to put in the PIN code or I forgot to set the virtual zone as bypassable):

I created some input zones in the Elk that don't exist (in my case I started with zone 100), set them up as nonalarm, normally open, bypassable.  Then I created scenes in Vera that store a pin code for The Elk then bypass or unbypass the virtual zones.  Then I created rules in the Elk that trigger based on the bypass states of the virtual zones.

For example if you want a hardwired output from the Vera via the Elk, create a virtual input zone 100 in the Elk, then create a scene in the Vera to bypass or unbypass virtual zone 100, then create rules in the Elk to turn the output on or off based on the bypass state of the virtual zone.  Clunky? yes.  But effective and better than waiting 6 months for the two way plugin and I don't have time to make one of my own...

I love the Vera + Elk combination once they are set up, but the behind the scenes BS required to make them work like they should gets old.  Every time I replace the batteries in my Yale locks, I have to reconfigure them a half dozen times before they work again, but once they are working again I love them...  :-\
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 06, 2013, 05:25:42 pm
FYI, for those interested, here's a link to a PDF which contains the ELK serial protocol:

http://www.scribd.com/doc/50097012/Elk-m1-Rs232-Protocol

This may or may not be the latest version of it.  For those that want task control, I posted under a garage door thread in General that tells you how to do this with the existing plugin by using a custom string and watching for it on Serial0 on the Elk.  Tasks can be configured to control outputs, so it would give you output control also.

Any chance you may have a link to this document that doesn't involve having to pay ten bucks? ;)
Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on January 06, 2013, 05:55:39 pm
FYI, for those interested, here's a link to a PDF which contains the ELK serial protocol:

http://www.scribd.com/doc/50097012/Elk-m1-Rs232-Protocol

This may or may not be the latest version of it.  For those that want task control, I posted under a garage door thread in General that tells you how to do this with the existing plugin by using a custom string and watching for it on Serial0 on the Elk.  Tasks can be configured to control outputs, so it would give you output control also.

Any chance you may have a link to this document that doesn't involve having to pay ten bucks? ;)
Thanks.

I just see the doc.  I don't even have an account there either.  No idea why it's asking you for $10...  Ah, I see.  You have to pay if you want to download it.  If you scroll to the bottom of that payment page, it tells you how to get a premium account for free.  Just create an account and upload some unique content and you're good to go.

This probably isn't the latest version of the doc though.  ELK used to have it available through their site, but I was unable to find it on there recently.  They changed the permissions on my account a couple of years ago when they did their site redesign, and I may not have permission to view it now.  If you email them and tell them that you want it to develop/fix an app that integrates with their system, they'll probably just send it to you.  Brad was the guy I always dealt with over there.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 06, 2013, 10:32:04 pm
Quixote - PM Me.

Electnixon - Kudos.  It may be clunky but if it works, it is a solution.  I think we can expand on your idea to cobble together a 2 way process for lights as well.  Here is what I am thinking.

Create a bank of dummy zones that corresponds to lights in elk.  Create rules in elk for each light to trip/bypass its corresponding dummy zone, ie when light 1 turns on then trip/bypass dummy input zone 101.  Then create scenes in vera, use dummy zone 101 as trigger....  When dummy 101 is tripped/bypassed, then turn on light X in vera. 

Then create a reciprocal scene in vera to notify elk.  i.e. use light x in vera as trigger.  when light x is turned off then restore/untrip/unbypass dummy zone 101.  Then a rule in elk, when dummy 101 becomes secure, then turn off light 1.  I believe the lights in elk are dumb switches that don't require feedback to change state.

It is a massively clunky, inelegant solution.  Hopefully someone has the know-how (I don't) and time to write a proper plugin but this should work.  I only have 15 devices so I could probably bang out all the scenes/rules in an hour or two.  This method should provide elk the ability to turn everything connected to vera on/off not just zwave lights/locks. 

You could setup some thermostat setpoints the same way to give elk the ability to adjust the temp.  Granted far from ideal and perhaps not really useful as you can probably do everything you need with vera scenes. The only thing I can think of would be to change the temp based on activity of something connected to elk that is not supported in vera.  When music comes on, turn off heat??  Or set it up so you can enter a code on the elk keypads to change temp to a setpoint or turn on ac.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 07, 2013, 12:01:34 pm
I'm afraid "Dummy Zones" are not visibile in VERA.  I wanted to do this, and had to resort to purchasing an Output expander, and Zone Expander, so I have the Outputs going right into the zones to give myself something that VERA can see....  If Vera could do what you're suggesting it would have saved me a lot of time and money... 
For example if ELK Determines that someone is Driving toward my home, it used Relay 19 to turn on for 1 second which trips Zone 28, and in VERA I have Zone 28 as "Vehicle Approaching". and if someone is walking toward my home, it turns on Relay 20 for 1 second to trip Zone 29 as "Someone Walking toward the home".  These are hardwired of course.

I have 1 scene in vera per @Signal16 suggestion of putting all Vera Alerts in one scene with different triggers all executing their own LUUP Code...

Would love to try a working version of @MCVFlorin alpha plugin, apparently it supported outputs, and maybe more. 

EDIT:

His link is now accessible!
This is also different from what I downloaded before and had problems with. 
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/67/tags/2.0_alpha_1?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/67/tags/2.0_alpha_1?old_path=%2F&format=zip)

UPDATE:
Am I installing / updating this correctly?  I simply upload the new files, then restart LUA correct?  Do you know if any further action is required for this?  The VERA is functional but hangs on "Starting ELK Plugin"... it's removed my old zones, and re-populated them, but nothing else....  I'm uploading the old LUA files and restoring now.  Hopefully someone else will have better results.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 07, 2013, 09:58:30 pm
Big,
Check here:  http://code.mios.com/trac/mios_elk-alarm-panel/wiki/WikiStart
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 08, 2013, 12:25:12 am
Big - Hate to say it but I think you may have a couple spare expanders. 

I hadn't tried what we have been discussing so it was all theory.  I read your post and decided to see what was possible.  I can get dummy zones visible in vera.  Here is what I did.

In ElkRP right click on Zones and select New Hardwired Zones.  Select the bank you want and they are added to ElkRP.  Then open the zone you want to make as a dummy, set it up as non-alarm and bypassable.  Send to controller.  Disconnect.

In vera simply reload and it should appear.  I had to reload twice so I could see the bypass option bit I was probably just being impatient as it takes a minute or so for vera to get the zones.  It shows up like a normal zone.

Next is to setup rules/scenes to see if 2 way is within reach and this frankenplugin works.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 08, 2013, 03:22:38 am
Made some progress.  Alas not a victory.

Short - Hold on to your expanders, Big....  I can turn a light on/off in vera and have that reflected in elk in (effective) real time.  I can not do it in reverse.

Long - Elk can bypass/unbypass zones based on light changes via rules.  Elk can turn on/off lights via rules based on bypass/unbypass status.  Vera can bypass and arm (unbypass I assume) zones via scenes.  Vera can NOT change lights based on bypass/unbypass status.  It can only trigger on trip status.  Is there any way to create a trigger based on bypass status?

To solve this, I attempted to use the combination switch plugin to hopefully make a trigger.  Another brick in the the clunk wall.  I created separate combination switches for when the virtual elk zone is bypassed and armed.  I am assuming "armed" means unbypassed as there is not an unbypassed option.  The vera gui shows arm or bypass so I went with it.  Maybe I am misunderstanding this.

Here is where I am hitting the wall.  Nothing worked until I entered a pin (scene-advanced) before arming/bypassing.  This allows elk to reflect the change when I turn on/off the light in vera.  Nothing I do in Elk is reflected in vera.  Also the combination switches do not change when I change the light in vera.  It remains as "unbypassed" meaning it is showing the light status as being on in both/either vera or elk.  Hopefully I am missing something simple in the logic (or my understanding) of the combo switch or the overlap is creating some loop.

I am also getting invalid pin when this occurs.  From other posts, this seems to be coming from Elk.  I am puzzled because elk is reflecting bypass changes and via rules is changing the light status accordingly.  So if a pin is necessary to change the bypass status, elk is satisfied.  Don't know elk would then report invalid pin. 

Electnixon - You posted pages ago about how each has its own bypass status?  Can you explain this further?  From the above, I suspect this means vera doesn't/can't read elk's bypass status..?  From what I did, vera can send elk a proper bypass status change but not vice versa.  So what is vera's status showing and, if separate, what purpose does it serve.

I understand this is off the back burner for MCV and mcvflorin is busy with other work.  I'm not a programmer so I can't take what is almost done and finish it but am willing to contribute in whatever capacity I can to get this working.  I think we can have a 2 way solution if elk outputs are working in the plugin.  How hard/far off is getting just the outputs up and running with the alpha plugin that is out there?  Elect/Signal/Big/Quixote can you guys program and understand how to finish mcvflorins code?  Anyone have suggestions how we can drag this across the finish line?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on January 09, 2013, 08:25:14 am
Shorty,
My experience has been the same as yours: 
+ I have no problem getting dummy zones to show up in Vera.
+ I can bypass and unbypass zones in the Elk from Vera.
+ I can create rules that turn lights on and off in the Elk based on the bypass state of the dummy zones.
- Vera UI generally doesn't update the bypass state of the zones.
- Vera doesn't allow you to trigger scenes based on the bypass status of zones.

I ALWAYS get "invalid PIN" displayed on the Vera UI, so that's nothing new.  If you get "PIN code required" then you forgot to put on in, but if it says invalid PIN, that usually means that your message went through.

So, for now, this appears to be a one way solution from Vera -> Elk (still of benefit).
Big517's solution is definitely a way to get messagese from Elk -> Vera.  Without proper reflection of bypass status in Vera it may be the only way.

I'm time limited in my ability to work on this - wife is on bedrest so I watch the kids when not working.  Otherwise I'd love to dig into the plugin.  Excuses, excuses.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 09, 2013, 09:04:26 am
My apologies for breaking the topic a bit, but I uploaded the files from the zip file I found at the last link provided, checked off "restart luup after upload", and reloaded UI5. I do not see any mention of the Elk anywhere except in the list of files.
Am I missing some vital step somewhere? Does it matter that my Vera is connected to a LAN with no Web access?
Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 09, 2013, 02:59:35 pm
Quixote, do you see it running in the Vera Status Screen "Starting ELK Plugin..."?  That is where mine was hung up.  Never did get it working...

I think the ONLY way to get ELK to communicate with VERA without additional wiring of outputs to inputs is creating the Dummy Zones like Shorty said, and create rules in ELK to "ARM  / DISARM" and create Triggers in VERA for each zone and using ARM / DISARM as triggers...  I believe you are only allowed 8 zones in total, but that should at least give us an extra 7 "triggers" that allow ELK to communicate to Vera.



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 09, 2013, 03:26:54 pm
There is no mention of the Elk anywhere in UI5, except on the developer page that lists the files on the Vera.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 09, 2013, 04:13:48 pm
Quixote,
Is this the first time you've installed the plugin at all? 

I'm not sure how to do this manually.  I just downloaded from the apps page which is the working version i'm currently running...  When I uploaded the files in the zip, it never worked right so maybe I'm doing it wrong also...
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 09, 2013, 05:33:06 pm

I think the ONLY way to get ELK to communicate with VERA without additional wiring of outputs to inputs is creating the Dummy Zones like Shorty said, and create rules in ELK to "ARM  / DISARM" and create Triggers in VERA for each zone and using ARM / DISARM as triggers...  I believe you are only allowed 8 zones in total, but that should at least give us an extra 7 "triggers" that allow ELK to communicate to Vera.

I think the hangup is using Arm/Disarm as vera triggers.  I didn't see that option.  I attempted a workaround using the combination switch but no luck.  Could be the combo switch but I think it is the inability Vera to see bypass/unbypass changes sent from ELK.

8 Zones in total?  Are you referring to ELK Areas not input zones?  I was referring to input zones.  As for input zones you can have up to 208 on the M1G.

(time passes, checked out ElkRP)

I think I got it.  If you are talking about areas it may work.  Elk can use arm/disarm status as triggers unlike bypass/unbypass.  So yes this could provide 7 working triggers but since there are variations of armed states we could get it up to 49 using away, stay, stay instant, night, night instant, vacation, and ready.  Does anyone know if the existing plugin works with multiple areas?  If so we may have a working solution.  Rube Goldberg eat your heart out.

I have been looking at mcvflorins code today.  I think it is written to read and read Elk's bypass status and update vera but is broken.  I think the "invalid pin" may be the problem.  On 3/13/12 mcvflorin said this (see page 5):

Yeah, I know why this happens. I'll add this fix on my TODO list.

I think this bug may cause the code that updates bypass to quit.  Can any of you take a look at L_ElkAlarmPanel1.lua and see if you can find/fix the invalid pin bug?  This may be our ship to Valhalla. 

MCVflorin - Can you provide any details as to the "invalid pin" issue?

One other thought I had was that maybe since bypass is sent in hex and bypass statuses are assigned D,E,F (for 13,14,15) this could be the problem.  Almost all other status are a single digit (1-9).  Maybe the code isn't translating the letter to a number or if it is it is only looking for a single digit (therefore 1).  Coincidentally 1=normal and my combo switch is stuck on unbypassed.  I know this may be remedial and taught on the first day of Lua school but the other statuses are updating properly using the same function and using the letter for bypass seems to be the unique difference.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 09, 2013, 05:39:19 pm
Quixote,
Is this the first time you've installed the plugin at all? 

I'm not sure how to do this manually.  I just downloaded from the apps page which is the working version i'm currently running...  When I uploaded the files in the zip, it never worked right so maybe I'm doing it wrong also...

Yes, first time installed. I Do not have web access at my apartment yet, and I'm not sure when I will since I'm having trouble budgeting myself since jumping back into school full-time. It would be nice if I could figure out how to install using the files from the link that I downloaded while at work.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on January 10, 2013, 08:16:58 am
I think this bug may cause the code that updates bypass to quit.  Can any of you take a look at L_ElkAlarmPanel1.lua and see if you can find/fix the invalid pin bug?  This may be our ship to Valhalla. 

MCVflorin - Can you provide any details as to the "invalid pin" issue?

IIRC this was fixed in version 1.01, but the way the plugin is written, it's not excluded that this bug will surface from time to time. After the bypass request is sent, the plugin reads the next 3 messages, expecting to receive either a ZB message, meaning that the bypass was successful, or a IC message, meaning that the PIN code is invalid. So if the expected response is not in the next 3 messages, no error will be shown, but the status won't be updated either.

That's why I went for a different approach in the 2.0 Alpha version, to make this more reliable.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 10, 2013, 11:36:44 am
Ok the 3 message monitoring may explain it.  Since I have rules in elk based on vera activity the response could get buried.  For example when elk sees the bypass message it will turn light1 on and change status of dummy zone.  These may send their own acknowledgements so the flood of data that elk echos could easily bury the ZB message. 

Is it possible for the plugin to constantly monitor elk instead of just the next 3 responses?  When I am testing I am connected to elk with vera and ekeypad so I can monitor status/light changes.  This is probably introducing a lot more communication/responses from ELK that is increasing the chances of burying things.

I'm still getting the "invalid pin" message though the status is correctly updated in ELK.  I'm using whatever version comes through when you go to "install apps" on UI5.  I have "Auto Update" checked.  Says Version 1.1.

Are you sure it has been fixed?  I ask because when you mentioned adding it to your TODO that was 10 months ago (3/12) and I think the code is 11 months old.  Am I not using the correct version?  Should the auto update bring me to that version?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 10, 2013, 12:47:18 pm
Mcvflorin,
Please provide me instructions on how to install the plugin on a vera that is on an isolated LAN. The instructions provided in the first link do not work for me.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on January 11, 2013, 11:54:37 am
@Shorty

The more communication there is, the higher the chance an error will occur. I had little communication from my panel when I developed the plugin, and never encountered this, but it was a wrong method of handling the communication.

It looks like I didn't remember correctly, and this bug was never fixed, but I think I planned to add the fix in version 2.0.

@Quixote

Use the UI4 instructions: http://code.mios.com/trac/mios_elk-alarm-panel/wiki/UI4 (http://code.mios.com/trac/mios_elk-alarm-panel/wiki/UI4)
replacing MiOS Developers with Apps / Develop Apps.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 11, 2013, 12:13:02 pm
MCVflorin  - thanks for the info.  I understand how the 3 message issue is preventing the status from being updated in vera.  Does this also create a false positive for the invalid pin?  Whenever I attempt to bypass a zone it goes through to elk but vera displays "invalid pin".  If vera does not receive the bypass acknowledgement does it assume the pin was invalid instead of actually receiving the IC command?  I'd love to do what I can to get this plugin working to its full potential but I don't have the skill to do it.  Can you be bribed to finish it or maybe just fix the bug so we can cobble the 2 way frankensolution together? 

How far away is the new plugin from being completed?  I know you are busy with other things but are we talking about half way there or 99% there.  Finishing it should be a real value add to mcv as it will make buying/adding vera to elk a superior solution to purchasing the elk expander and leviton controller. 

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 11, 2013, 04:30:56 pm
@Quixote

Use the UI4 instructions: http://code.mios.com/trac/mios_elk-alarm-panel/wiki/UI4 (http://code.mios.com/trac/mios_elk-alarm-panel/wiki/UI4)
replacing MiOS Developers with Apps / Develop Apps.

Thanks, McvFlorin. I can see the elk showing up now. Looks like I'm having the infinite startup loop bug, though.
It's progress, though!  I sure hope you guys figure this one out... It would be very cool to have this functionality in my scenes, especially since I have a task created to buzz me in to my apartment complex that I've been itching to use!

Edit: I believe the Vera is flooding my Elk because I can no longer send it commands with an Android app that I have been using regularly. UI5 hangs at "Elk alarm panel: starting up..." And I am unable to save my PIN. No tasks or outputs are displayed, but I do see zones.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: LightsOn on January 12, 2013, 08:38:04 am
Hi All,

Wonder if somebboys could offer me some guidence?

I have a home grown alarm system controled via either and RFID plugin or my key fob - all works.  What I have always wanted was a Key pad like the elk so a code is set somwhere.  type code into pannel to arm or disarm.

My questions:
- is Elk okay to use in the UK? If not any alternative
- will this plugin work for my basic need? (pin code to arm / disarm)
- is the plugin okay with v3 UI5 (i think so but clairty would be great)
- can I battery operate the elk?

Thank you all very much in advance.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mcvflorin on January 14, 2013, 05:54:26 am
How far away is the new plugin from being completed?  I know you are busy with other things but are we talking about half way there or 99% there.
The new version is pretty far from being completed. Rewriting most of the plugin takes a lot of time, and I get to work on it pretty rarely.

Edit: I believe the Vera is flooding my Elk because I can no longer send it commands with an Android app that I have been using regularly. UI5 hangs at "Elk alarm panel: starting up..." And I am unable to save my PIN. No tasks or outputs are displayed, but I do see zones.
I don't think that Vera is flooding the Elk. The plugin relies on updates from the Elk, so it does no polling. The messages sent to the panel during startup are sent only once, and there is no potentially infinite loop in the plugin.

- will this plugin work for my basic need? (pin code to arm / disarm)
The plugin offers only basic functionality, so it's OK for basic needs.

- is the plugin okay with v3 UI5 (i think so but clairty would be great)
Yes, you can install it from the MiOS Marketplace.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: LightsOn on January 14, 2013, 06:26:22 am
Hi mcvflorin,

Many thanks for your clarification.  One last question if I may - is the Elk mains powered? or can it be battery powered?  Also I asume I shall need to connect a wireless adapter of sorts to allow it to conect to my unit (UI5) [direct wired is not an option]

Many thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 14, 2013, 09:45:54 am
Thanks for the reply.
When I open UI5 in my browser, it says something like "starting up Elk", but doesn't continue. I can see zones, but I'm unable to save my PIN or control the elk. Has that something to do with my elk not responding? I've tried both the secure port and the insecure port with no difference that I noticed.
My Android app works reliably 99% of the time to control the panel.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 14, 2013, 06:44:34 pm

- is Elk okay to use in the UK? If not any alternative
- can I battery operate the elk?
http://cocoontech.com/forums/topic/20887-elk-m1-in-uk-can-elk-take-direct-dc-input/ (http://cocoontech.com/forums/topic/20887-elk-m1-in-uk-can-elk-take-direct-dc-input/)
Probably best to contact ELK.

To connect it to ELK you either need to connect it to the elks rs232 port via a usb-rs232 adapter on Vera or purchase an elk ethernet expander to put it on your lan.

LightsOn, what exactly are you looking to do?  Are you looking to completely replace your homegrown solution?  Your post kind of sounded like you want to keep things as is and just gain keypad functionality.Elk is an entire security system and would be an expensive add if this is the case.  There are generic keypads used for access control that can be programmed to accept a pin and close a relay.  You could then connect this relay to ELK and use that in a scene to "arm/disarm" your homegrown system. 

mcvflorin - Thanks for the (somewhat discouraging) info.  I know it takes a long time to write plugins and appreciate your work thus far.  Seems like the best option now is to continue focusing on a cobbled together solution until someone who knows Lua steps in and takes the reigns to finish things properly.

Is the alpha working?  Last I remember people were having problems getting things to load.  If not, is the current state the stopping point?


Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: LightsOn on January 15, 2013, 04:33:07 am
Hi Shorty,

Mnay thanks.

Yes I just seek a key pad so i can type in a code to arm, and again to disarm - as simple as that.  I know the pannel is an expensive way of doing things but seems the best option.  I have also looked at a DSC pannel such as the PK5500.  I want to put the pannel in a cuboard, have it powered by batter or mains, and have it wirelesly conect to Vera.  since I just seek a key pad as discribed it is proving a little difficault to check which route to go so all advice very very greatfuly recived.

Thanks again for forum support  :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 16, 2013, 10:23:52 am
@MCVFlorin,

Is there any editing we need to do to the files to make this work?  I too was experiencing the "Infinite loop" with the Alpha Plugin.  Im hoping to simply get the output function to work so vera can SEE the virtual outputs (if enabled in RP).  This would be the easy way to accomplish two way communications. 
Is it easier to seperate the plugin or create a new plugin to solely to view outputs?

Thanks,
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 18, 2013, 12:26:51 pm
@mcvflorin

I was just trying to understanding how the ELK M1 Alpha 2 was put together and have some questions as some of this does not make sense (I'm no expert): -

1. You are using both "ptr" and "rootPtr" to add children, are they different parents?
2. You are using multiple "luup.chdev.start" and "luup.chdev.sync" "ptr" my understanding this should only be done once for the same parent?
3. Did you have any timing issues when testing as some of the functions are not picking up the data coming back from the M1 at startup?
4. Does the "Output" functionality have an implementation as yet?

e.g.
The following: -
Code: [Select]
local function getPartitionStatuses()
local functionName = "getPartitionStatuses"
local errorMessage = "Failed to get partition statuses."

local status = sendIntercepted("as", functionName, errorMessage)
if (status) then
status = readResponse("AS", functionName, errorMessage)
return true
end

return false
 end
seems to work better than
Code: [Select]
local function getPartitionStatuses()
local functionName = "getPartitionStatuses"
local errorMessage = "Failed to get partition statuses."

local status = sendIntercepted("as", functionName, errorMessage)
if (status) then
return readResponse("AS", functionName, errorMessage)
end

return false
 end

I have managed to get the alpha working but have pruned some of the code to do so.

I would also like to help out but my coding skills are lacking and I don't want to stuff up the great work you have done so far :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: arkin on January 19, 2013, 07:01:50 pm
Playing with the alpha on a Elk with 16 HAI thermostats. Looks like something fails and loops in the plugin startup code when the thermostats are enumerated and the Vera device nodes are created.

Have not had time to debug, but wondering if anyone has seen this and/or fixed it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 19, 2013, 08:38:01 pm
Zoot and Arkin, good to see you guys on this thread.  We could use some help.

Zoot - How far did you get with the alpha?  How much pruning?  Any progress made with understanding how it was written and hopefully a path to finish?  Sounds like you can program.

Arkin - You certainly have ample thermostats....  I have not tried the alpha as the only system I have access to is live and mission critical.  There have been reports of bugs and a loop with the alpha since it came out so you are not alone. 

So far I don't know if anyone has determined what is or may be causing the bugs/loop.  What have you seen that leads you to believe thermostats are complicit?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 20, 2013, 04:07:53 am
All
Outputs working with files attached below if you have downloaded Alpha 2.

Due to the fact that I want to get one thing at a time working I have commented out the temperature stuff for now.

Please note that this is only a temp measure as I don't know what mcvflorin is planning.

cheers
John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 20, 2013, 04:26:11 am
Attached are the diff files if anyone is interested.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 20, 2013, 12:17:23 pm
Zoot.  Thanks for the work.  If the outputs are working then you may have beaten me to the punch.  I figured out another solution where elk/vera are sending http/rs232 commands to each other for 2 way communication.  There is just a limit of how many characters I can use and the http method of communication to vera exceeds this.  I have a function that will solve this but don't know how to implement it.  I assume it will have to be written into a plugin.  So right now I need to learn lua (no previous programming experience) and how to write a plugin.   

How does the current plugin works.  Does it connect to elk and listen all the time?  The zone status change is rather quick so it seems to be keeping the connection open.

Any chance you figured out the invalid pin/zone bypass bug?

Thanks for your work.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 20, 2013, 12:23:37 pm
John- Thank you very much for your attention to this issue. It seems that MCV has their priorities a bit skewed towards trying to build new plugins before completing the projects that they've already started.
You may be our knight in shining armor. lol
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 20, 2013, 08:16:50 pm
@shorty
Most plugins use luup.io.open this sets up a permanent connection to listen on. As the M1 sends out status changes for zones vera does not need to poll and it does react fairly quickly (quicker than my plugin I am working on  :) ).

The pin/zone bypass bug is not on my radar at the moment it will take me a fair while to get my head around all the code.

If you want to see the messages between the devices than set "DebugMode" to "true" in the advanced tab on the "Elk Alarm Panel" then you will see a lot more data in the log.

@Quixote
 :) Thanks, but like most people it is a self interest thing, specially the outputs.

Cheers

John

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 21, 2013, 04:26:44 am
I have added the temp sensors back in but I don't have anything to test on.

Attached is the file fir Alpha 2 if anyone wants give it a go and let me know if it works.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on January 22, 2013, 12:53:24 am
I have added the temp sensors back in but I don't have anything to test on.

Attached is the file fir Alpha 2 if anyone wants give it a go and let me know if it works.

regards

John

@zoot1612

 I loaded your updated files with the Alpha 2 plugin on my spare vera 2 running UI5 .408. I am getting the zones like ver 1 plugin and I am getting the keypad and zone temperatures showing up. I am not showing my outputs though. Looking at my advanced tab of the panel device it is not showing all the options like your screen shot. I posted mine to see if you have any ideas. I did try uploading all the files again and nothing changed.

Thanks
John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 22, 2013, 04:33:33 am
@jwiz
Attached new version.

Sorry about that, I am making changes on the fly as I started out playing. Now I might have to take it more seriously and put some tracking infrastructure in place.

Then on top of that I posted the wrong version.

 :-[ :-[
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 24, 2013, 10:36:07 am
So this should be working like the plugin posted on the app store, with the addition of Output control, correct?  Does it still show zone status?   
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 24, 2013, 05:36:33 pm
@big517
Unless I have create other problems in the process it should be the same. If you are concerned about running alpha/beta software I suggest you avoid it.

regards

John

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 24, 2013, 11:15:37 pm
For anyone that does not mind things breaking or broken.

Note:- Most of this work is levered off the existing work of mcvflorin. I have made minimum changes to his code and hopefully alarm panel should work as per normal (no promises)

Download files
D_ElkAlarmPanel1.json
D_ElkAlarmPanel1.xml
D_ElkAlarmPartition1.json
D_ElkAlarmPartition1.xml
S_ElkAlarmPanel1.xml

from here: -
http://code.mios.com/trac/mios_elk-alarm-panel/browser/tags/2.0_alpha_1

Download attached files
I_ElkAlarmPanel1.xml
L_ElkAlarmPanel1.lua

Changes

Outputs:-
In parent device add comma seperated list under advanced tab field "OutputControls". (restart)

This creates a binary light device for each output, under advanced tab for each output field "timeOutputActive" can be used to switch off output after set period (sec) default is permanent on.

Output name is automatically updated from alarm panel.

Broken:?

Tasks:-
In parent device add comma seperated list under advanced tab field "Tasks". (restart)

This creates a binary light device for each task, under advanced tab for each task field ?LastUpdate? is updated every time a task is run.
Task  name is automatically updated from alarm panel.

Broken:  Currently once a task binary light is activated it stays on. API indicates when a task is activated but there is no way to indicate a completed task (from what I can see). May add timer to switch off after set period.

Temperature Sensor (Zone): -

Automatically detected by zone implementation.

Broken: Temperature Sensor (Keypad) ? Currently disabled as had to change temp sensor zone implementation as the device was appearing twice, once with zone implementation than temperature implementation.

Broken: Thermostat ? Currently disabled as implementation was creating 16 thermostats whether I wanted them or not.

Auto detection of zone type: -
Added due to temp sensor zones. Currently the following are detected from ELK/NESS M1 and translated into zone type: -

?1?    01 = Burglar Entry/Exit 1          "D_DoorSensor1.xml"
?2?    02 = Burglar Entry/Exit 2          "D_DoorSensor1.xml"
?:?    10 = Fire Alarm                    "D_SmokeSensor1.xml"
?Q?    33 = Temperature                   "D_TemperatureSensor1.xml"



All others default to "D_MotionSensor1.xml"

Some may disagree with this :)


Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 25, 2013, 11:44:54 am
Bully Zoot!  Thanks for picking up the ball and moving it forward.

I am working on my own plugin that will (should) provide lighting control elk and vera.  It can also work with anything else connected to vera (locks, AV, etc) as well as scenes.  You kind of beat me to the punch as your fix now provides the same using outputs and scenes. 

This is my first real plugin and the code will likely show it.  Maybe when I am done someone can help me clean it up and we can consolidate the 2 plugins.  It should make vera the real time zwave controller for elk.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 25, 2013, 11:54:02 am
Great to see some action for sure!  I'll try the beta that Zoot fixed up asap.

Thanks everyone.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on January 26, 2013, 04:35:01 pm
I followed the directions and I'm still stuck on the "Starting up Elk" status.
Is this plugin dependent on an internet connection for some reason?
Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 27, 2013, 11:20:03 am
Plugin is stable, but not showing Outputs on mine either.  I'm going to try the link from previous post #212 hoping it will work.

No Luck, Re-downloaded and uploaded the recent files from Trunk, and Zoot's 2 files...  No outputs :(
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on January 27, 2013, 01:00:06 pm
Plugin is stable, but not showing Outputs on mine either.  I'm going to try the link from previous post #212 hoping it will work.

No Luck, Re-downloaded and uploaded the recent files from Trunk, and Zoot's 2 files...  No outputs :(

I had to manually add the outputs under the advanced tab so they would show up. I have 15 and 16 setup right now

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 27, 2013, 01:55:33 pm
So in outputcontrol i can type 1,2,3 for the first 3 outputs off elk main board?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on January 27, 2013, 02:59:39 pm
So in outputcontrol i can type 1,2,3 for the first 3 outputs off elk main board?

Yes if you add output 1 and turn turn it on it will activate the siren of the speaker output. I did have to reload a second time for it to generate the on and off buttons in the UI

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 27, 2013, 08:47:48 pm
So in outputcontrol i can type 1,2,3 for the first 3 outputs off elk main board?

Yes if you add output 1 and turn turn it on it will activate the siren of the speaker output. I did have to reload a second time for it to generate the on and off buttons in the UI

John

Yes, and turning zone 1 OFF with the plugin doesn't turn the alarm off either :)

Took some time, but they showed up.. thanks for the tips.  Anyone want to buy an expander? ;)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 28, 2013, 05:13:54 am
Yes to get both tasks and outputs working you have to add a comma delimited device list as per attachment.

For outputs once device is created you can add a timer for the amount of time output is on.


Excuse my diagrams :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 28, 2013, 06:34:58 am
Hmmm... not updating as it should, i'm going to update firmware to 5.0.10 with you guys and see if that does the trick...

UPDATE:
Still not updating..  I click on the Zone 1 and Zone 2 to update the PIN to see if that's the problem, but it says "Device Not Ready".  Any other advice on this?  Took an entire day for output 1 show up yesterday.

"Elk Alarm Panel : starting up..."
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 28, 2013, 07:40:52 am
@big517
Set debugmode to 1 for the elk plugin and send/watch the log output.

Found a missing variable, try the attached. It works from creating a new device so see no reason why it should not work (I've said that before).

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 28, 2013, 08:44:37 am
How do I send it to you?  Is it stored in Vera?  I have winscp, I would just need to know where/what file to send.

Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 28, 2013, 08:51:21 am
@big517
First try file attached in previous post, I found a missing variable that may cause some issues.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 28, 2013, 08:53:43 am
OK, trying now...
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 28, 2013, 09:02:01 am
@big517
Try putty with ssh.

login with username:root and your password (bottom of Vera unless it has been changed)

after successful login type in: -

tail -f /var/log/cmh/LuaUPnP.log

for more info, filtering etc. see here:-
http://wiki.micasaverde.com/index.php/Luup_Debugging
 (http://wiki.micasaverde.com/index.php/Luup_Debugging)

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 28, 2013, 09:10:05 am
Thanks, here it is .. ugg file is too large... here is a snippet from a PDF of copying the first minute
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 28, 2013, 09:39:20 am
@big517
Change your output list from 1,3,32 to 3,32

Code is not picking up output 1.


Fix attached for that issue anyway.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 28, 2013, 09:48:44 am
What if I do not want Output 1 any more?  Will deleting it fix the problem?  I'll try that first.  then change the outputs.

UPDATE:
Deleting the output FIXED IT!  Now the other 2 outputs are showing...  Next test is to see if the Outputs >68 can be seen.

I did not download the attachement in your last post... What does that do? 

You are the man Zoot!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 28, 2013, 10:14:12 am
With attachment in post in http://forum.micasaverde.com/index.php/topic,6916.msg100183.html#msg100183 (http://forum.micasaverde.com/index.php/topic,6916.msg100183.html#msg100183) you should be able to add in "Output 1" again.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 28, 2013, 03:33:02 pm
The TimeOutputActive variable seems to be in increments of 10 seconds, so "1" is really staying on for 10 seconds...  Is there a way to specify 4 seconds for example?

I also noticed the Output will remain ON it's last known status, is there no way to poll it?

Thanks,?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 28, 2013, 06:41:06 pm
TimeOutputActive padding was incorrect, will fix in upcoming version so that it increments in seconds.

line 1370
activeSeconds = (luup.devices[device].id:match("^elk_output_")) and padLeft(activeSeconds,5) or ""

Any change to output is reported by the Elk API. The default action for the plugin is to set output on and leave it on.

From Elk documentation
Quote
TTTTT is the number of seconds the output will be active. A value of 0 will stay on until commanded to turn off. Range: 0 to 65535

If you want an output to turn off TimeOutputActive should be set for the required time, when the output is turned off the plugin should automatically change the state.

There is a command for toggle in api but it has not been implemented.

Also trying to avoid polling as much as possible.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 28, 2013, 06:59:23 pm
Awesome, you just bridged the gap for me on tying my automation with my hard-wired components.  I owe you.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rdotten on January 28, 2013, 10:04:01 pm
The one feature missing for me, is being able to use my kwikset lock to disarm my alarm. Can anyone point me in he right direction to work on this?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on January 29, 2013, 12:29:42 am
rdotten - Can it be done with a scene?

If not I'm working on a plugin (slowly as I am learning lua through trial and error to make it) that will introduce the locks in vera to elk with 2 way real time communication/control.  When (small if) Im done you can write a rule in elk to disarm when door becomes unlocked.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 29, 2013, 12:40:35 am
The M1 part should be able to be done from scene with "RequestArmMode" under the advanced scene tab. As I don't have a kwickset not sure but check under triggers to see what is available.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jwiz on January 29, 2013, 12:53:48 am
The M1 part should be able to be done from scene with "RequestArmMode" under the advanced scene tab. As I don't have a kwickset not sure but check under triggers to see what is available.

It does work with a Pin Code enter as a trigger to disarm the Elk partition on my kwikset

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on January 29, 2013, 06:16:14 am
The trigger for pin code is a text box, you do not put the code in there, instead you put the number the code is saved as. For example if you have 2 codes saved on the lock device you would choose "1" for the first code saved and "2" for the second code. You can also put "*" for any working code.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rdotten on January 29, 2013, 06:52:32 am
Those are quick responses, I will look at it today.
If I can make this work, I'm going to be a happy camper. :)
Thanks,
Rob
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rdotten on January 29, 2013, 10:28:25 am
I found it, I was looking at the panel device and not the partion....
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 01, 2013, 12:40:07 pm
Here we are a few days later after installing plugin, no problems at all.  Great work Zoot!
I know your working on getting thermostats up and running.

Looking forward to the next update :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 01, 2013, 04:17:15 pm
Here we are a few days later after installing plugin, no problems at all.  Great work Zoot!
I know your working on getting thermostats up and running.

Looking forward to the next update :)

So is the plugin in a state now where it can be uploaded to the app store thing as Elk plugin v2.0?

What happens to people that already have a bunch of stuff configured using the old plugin?  Does it change deviceID's or are there incompatibilities?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 01, 2013, 04:52:51 pm

Quote
What happens to people that already have a bunch of stuff configured using the old plugin?  Does it change deviceID's or are there incompatibilities?

It did not change anything in my setup.  Only added the outputs :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 01, 2013, 06:20:52 pm
Mine does not work. I'll give it another try this weekend. I'm assuming that the files are automatically overwritten when I upload them manually again?

Also, will this version enable the use of tasks in scenes?

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 02, 2013, 05:01:41 am
@Quixote
Yes files should be overwritten.

As for existing setups due to how many different setups there are I can't guarantee that it will work straight off. If you are having issues upload your log files with debug on and I or someone else can have a look.

Both outputs and tasks are working as are temp sensors (not sure about keypad sensors as I don't have any). Looking at thermostats but slowed down substantially. Outputs and tasks are created as binary lights so basically functionality is available for scenes.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 02, 2013, 03:05:47 pm
Thanks again, Zoot. I'll give it another shot.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: davehaub on February 02, 2013, 04:43:33 pm
Zoot: Your modifications are working well for me. Thanks!

FYI - On my system (with two keypads) the Elk Alarm Panel - advanced tab - Currenttemperature entry varies between the temperature value of keypad 1 or keypad 2 depending on when the tab is accessed.

Update: I now can see both keypads temperature correctly displayed in the device tab. Not sure when they showed up.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 03, 2013, 01:53:47 am
Hi all
Update
Now working: -
Thermostats, please note I do not have any myself so not 100% sure of functionality. I just know devices are created and all buttons are functional.

Currently I don't know if it is possible to add individual thermostats automatically so I have used the CSV method in parent to specify which ones to create (same as outputs and tasks). You will need to download the attached two files.

Another issue has shown up that may cause some headache. This is the fact that if any messages are received from zones or other elk devices before it has completed setup it will fail (kept very still while vera starts up). I will look into this but it may take time. FIXED

In adding tasks I accidentally removed the off functionality for Outputs. This has now been fixed.
Also fixed clear button on parent device this should now work

Also note that mcvflorin has re-implemented PIN code storage etc., so it may be worth testing out.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 03, 2013, 05:53:43 am
Thanks again! I'm glad you fixed that bug because I would never be able to reboot. I have sensors in every room including baths!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 05, 2013, 09:14:00 am
Hi all
Thanks to Florin I have added the update to a branch here: -

https://code.mios.com/trac/mios_elk-alarm-panel/browser#branches/2.0_changes (https://code.mios.com/trac/mios_elk-alarm-panel/browser#branches/2.0_changes)

I will not be doing much work on it for now except fixes as I would like to see how the changes go before moving on.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 05, 2013, 09:42:42 am
Can you please outline how to add a task again? I added the digit 1 under the task field and my alarm panel device is apparently removed. I need to add it again each time. Otherwise I am able to add, arm and disarm my system.

Thanks again for making this plugin come to fruition!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 05, 2013, 10:01:37 am
@Quixote
Sound's like you are doing the right thing so not sure what is happening.

Go to the advanced tab in the parent device (Elk Alarm Panel in my case) and in the tasks input box put your comma delimited task numbers then save.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 05, 2013, 10:12:38 am
Also make sure you download the entire Trunk and re-upload it.  I had the same prob then that fixed it...
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 05, 2013, 05:40:36 pm
I have re-installed the plugin multiple times and added deleted devices and it works OK but I can't cover all user cases so there will be issues. A last resort measure is to delete device completely and start from scratch, that way you can blame me for sure :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 05, 2013, 06:38:13 pm
I think something is up because I downloaded the new trunk and now my motion sensors are not showing up.  I also dont have an option to put a PIN in like I used to...
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 05, 2013, 09:33:46 pm
I just download everything seems to work fine.

You need to download this branch:-
http://code.mios.com/trac/mios_elk-alarm-panel/browser#branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser#branches/2.0_changes) the only changes are in "I_ElkAlarmPanel1.xml" and "L_ElkAlarmPanel1.lua"

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 06, 2013, 05:53:16 am
Yea I fixed it by going back in the thread and downloading a prev. Version of those files. Im back in action again.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 06, 2013, 07:10:03 pm
Got everything working! Thanks again, Zoot. MCV should be paying you!
Now to play with scenes that use the Elk and figure out the Web-call syntax...
 ;D
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 06, 2013, 07:15:15 pm
What is web-call?
 ???
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 06, 2013, 07:39:32 pm
When you type an address in your browser and trigger something on the Vera.

Edit: I think the correct terminology would be "http gets", outlined here:
http://wiki.micasaverde.com/index.php/UI_Simple
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 07, 2013, 05:51:38 am
When you type an address in your browser and trigger something on the Vera.

Edit: I think the correct terminology would be "http gets", outlined here:
http://wiki.micasaverde.com/index.php/UI_Simple

Out of curiosity, what is it that you are looking to do with this method and elk? Are you planning to call vera scenes from the elk rules?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 07, 2013, 03:27:53 pm
For starters, I will be setting up scenes that will accomplish certain tasks, such as buzzing my apartment complex front door open when I arrive home, disarming the alarm and unlocking the keyless entry system that I'm setting up on my front door.

Also, I'll be setting up my own user interface, using the new (and incredible, I might add!) Andre Remote app for Android. I can create fully customized menus with my own graphics if I choose to. I've already played with it a bit and was able to toggle a light with a simple button.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on February 07, 2013, 05:46:51 pm
Quixote - are you trying to send commands from elk to vera or vera to elk? 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 07, 2013, 05:55:07 pm
I want to send commands to Vera, for example: http://192.168.0.123:3480/data_request?id=lu_action&DeviceNum=1&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1
Which will in turn trigger tasks or change the arm state of the panel. So far I tested a task and it works flawlessly. Now I need to figure out how to arm and disarm the system.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on February 07, 2013, 06:16:07 pm
So you got elk to vera working and tested? 

Arm/Disarm the sytems from Vera?  I think the only way to do this is with a scene that first sets the pin, then arms/disarms the system.

Have you tried sending an ascii string fro vera to elk to  arm/disarm?  Or use zoots updated plugin to set a dummy output, then rule in elk to arm?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 07, 2013, 06:54:57 pm
The communication between the Vera and the Elk is bidirectional. UI5 is updated immediately when I arm/disarm the system by other means.
The PIN is stored on the Vera, so there is no need to enter it each time. I can arm/disarm with a simple button press in UI5.
I'm pretty sure that I just need the correct syntax to use an http get in order to trigger the various arming modes.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on February 07, 2013, 09:25:19 pm
Quix - I'm lost.  What are you trying to do? 

Sounds like you want to send a command from elk to vera that runs a scene them arms/disarms elk?  Since this is originating from elk, why don't you just arm/disarm directly?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 07, 2013, 09:34:37 pm
Check my reply 264 & 266 once more. ;)
My objective is to build my own interface in Andre Remote for Android with buttons that use "http get" commands directed to the Vera, which in turn triggers tasks and changes arming states on the Elk.
The reason for using the Vera is because I am not capable of writing my own Elk app, nevermind the complexities of communicating over the Web from my phone to my alarm panel!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on February 07, 2013, 10:00:57 pm
Sorry when I read your post I thought you were working on 2 independent things.  The word also led me astray.

First, are you stuck?  I replied thinking you wanted help with elk-vera communication (wrong) and http requests (not sure).  Now I'm questioning if you were even seeking advice in the first place.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 07, 2013, 10:07:26 pm
Sorry if I haven't explained myself clearly. I was, in fact, looking for help. I can get the Vera to trigger a task using a link similar to the one that I posted, but that is fairly simple in that I only needed to look at the advanced properties of the task to see the device number, then replace it in the link, as well as the LAN address of my Vera.
Now I'm wondering how to trigger the disarm and various arming modes of the Elk (eg.- stay instant).
Thanks for trying to help out.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 07, 2013, 10:47:11 pm
If I understand you correctly you can use Firefox with the debug ad on (Firebug) and look at the data being sent.

See below with some redaction :)
Code: [Select]
GET /"lots of stuff here that you shouldn't see"/data_request&id=lu_action&output_format=json&DeviceNum=133&serviceId=urn:micasaverde-com:serviceId:AlarmPartition2&action=RequestArmMode&State=Disarmed&PINCode="Shouldn't see this either"&rand=0.12654705533725508 HTTP/1.1
Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Shorty on February 07, 2013, 11:26:06 pm
Alright Quix, let's kill this puppy once and for all.  I think we are on completely different pages.  I need footing. 

Define the word "task" as used below and on previous pages? 
Quote
Sorry if I haven't explained myself clearly. I was, in fact, looking for help. I can get the Vera to trigger a task using a link similar to the one that I posted, but that is fairly simple in that I only needed to look at the advanced properties of the task to see the device number, then replace it in the link, as well as the LAN address of my Vera.

I define "task" as those things that are setup in ELK via ELK RP.  I believe you used the same definition in your discussing with zoot a page ago.  You guys resolved the issue and the next topic brought on this cluster...

I know suspect you are using "task" to either mean a vera scene or as a generic reference to any action you want done.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 08, 2013, 12:34:51 am
Nope.
Task as in Elk task, as in set of instructions set up on the alarm panel. In this case, using outputs.

Zoot, I'll look at your pointer and see what I can find. Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 08, 2013, 11:56:43 pm
I ended up just using tasks with the Elk to get around this problem and it works just as well. Thanks to everyone that tried to assist me. I just wish that I could add delays in the elk programming! :/
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 09, 2013, 01:03:24 am
Does the new version of the plugin actually update the ChimeEnabled variable when the chime on the Elk partitions/areas is turned on or off?  The "official" version does not update, even though the variable is there on Vera.  It's always set to "1".
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 09, 2013, 05:14:45 am
Certainly has the ability at startup to check and update the Chime either "0" or "1".

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 09, 2013, 05:27:31 am
@quixote, would you mind giving an example or two on what you are doing with tasks. I have never figured out what tasks do and what I could potentially use it for.

Btw to create a delay in elk programming use a virtual output like "output 199"
So instead of the conventional pause or delay you do this
Code... Up until you need the pause
THEN turn output199 on for Xseconds
Start a new whenever rule to continue after delay
WHENEVER output199 turns off (delay is over)
AND/THEN continue your rule/code



Hope that helps.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 10, 2013, 12:44:31 am
Thanks for the tip. I originally tried using a virtual output as a delay, but missed the part that uses a second whenever rule. That should work nicely.
Basically you create a task in Elk RP, name it, then make a rule that starts with "whenever task X is activated, then...". So in my first task I have set it up to close an output for 1 second (connected to the lobby door buzzer) and then automatically disarm the system. I will probably also work in lighting at some point.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 10, 2013, 05:29:52 am
So tasks are kind of like shortcuts for the rules?
You define an action or group of actions as a task then execute the task via rules?

Glad my advice helped!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on February 10, 2013, 12:50:46 pm
The task itself does nothing. All you are doing is executing the task. The rules are what do the work. You are just setting up a bunch of rules to trigger whenever the task is executed.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 12, 2013, 09:20:30 am
New release here: -

http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes)

Partial fix
Fixed system trouble's not reporting correctly, still can't get luup.task to act the way I think it should so gave up and added a new tab for trouble reports. This includes a new javascript file to create the tab. The easiest way would be to download the zip file which contains all the files and update the Vera with those.

http://code.mios.com/trac/mios_elk-alarm-panel/changeset/76/branches/2.0_changes?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/76/branches/2.0_changes?old_path=%2F&format=zip)

The actual tab doesn't add any functionality just stores trouble reports if they are active. Please note this is my first javascript so it will contain errors.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 14, 2013, 01:24:37 pm
Certainly has the ability at startup to check and update the Chime either "0" or "1".

regards

John

But, it won't update it as the chime status is changed on the Elk? 

Actually, I found a problem with this anyway.  If the chime status is changed through the keypad on the Elk, some data is sent over the serial link to indicate that the chime status was changed.  However...  if the chime status was changed by a home automation rule on the Elk, then nothing is sent over the serial link to indicate the state change.  In order to cover both of these scenarios with the Elk plugin, it would have to poll for status on a repeating basis.

What I'm doing now is a bit convoluted, but it covers both scenarios.  I put in a rule on the elk to open/close a relay based on the chime status, then I physically wired the relay to one of the zone inputs.  On the vera, I use that zone input to figure out my chime status.  Works great.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 14, 2013, 03:17:08 pm
@signal15, what was the issue with Chime status?  Why are you turning it on and off so often?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 14, 2013, 04:46:50 pm
@signal15, what was the issue with Chime status?  Why are you turning it on and off so often?

I turn it off when the kids go down for a nap, and when they go to bed at night.  Otherwise it wakes them up.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 14, 2013, 05:51:38 pm
@signal15, what was the issue with Chime status?  Why are you turning it on and off so often?

I turn it off when the kids go down for a nap, and when they go to bed at night.  Otherwise it wakes them up.

Whats wrong with leaving it off all the time?  Maybe only have it speak out the important stuff, or leave that to VeraAlerts.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 14, 2013, 06:13:28 pm
@signal15, what was the issue with Chime status?  Why are you turning it on and off so often?

I turn it off when the kids go down for a nap, and when they go to bed at night.  Otherwise it wakes them up.

Whats wrong with leaving it off all the time?  Maybe only have it speak out the important stuff, or leave that to VeraAlerts.

I want it on.  I want to know if the kids open the front door or the garage door.  We've got ponds all over around here, and I don't want them wandering across the street into the water and drowning. 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 14, 2013, 07:05:29 pm
@signal15
Nothing to do with usage scenario's but currently trying to avoid adding high freq polling. What sort of granularity would you be looking at?

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 14, 2013, 08:53:32 pm
@signal15
Nothing to do with usage scenario's but currently trying to avoid adding high freq polling. What sort of granularity would you be looking at?

regards

John

So as I said above, if the chime button on the keypad is pressed, no need for polling.  But, in my testing, when an automation rule fired, it didn't appear to put anything useful on the wire.  I could be wrong. 

If polling is required, every couple minutes would be sufficient.  My current rule turns off the chime when the nursery door is closed for more than one minute.  And it turns it back on when it's opened.

Also keep in mind that the chime status is per area/partition.  It's not global.  I have 4 areas, but area 1 is the only one that matters to me as far as the chime goes.  The other areas WILL matter to me once my deck is on, since I will want the chime for outdoor sensors to turn on when I arm the alarm at night to alert me to someone walking on the deck without actually setting off the alarm.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 14, 2013, 10:11:12 pm
@signal15
Try the attached, it is only local and hasn't been tested yet but may cover your usage scenario.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 14, 2013, 11:46:27 pm
@signal15
Try the attached, it is only local and hasn't been tested yet but may cover your usage scenario.

regards

John

Thanks!  I will not be able to test until Sunday at the earliest.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 15, 2013, 11:28:04 pm
New release here: -

http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes)

Partial fix
Fixed system trouble's not reporting correctly, still can't get luup.task to act the way I think it should so gave up and added a new tab for trouble reports. This includes a new javascript file to create the tab. The easiest way would be to download the zip file which contains all the files and update the Vera with those.

http://code.mios.com/trac/mios_elk-alarm-panel/changeset/76/branches/2.0_changes?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/76/branches/2.0_changes?old_path=%2F&format=zip)

The actual tab doesn't add any functionality just stores trouble reports if they are active. Please note this is my first javascript so it will contain errors.

regards

John

So I just grabbed this (the zip), unzipped it, and uploaded all the files in the zip via the Develop Apps page.  Restarted LUUP.  And now it's hanging with a message at the top that says "Elk Alarm Panel : starting up...".  I tried refreshing the UI5 page also, and that message is still at the top.  None of my outputs are showing up either.

I was using the version from the store up until now.  And, I was using it via IP to the M1XEP (by putting something like this in the "ip" field: 10.2.2.2:2101).  Does this new version support going over the network?  It appears that it does, as I fired up tcpdump and I see a lot of packets going back and forth between Vera and the Elk.

Here are the tail end of the logs from the last LUUP restart I did.  I X'd out my IP in the one line, but it's there:
Code: [Select]
50 02/15/13 22:31:27.109 luup_log:6: Elk M1 Panel Plugin version 1.5. <0x2b6a1680>
50 02/15/13 22:31:27.110 luup_log:6: (ElkPlugin::getDebugMode) Debug mode disabled. <0x2b6a1680>
50 02/15/13 22:31:27.121 luup_log:6: (ElkPlugin::checkConnectionType) ipAddress = X.X.X.X, port = 2101. <0x2b6a1680>
06 02/15/13 22:31:27.222 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 variable: OutputControls was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b6a1680>
50 02/15/13 22:31:27.222 luup_log:6: (ElkPlu  gin::getOutputs) No output controls. <0x2b6a1680>
06 02/15/13 22:31:27.222 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 variable: Tasks was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b6a1680>
50 02/15/13 22:31:27.223 luup_log:6: (ElkPlugin::getTasks) No tasks specified. <0x2b6a1680>
06 02/15/13 22:31:27.223 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 variable: Thermostats was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b6a1680>
50 02/15/13 22:31:27.223 luup_log:6: (ElkPlugin::parseThermostats) No thermostats specified. <0x2b6a1680>
50 02/15/13 22:31:27.304 luup_log:6: (ElkPlugin) M1 version 5.2.10 <0x2b6a1680>
06 02/15/13 22:31:27.304 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 variable: FirmwareVersion was: 5.2.10 now: 5.2.10 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b6a1680>
01 02/15/13 22:31:27.456 LuaInterface::CallFunction_Startup-1 device 6 function elkStartup failed [string "-- TODO..."]:478: attempt to index field '?' (a nil value) <0x2b6a1680>
01 02/15/13 22:31:27.456 LuImplementation::StartLua running startup code for 6 I_ElkAlarmPanel1.xml failed <0x2b6a1680>

Looks like this is the offending code.  Line 478 is the last line before all the "end" statements:
Code: [Select]
  -- Get the device IDs for the temperature sensors.
  for dev, attr in pairs(luup.devices) do
    if (attr.device_num_parent == lug_device) then
      si = attr.id:match("elk_temp_(%d+)") or attr.id:match("elk_keypad_sensor_(%d+)")
      if (si ~= nil) then
        si = ("elk_temp_" == attr.id:match("^elk_temp_")) and (tonumber(si, 10)+16) or (tonumber(si, 10))
          g_tempSensors[si].devId = dev
      end
    end
  end
end

Because it looks like it might be related to discovery of my temp sensors on the elk, I went into the Elk and set all of my temp zones to "00 - Disabled".  That apparently had no effect as I got the same error above when I restarted LUUP.

I just turned on debugging.  Here are the errors related to the Elk stuff with a couple of preceding lines:
Code: [Select]
50 02/15/13 23:54:06.446 luup_log:6: (ElkPlugin::checkMessage) length=102(0x66), message type=LW, data='000000000000000000000000000000000000000000000000000000131000000000000000000000000000000000000000', misc=00, checksum=8C __LEAK__ this:131072 start:131072 to 0xd29000 <0x2b999680>
50 02/15/13 23:54:06.447 luup_log:6: (ElkPlugin::handlerFunc Message type description: Zone Temperature and Keypad Temperature <0x2b999680>
01 02/15/13 23:54:06.449 LuaInterface::CallFunction_Startup-1 device 6 function elkStartup failed [string "-- TODO..."]:478: attempt to index field '?' (a nil value) <0x2b999680>
01 02/15/13 23:54:06.450 LuImplementation::StartLua running startup code for 6 I_ElkAlarmPanel1.xml failed <0x2b999680>
...
...
50 02/15/13 23:54:52.871 luup_log:6: (ElkPlugin::checkMessage) length=10(0x0A), message type=CC, data='0610', misc=00, checksum=E2 <0x2e799680>
50 02/15/13 23:54:52.872 luup_log:6: (ElkPlugin::handlerFunc Message type description: Output Change Update <0x2e799680>
50 02/15/13 23:54:52.872 luup_log:6: (ElkPlugin::updateOutput) Output 061 is Off. <0x2e799680>
01 02/15/13 23:54:52.872 LuaInterface::CallFunction-2 lu_incoming failed [string "-- TODO..."]:453: attempt to index field '?' (a nil value) <0x2e799680>

Thoughts?  Should I hit the Clear button on my Elk device in vera, or will that reset all of my device ID's?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 16, 2013, 06:57:26 am
I can confirm that connection over network works.  I'm The meantime try uploading his previous release from a a few posts back.  It didn't break anything for me.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 16, 2013, 02:07:01 pm
I can confirm that connection over network works.  I'm The meantime try uploading his previous release from a a few posts back.  It didn't break anything for me.

Same problem, same errors.

Could this have something to do with it?  I'm running 1.5.4xx (the latest).
http://forum.micasaverde.com/index.php/topic,8661
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 16, 2013, 07:24:13 pm
@signal15
I know what the issue is just not sure how to fix it. The simple fix is to remove the offending device from the Vera (not parent just sensor) and let it get re-created.


edit: It is not a bug it is more of a change in implementation that has broken some devices


edit: If you remove a device from outputs/tasks/thermostats but not from the Vera it will cause this issue, this is a bug and will need to be looked at. Currently the way around this is to remove the device from the vera as well as the list itself.

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 16, 2013, 09:07:20 pm
OK, so I have fixed the scenario where if a device is removed from the CSV  (Outputs,Tasks and Thermostats) and not from the Vera. File attached.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 16, 2013, 11:29:35 pm
OK, so I have fixed the scenario where if a device is removed from the CSV  (Outputs,Tasks and Thermostats) and not from the Vera. File attached.

regards

John

Still no workie. Line number change in the error, but that's it:
Code: [Select]
50 02/16/13 22:25:19.354 luup_log:6: (ElkPlugin::handlerFunc Message type description: Zone Partition Report <0x2bc6d680>
50 02/16/13 22:25:19.356 luup_log:6: (ElkPlugin::readResponse) Got expected message 'ZP'. <0x2bc6d680>
50 02/16/13 22:25:19.356 luup_log:6: (ElkPlugin::sendCommand) Send command: '06lw0057'. <0x2bc6d680>
50 02/16/13 22:25:19.440 luup_log:6: (ElkPlugin::checkMessage) length=102(0x66), message type=LW, data='000000000000000000000000000000000000000000000000000000130000000000000000000000000000000000000000', misc=00, checksum=8D <0x2bc6d680>
50 02/16/13 22:25:19.441 luup_log:6: (ElkPlugin::handlerFunc Message type description: Zone Temperature and Keypad Temperature <0x2bc6d680>
01 02/16/13 22:25:19.443 LuaInterface::CallFunction_Startup-1 device 6 function elkStartup failed [string "-- TODO..."]:480: attempt to index field '?' (a nil value) <0x2bc6d680>
01 02/16/13 22:25:19.444 LuImplementation::StartLua running startup code for 6 I_ElkAlarmPanel1.xml failed <0x2bc6d680>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 17, 2013, 12:23:59 am
@signal15
This is the implementation change, but have changed so it should pick that up also.  Sorry for issues but I just can't cover all the scenario's.


regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 17, 2013, 12:38:15 am
@signal15
This is the implementation change, but have changed so it should pick that up also.  Sorry for issues but I just can't cover all the scenario's.


regards

John

More errors:
Code: [Select]
50 02/16/13 23:31:47.372 luup_log:6: (ElkPlugin::handlerFunc Message type description: Keypad KeyChange Update <0x2bc09680>
01 02/16/13 23:31:47.373 LuaInterface::CallFunction_Startup-1 device 6 function elkStartup failed [string "-- TODO..."]:339: attempt to index field '?' (a nil value) <0x2bc09680>
01 02/16/13 23:31:47.373 LuImplementation::StartLua running startup code for 6 I_ElkAlarmPanel1.xml failed <0x2bc09680>
50 02/16/13 23:31:47.401 luup_log:35: Brultech PowerMeter: Running Network Attached I_BrultechPowerMeter.xml on 10.129.1.42:7967 Device# 35, id  <0x2bc09680>
50 02/16/13 23:31:47.411 luup_log:6: (ElkPlugin::checkMessage) length=40(0x28), message type=SS, data='0000000000000000000000000000000000', misc=00, checksum=30 <0x2ea09680>
50 02/16/13 23:31:47.411 luup_log:6: (ElkPlugin::handlerFunc Message type description: System Trouble Status <0x2ea09680>
06 02/16/13 23:31:47.412 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 variable: TroubleReport was: EMPTY now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2ea09680>
--
50 02/16/13 23:32:11.370 luup_log:6: (ElkPlugin::checkMessage) length=22(0x16), message type=XK, data='0732237160213010', misc=00, checksum=70 <0x2ea09680>
50 02/16/13 23:32:11.370 luup_log:6: (ElkPlugin::handlerFunc Message type description: Ethernet Module Test <0x2ea09680>
50 02/16/13 23:32:14.290 luup_log:6: (ElkPlugin::checkMessage) length=10(0x0A), message type=CC, data='0610', misc=00, checksum=E2 <0x2ea09680>
50 02/16/13 23:32:14.291 luup_log:6: (ElkPlugin::handlerFunc Message type description: Output Change Update <0x2ea09680>
50 02/16/13 23:32:14.291 luup_log:6: (ElkPlugin::updateOutput) Output 061 is Off. <0x2ea09680>
01 02/16/13 23:32:14.292 LuaInterface::CallFunction-2 lu_incoming failed [string "-- TODO..."]:455: attempt to index field '?' (a nil value) <0x2ea09680>
50 02/16/13 23:32:14.921 luup_log:6: (ElkPlugin::checkMessage) length=25(0x19), message type=KC, data='0100000000000000000', misc=00, checksum=17 <0x2ea09680>
50 02/16/13 23:32:14.922 luup_log:6: (ElkPlugin::handlerFunc Message type description: Keypad KeyChange Update <0x2ea09680>
01 02/16/13 23:32:14.922 LuaInterface::CallFunction-2 lu_incoming failed [string "-- TODO..."]:339: attempt to index field '?' (a nil value) <0x2ea09680>

Looks like the error in the Temp sensor code is gone though.  If you want, I can set up a GotoMeeting tomorrow, share my desktop, and we can do a conf call to look at it together.  Lemme know, it will probably have to be in the afternoon.  Feel free to PM me.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 17, 2013, 01:19:09 am
Problem is I only have one zone so not sure what is going wrong here, can you try the attached file it doesn't fix it but when 'KC' response comes through it may show what variable is missing/wrong.

If the partition info is missing I may have to add second zone to my alarm so I can test to localise the issue.

thanks

John 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 17, 2013, 02:16:28 am
Problem is I only have one zone so not sure what is going wrong here, can you try the attached file it doesn't fix it but when 'KC' response comes through it may show what variable is missing/wrong.

If the partition info is missing I may have to add second zone to my alarm so I can test to localise the issue.

thanks

John

Ok, so it looks like it started this time, and Vera IS getting zone updates from the Elk.  I still have the following error, I included 5 lines before and after the error:
Code: [Select]
50 02/17/13 0:58:21.338 luup_log:6: (ElkPlugin::readResponse) Got expected message 'CS'. <0x2b9e3680>
50 02/17/13 0:58:21.338 luup_log:6: (ElkPlugin::Elk Plugin Startup SUCCESS: Startup successful. <0x2b9e3680>
50 02/17/13 0:58:21.339 luup_log:6: (ElkPlugin::sendCommand) Send command: '06ss0054'. <0x2b9e3680>
50 02/17/13 0:58:21.363 luup_log:6: (ElkPlugin::checkMessage) length=25(0x19), message type=KC, data='0100000000000000000', misc=00, checksum=17 <0x2b9e3680>
50 02/17/13 0:58:21.364 luup_log:6: (ElkPlugin::handlerFunc Message type description: Keypad KeyChange Update <0x2b9e3680>
01 02/17/13 0:58:21.364 LuaInterface::CallFunction_Startup-1 device 6 function elkStartup failed [string "-- TODO..."]:339: attempt to index field '?' (a nil value) <0x2b9e3680>
01 02/17/13 0:58:21.364 LuImplementation::StartLua running startup code for 6 I_ElkAlarmPanel1.xml failed <0x2b9e3680>
50 02/17/13 0:58:21.392 luup_log:35: Brultech PowerMeter: Running Network Attached I_BrultechPowerMeter.xml on 10.8.9.42:7967 Device# 35, id  <0x2b9e3680>
50 02/17/13 0:58:21.402 luup_log:6: (ElkPlugin::checkMessage) length=40(0x28), message type=SS, data='0000000000000000000000000000000000', misc=00, checksum=30 <0x2e7e3680>
50 02/17/13 0:58:21.402 luup_log:6: (ElkPlugin::handlerFunc Message type description: System Trouble Status <0x2e7e3680>
06 02/17/13 0:58:21.403 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 variable: TroubleReport was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2e7e3680>

- Both my temp sensors show up now
- None of my outputs show up, but I think I remember seeing that I had to do something in the advanced tab to tell it which ones to show
- Storing the PIN for area 1 no workie.  Comes back with an error that says "Device not ready".  Area 1 is in the Ready state, and the DetailedArmMode in the advanced tab shows Ready
- ChimeEnabled for area 1 shows "1".  The chime is currently disabled.
- There's still that one error that shows up above

Let me know if I can get you anything else in the way of logs.  If you'd like, we can do a gotomeeting and you can poke around in my vera that way.  It IS working now from the respect that I'm currently seeing zone trips and such right away.  This wasn't happening before when I was seeing the Elk plugin starting message (which is now gone).
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 17, 2013, 06:25:58 am
@signal15
Quote
- None of my outputs show up, but I think I remember seeing that I had to do something in the advanced tab to tell it which ones to show
That is correct you need to add each output you want to be able to see in a comma delimited variable list under the elk parent device.

Quote
- Storing the PIN for area 1 no workie.  Comes back with an error that says "Device not ready".  Area 1 is in the Ready state, and the DetailedArmMode in the advanced tab shows Ready
Going to need more info on that storing PIN works here but have not actually run it through its paces.
Code: [Select]
08 02/17/13 17:01:50.347 JobHandler_LuaUPnP::HandleActionRequest device: 63 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 action: StorePinCode <0x700c>
08 02/17/13 17:01:50.348 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=63 <0x700c>
08 02/17/13 17:01:50.349 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:ElkAlarmPanel1 <0x700c>
08 02/17/13 17:01:50.349 JobHandler_LuaUPnP::HandleActionRequest argument action=StorePinCode <0x700c>
08 02/17/13 17:01:50.350 JobHandler_LuaUPnP::HandleActionRequest argument PinCode=XXXX <0x700c>
08 02/17/13 17:01:50.351 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.4903335123404893 <0x700c>
50 02/17/13 17:01:50.353 luup_log:62: (ElkPlugin::storePinCode) PIN code stored for partition 1. <0x700c>

- ChimeEnabled for area 1 shows "1".  The chime is currently disabled. FIXED
Code: [Select]
50 02/17/13 16:58:10.728 luup_log:62: (ElkPlugin::checkMessage) length=17(0x11), message type=KF, data='01C10000000', misc=00, checksum=88 <0x4c14>
50 02/17/13 16:58:10.729 luup_log:62: (ElkPlugin::handlerFunc Message type description: Keypad Function Key Press <0x4c14>
50 02/17/13 16:58:10.730 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '1' for partition 1 (device 63). <0x4c14>
06 02/17/13 16:58:10.731 Device_Variable::m_szValue_set device: 63 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 1 #hooks: 0 upnp: 0 v:0x865168/NONE duplicate:0 <0x4c14>
50 02/17/13 16:58:14.597 luup_log:62: (ElkPlugin::checkMessage) length=17(0x11), message type=KF, data='01C20000000', misc=00, checksum=87 <0x4c14>
50 02/17/13 16:58:14.598 luup_log:62: (ElkPlugin::handlerFunc Message type description: Keypad Function Key Press <0x4c14>
50 02/17/13 16:58:14.599 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '1' for partition 1 (device 63). <0x4c14>
06 02/17/13 16:58:14.599 Device_Variable::m_szValue_set device: 63 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 1 now: 1 #hooks: 0 upnp: 0 v:0x865168/NONE duplicate:1 <0x4c14>
50 02/17/13 16:58:16.237 luup_log:62: (ElkPlugin::checkMessage) length=17(0x11), message type=KF, data='01C30000000', misc=00, checksum=86 <0x4c14>
50 02/17/13 16:58:16.238 luup_log:62: (ElkPlugin::handlerFunc Message type description: Keypad Function Key Press <0x4c14>
50 02/17/13 16:58:16.239 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '1' for partition 1 (device 63). <0x4c14>
06 02/17/13 16:58:16.240 Device_Variable::m_szValue_set device: 63 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 1 now: 1 #hooks: 0 upnp: 0 v:0x865168/NONE duplicate:1 <0x4c14>
50 02/17/13 16:58:17.419 luup_log:62: (ElkPlugin::checkMessage) length=17(0x11), message type=KF, data='01C00000000', misc=00, checksum=89 <0x4c14>
50 02/17/13 16:58:17.420 luup_log:62: (ElkPlugin::handlerFunc Message type description: Keypad Function Key Press <0x4c14>
50 02/17/13 16:58:17.421 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '0' for partition 1 (device 63). <0x4c14>
06 02/17/13 16:58:17.422 Device_Variable::m_szValue_set device: 63 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 1 now: 0 #hooks: 0 upnp: 0 v:0x865168/NONE duplicate:0 <0x4c14>

- There's still that one error that shows up above. FIXED For single partition, not sure how it will go with more then one partition.

Code: [Select]
50 02/17/13 19:07:12.440 luup_log:62: (ElkPlugin::checkMessage) length=25(0x19), message type=KC, data='0116000000000000000', misc=00, checksum=10 <0x5015>
50 02/17/13 19:07:12.442 luup_log:62: (ElkPlugin::handlerFunc Message type description: Keypad KeyChange Update <0x5015>
50 02/17/13 19:07:12.442 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '0' for partition 1 (device 63). <0x5015>
06 02/17/13 19:07:12.443 Device_Variable::m_szValue_set device: 63 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0x865168/NONE duplicate:1 <0x5015>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 17, 2013, 11:57:07 am
Storing the PIN seems to work now.  Looks like QuickArm modes do not though (this is what HomeBuddy tries to send when you arm w/o PIN):
Code: [Select]
08 02/17/13 10:46:14.992 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.5092633101859346 <0x2e8b7680>
08 02/17/13 10:46:14.992 JobHandler_LuaUPnP::HandleActionRequest argument action=RequestQuickArmMode <0x2e8b7680>
08 02/17/13 10:46:14.992 JobHandler_LuaUPnP::HandleActionRequest argument State=Stay <0x2e8b7680>
50 02/17/13 10:46:14.993 luup_log:6: (requestQuickArmMode) Quick Arm not supported. <0x2e8b7680>
50 02/17/13 10:46:14.993 luup_log:6: (ElkPlugin::task) One Touch Arm/Disarm not supported. <0x2e8b7680>

My chime in partition 1 is currently enabled, but ChimeEnabled shows "0".  I am not terribly concerned about this.  My output/input zone workaround is working fine for this.  And, now that I can monitor outputs, I can use a phantom output and just watch that instead of burning an input zone on my main board, and a physical relay output.  Did you change this variable?  Didn't it use to be "ChimeDisabled"?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 17, 2013, 08:38:44 pm
@signal15
Yes looks like quick arm just has a stub, not sure how much work is involved in getting it up and running but will have a look.

Have not changed any variable and seems to work here. Did you refresh the web page? Also noticed that chime would only update on partition one at start-up so have fixed that.
Code: [Select]
50 02/18/13 9:11:46.469 luup_log:62: (ElkPlugin::sendCommand) Send command: '09kf01000D5'. <0x402>
50 02/18/13 9:11:46.542 luup_log:62: (ElkPlugin::checkMessage) length=17(0x11), message type=KF, data='01000000000', misc=00, checksum=9C <0x402>
50 02/18/13 9:11:46.543 luup_log:62: (ElkPlugin::handlerFunc Message type description: Keypad Function Key Press <0x402>
50 02/18/13 9:11:46.544 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '0' for partition 1 (device 63). <0x402>
06 02/18/13 9:11:46.545 Device_Variable::m_szValue_set device: 63 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0x868c00/NONE duplicate:1 <0x402>
50 02/18/13 9:11:46.546 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '0' for partition 2 (device 135). <0x402>
06 02/18/13 9:11:46.547 Device_Variable::m_szValue_set device: 135 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0x868c00/NONE duplicate:1 <0x402>
50 02/18/13 9:11:46.547 luup_log:62: (ElkPlugin::readResponse) Got expected message 'KF'. <0x402>
50 02/18/13 9:11:46.549 luup_log:62: (ElkPlugin::sendCommand) Send command: '09kf02000D4'. <0x402>
50 02/18/13 9:11:46.622 luup_log:62: (ElkPlugin::checkMessage) length=17(0x11), message type=KF, data='02000000000', misc=00, checksum=9B <0x402>
50 02/18/13 9:11:46.623 luup_log:62: (ElkPlugin::handlerFunc Message type description: Keypad Function Key Press <0x402>
50 02/18/13 9:11:46.624 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '0' for partition 1 (device 63). <0x402>
06 02/18/13 9:11:46.625 Device_Variable::m_szValue_set device: 63 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0x868c00/NONE duplicate:1 <0x402>
50 02/18/13 9:11:46.626 luup_log:62: (ElkPlugin::setPartitionState) Set variable 'ChimeEnabled' = '0' for partition 2 (device 135). <0x402>
06 02/18/13 9:11:46.626 Device_Variable::m_szValue_set device: 135 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0x868c00/NONE duplicate:1 <0x402>

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 17, 2013, 08:51:34 pm
I did reload the page.  I'll look at it again later tonight. 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 17, 2013, 11:47:01 pm
Latest local update for testing:-
Fixed Chime to work across multiple partitions.
Fixed UI display issue.

Anyone out there able to tell me if it is possible to quick arm via the rs232 protocol. It is possible from a keypad but I can't see if it can be remotely. I have tried a couple of different things but no luck.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 18, 2013, 02:00:22 pm
Latest local update for testing:-
Fixed Chime to work across multiple partitions.
Fixed UI display issue.

Anyone out there able to tell me if it is possible to quick arm via the rs232 protocol. It is possible from a keypad but I can't see if it can be remotely. I have tried a couple of different things but no luck.

regards

John

Not sure if this is possible.  The rs232 protocol guide I have doesn't mention it.  I emailed Brad Weeks at Elk and I'll let you know what I hear back.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 19, 2013, 12:44:51 pm
Latest local update for testing:-
Fixed Chime to work across multiple partitions.
Fixed UI display issue.

Anyone out there able to tell me if it is possible to quick arm via the rs232 protocol. It is possible from a keypad but I can't see if it can be remotely. I have tried a couple of different things but no luck.

regards

John

Not sure if this is possible.  The rs232 protocol guide I have doesn't mention it.  I emailed Brad Weeks at Elk and I'll let you know what I hear back.

To arm via rs232, you must supply a valid user code.  Quick Arm not available.  However, if you're storing the PIN, you should be able to just have the Quick Arm section arm it normally.  It just has to account for the different modes (Away, Night, Stay, Night Instant, Stay Instant, etc).

Also, I got the latest protocol guide.  PM me your email addy if you want it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 19, 2013, 06:13:58 pm
@signal15
Should just take a few minor changes to the existing function to implement then can support remote applications that use "quick arm".

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 20, 2013, 01:38:20 am
Just an FYI, the ChimeEnabled is currently "0" for partitions 2-4, which is correct.  However, the chime is currently disabled on Partition 1, but it's got a "1" in there.

BTW, thanks for all your great work on this plugin.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 20, 2013, 05:13:57 am
@signal15
Can you delete partition one, then do a restart? It will break scenes etc. attached to that device but I can't think of anything else. It may be a remnant from the previous plugin.

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on February 20, 2013, 12:07:35 pm
@signal15
Can you delete partition one, then do a restart? It will break scenes etc. attached to that device but I can't think of anything else. It may be a remnant from the previous plugin.

Cheers

John

If I delete the partition, I'm gonna have to go and change a whole lot of LUA when the device ID changes.  I'd rather not.  Since it's working for me now with my output relay connected back to an input, I'm just going to leave it for that partition.  If it starts working at some point, great, otherwise no big deal.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 22, 2013, 12:08:09 am
Hi update 2.0 version with fixes attached.

Mainly just to add pseudo "QuickArm". It does not support the full list of arming functions on the M1 "Armed/Forced/Stay" which map to armed away and armed stay.

This function requires a stored pin and is not available in the UI except via advanced scenes or remote calls.

I have not tested this myself but see no reason why it should not work as it is just a cutdown version of the normal arm/disarm function.

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 22, 2013, 05:32:51 am
Here you go for Rs232 control.
http://cocoontech.com/forums/files/download/10-elk-m1-ascii-protocol-serialnetwork/ (http://cocoontech.com/forums/files/download/10-elk-m1-ascii-protocol-serialnetwork/)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 22, 2013, 05:39:39 am
Attached  :D
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 27, 2013, 06:00:33 am
@zoot
Was that what you were looking for?

Sent from my SCH-I535 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 27, 2013, 11:25:13 am
@big517
Yes, thanks.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 08, 2013, 04:59:01 am
Updated plugin:-
http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes)

No fixes.
Added code to show log files, very raw would be interested to know if anyone actually wants this data. Data comes back in lots of 75 with a total of 511 (This is the total number of events stored by the Elk M1).

A big thanks to futzle for help on callbacks, javascript etc.

Cheers

John



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on March 08, 2013, 08:56:20 am
Very cool. I can see how this would be useful for sure.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 11, 2013, 02:10:59 am
Hi
Is anyone out there using version 2_updates with thermostats installed on the M1. I require some testing on a new version which should add devices automatically (tasks, outputs & thermostats). Not having thermostats I need someone who has them to test.

I have attached the lua file as everything else should be the same.

Thanks

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on March 11, 2013, 12:40:18 pm
Nice work! I'm so happy you guys are banging away to get this Elk plug in up to snuff.
Thanks again for all your work on this.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 12, 2013, 08:53:00 am
Hi all
New release:
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/84/branches/2.0_changes?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/84/branches/2.0_changes?old_path=%2F&format=zip)

Changes: -
Tasks automatically populated.
Outputs automatically populated.
Thermostats automatically populated. --not tested--

Added correct extended information to log. Please note I probably have missed some as the possibilities are large, so if you see any thing in the log that does not make sense drop me a copy.

Added user names to log.

On my list of things todo (no promises): -
Counters.
Custom values.
Move some of the log code to javascript to offload Vera.
Amalgamate trouble and Log tab. In retrospect this does not make sense.

Not really getting much feedback bug wise so not sure how it is going on that front, must be all good  ;D

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 13, 2013, 08:36:53 am
@Zoot1612 thanks again man, I'm not using the thermostats (Have TraneZwave stat currentl) with ELK, but the outputs are a game changer.

I wanted to know what you plan to implement with the RS232 codes you requested?  Anything on the horizon?

I also wondered if we can "SEND TEXT" from ELK to Vera Alerts directly...  I feel like @Signal15 would know this better than anyone, but if anyone else knows if this is possible it would be great.

here is the LUA code..
Code: [Select]
function VeraAlert(Host, Port, Msg)
  local socket = require("socket")
  local tcp = socket.tcp()
  tcp:settimeout(3)
  if (tcp:connect(Host, Port)) then
     if (tcp:send(Msg)) then
     else
   print("Error Sending Msg")
     end
  else
     print("Error Opening Socket")
  end
  tcp:close(socket)
end

VeraAlert("192.168.10.101", 3000, "What's Up{tone:2}")

I'm assuming we simply need to send the (3000, "whats'up{tone:2}) to the device once we specifiy the IP and Port, but i'm not sure where or how to do this.
Thank you.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 13, 2013, 07:44:17 pm
@big517
The protocol question was more about if quick arm was possible, which signal15 followed up and answered. I ended up implementing a pseudo quick arm for clients that support it http://forum.micasaverde.com/index.php/topic,6916.msg103480.html#msg103480 (http://forum.micasaverde.com/index.php/topic,6916.msg103480.html#msg103480)

As far as future plugin requirements go I don't need anything else so if there is something you would like let me know and I will see what I can do.

As for your request it may be better done in a separate plugin.
Sorry mis-understood what you are asking, ignore this.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 14, 2013, 12:52:24 pm
I wanted to bring this to everyone's attention :)

How to Send Vera Alerts from ELK!

http://forum.micasaverde.com/index.php/topic,14032.0.html (http://forum.micasaverde.com/index.php/topic,14032.0.html)

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 22, 2013, 06:18:15 am
Is it possible to detect when the connection is lost with ELK?  It seems that it only happens during a reboot of LUUP system, and if this error happens :Elk Alarm Panel : Failed to get zones.  then its stuck that way until next vera reboot.

If this can be a monitored condition then we can tell the Vera to reload LUUP or reboot entirely.

How can we make this happen? 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 23, 2013, 11:46:06 pm
I have thought about it but that is as far as I have got so far. Will have a look when I get a chance.

regards

John

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 24, 2013, 11:20:29 am
Thanks...  It's a pretty important piece for me considering every light in my house evolves around the zone status (100+) devices and 45+ Zones...  When it goes down, I have to search for a light switch.  Imagine that ;)
Thanks again man...  Much appreciated work you have done.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on March 24, 2013, 11:35:13 am
What would happen if the Elk was down? Would vera just keep restarting in an endless loop?

It would be better if there was a way to make the plugin reestablish connection without restarting lua.

Sent from my Nexus 4 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 24, 2013, 09:18:28 pm
There are five parts to this problem.

Communication link failure during start-up - User intervention required then restart.

Communication link is OK but start-up fails - Set a number of retries on commands is a possibility.

Communication link failure during normal operation - Let user know communication is lost but plugin should resume normal operation if comms is back online.

Elk fails during normal operation. - User intervention required then restart, possible to use "XK" as heartbeat.

Plugin failure - ?

This is not an in-depth look just what I see as the possibilities. Some I may be able to do something about and some I can't :)


regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on March 24, 2013, 09:42:19 pm
The safest way to deal with this is to connect via serial port instead of IP.

Sent from my Nexus 4 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 25, 2013, 07:37:03 am
Why is that?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on March 25, 2013, 08:22:25 am
Why is that?

There's no network connection to deal with then, no timeouts, etc. . There would have to be a failure of the elk serial port, or the usb serial adapter on the vera.

It would also eliminate the XEP, which is likely the root of any connection issues.

Sent from my Nexus 4 using Tapatalk 2
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 25, 2013, 08:41:45 am
@big517
Would like to see your logs around the startup failure, I do get them occasionally but more info the better.

By the way I have added heartbeat to my local build and was interested on what sort of time between checks would be a good trade off in respect to not overloading Vera with a timer going off every 30 seconds, I set the timer to check every fifteen minutes.

Code: [Select]
02 03/25/13 20:37:32.182 luup_log:3: (ElkPlugin::handlerFunc Message type description: Ethernet Module Test <0x2da9d680>
01 03/25/13 20:37:39.101 luup_log:3: (getHeartbeat) OK 7 sec since last ping. <0x2c29d680>
02 03/25/13 20:38:02.202 luup_log:3: (ElkPlugin::checkMessage) length=22(0x16), message type=XK, data='0138202250313001', misc=00, checksum=77 <0x2da9d680>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 25, 2013, 08:48:49 am
Yea it's maybe once per week.   Next time I notice I'll pull the logs.   Should i install this update first? 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 25, 2013, 09:18:21 pm
@big517
Haven't uploaded this update yet. It would make any difference to your issue as I have not delved into that part of the plugin as yet.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 25, 2013, 11:16:38 pm
Just purchased an M1XSP so i can connect via serial.   Just need the usb to serial cable now,  right?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on March 25, 2013, 11:20:20 pm
Just purchased an M1XSP so i can connect via serial.   Just need the usb to serial cable now,  right?

Yep. Somewhere there is a list of the ones that work with vera out of the box.

You could remove the XEP and plug it into the onboard serial port also. You would lose network connectivity to the elk from ElkRP if you did that.   However, if you can install socat on the Vera, it can act as the XEP also.   I have a post on coccoontech on how to use socat this way. I did it before my XEP arrived.
Sent from my Nexus 4 using Tapatalk 2
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 26, 2013, 05:45:18 am
That is very interesting.  I was able to get a new m1xsp on eBay for 65 so i jumped on it but now i know I can free a serial port if needed.   Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 28, 2013, 10:26:02 pm
Updated plugin:-
http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes

Changes: -

------------------------------------
Added ELK RTC.
Device Number = Device number of parent, argument1:time datatype = string //milliseconds since 1970/01/01  example 1364479160530
Code: [Select]
http://_ADDRESS_/data_request?id=lu_action&output_format=xml&DeviceNum=_DEVICENUMBER_&serviceId=urn:micasaverde-com:serviceId:ElkAlarmPanel1&action=SetElkRTC&Time=_TIME_
Sets Elk RTC to Time

There is also a javascript tab in UI5 to display and set Elk RTC.
------------------------------------
Added Heartbeat

Device Number = Device number of parent, no arguments, output json or xml
Code: [Select]
http://_ADDRESS_/data_request?id=lu_action&output_format=xml&DeviceNum=_DEVICENUMBER_&serviceId=urn:micasaverde-com:serviceId:ElkAlarmPanel1&action=GetHeartbeat
Returns number of seconds since last XK message received.
------------------------------------

Also some cosmetic changes plus cleanups as I learn more regarding how it all fits together.
------------------------------------

Next: Implement command retries on startup.

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 28, 2013, 11:09:18 pm
What is RTC?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on March 28, 2013, 11:23:28 pm
What is RTC?

Real time clock.

Sent from my Nexus 4 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on March 31, 2013, 08:44:20 am
Good to know.  I never did get the ntp server configured on m1xep.  Nice addition.


Sent from my iPad using Tapatalk HD
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 05, 2013, 08:02:25 am
Updated plugin:-
http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes)

Changes: -
Command retries at startup, currently will retry a command to alarm system twice with a 300ms gap in between before dying.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 11, 2013, 11:11:07 am
Does this plugin support temperatures yet?

Thinking about picking up a M1ZTSR to monitor a lake....  Otherwise I may go RFXCOM.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 11, 2013, 01:06:11 pm
Does this plugin support temperatures yet?

Thinking about picking up a M1ZTSR to monitor a lake....  Otherwise I may go RFXCOM.

Yes, it's working on mine.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 11, 2013, 01:08:21 pm
so Vera shows a numerical figure for the temp in the GUI?  Can we base rules off temperature points?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 11, 2013, 01:12:12 pm
so Vera shows a numerical figure for the temp in the GUI?  Can we base rules off temperature points?

Yep.  Image attached.  Vera treats it as a regular temp sensor, so you can do rules and LUA code using it.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on April 11, 2013, 09:25:43 pm
@zoot

I'm running the 1.1 version of the Elk plugin.
What do I need to do to update it to your 2.0 version now?

Thanks,
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 12, 2013, 01:49:37 am
@zoot

I'm running the 1.1 version of the Elk plugin.
What do I need to do to update it to your 2.0 version now?

Thanks,

Any chance of getting this new version on the market thingy?  I haven't really run into any bugs with it and it seems solid.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 12, 2013, 02:24:17 am
@signal15

This is up to mcvflorin as it is his plugin.

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 14, 2013, 06:54:01 pm
@bucko
Sorry missed the question

1. Download zip file here: -
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/93/branches/2.0_changes?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/93/branches/2.0_changes?old_path=%2F&format=zip)

2. Extract zip file to location of your choice.

3. In UI5 go to "APPS >> Develop Apps >> Luup Files" Screenshot attached.

4. Using Browse buttons browse to where files were extracted. Do this for all eight files.

5. Tick the "Restart Luup after upload" button.

6. Click to "GO" button.

And that should be it.

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on April 15, 2013, 03:53:16 am
@Zoot

Thank you. I will get it updated now.

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on April 16, 2013, 02:21:56 am
@Zoot
Playing around with the new update, I found a small bug.

If I click on the log tab, it will timeout and show nothing.
Then if I click on time and update Elk RTC to PC time, then back to the log tab, it will show the log fine.

So I changed my Elk XEP to use the same internet time as I use for my PC. But this had no effect on the Log tab. Only after I do the Time tab again, will it show the logs.

Something is requiring me to first update the Elk RTC time, even though both read the same time.

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 16, 2013, 07:34:53 am
@bucko
Does the same to me but it does not matter which tab you go to it has the same effect so not related to time tab.

I have not yet worked out why it is doing what it does :(

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 17, 2013, 08:47:41 pm
No luck with the M1XSP i bought... I have the XSP enrolled and visible within ELK and I followed the setup from the main ELK Plugin WIKI, it cannot establish communication.  I keep getting Device Not Ready.

I'm configured exactly like this;
http://code.mios.com/trac/mios_elk-alarm-panel/attachment/wiki/UI5/ui5_serial_port_config.png

I even bought the USB to Serial adapter suggested as the best one on the Vera WIKI.

Does the baud rate still need to be 115,200?  I dont see this baud rate supported on M1XSP.

I selected the ELK ALARM PANEL as the device in the Serial setup...  I lastly chose the ELK USB device I created as the Parent to the ELK alarm panel.  No Luck.

Whats the best way to trouble shoot this?

Thanks,
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 18, 2013, 12:10:48 am
You need to make sure your usb->serial and your M1XSP are set to the same baud rate.  115200 is supported by the XSP, but you'll need to use jumpers to set it that way.  Mine's up in a cabinet in the wall, so I don't have handy access to it.  But it should be in the manual or with the docs that came with it on how to change it.  As far as your usb->serial interface, you'll need to make sure that's also set to 115200.  Not sure how to do that. 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 18, 2013, 06:45:59 am
Thanks, but i couldn't find that baud rate in the xsp manual.  The usb/serial seeing are done in Vera I'm assuming.   I'll dig deeper today
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 18, 2013, 07:46:07 am
m1XSP max baud rate is 38,xxx..   No where near the 115,200.  Is there an alternative setting to make the plugin work?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 18, 2013, 09:35:59 am
m1XSP max baud rate is 38,xxx..   No where near the 115,200.  Is there an alternative setting to make the plugin work?

Sent from my Nexus 4 using Tapatalk 2

Elk's documentation says on the first page that it does 300 to 115200 baud. But, if you can get it only set to 38400, then you just need to also set your usb to serial on the Vera to the same speed.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 18, 2013, 10:42:21 am
m1XSP max baud rate is 38,xxx..   No where near the 115,200.  Is there an alternative setting to make the plugin work?

Sent from my Nexus 4 using Tapatalk 2

Elk's documentation says on the first page that it does 300 to 115200 baud. But, if you can get it only set to 38400, then you just need to also set your usb to serial on the Vera to the same speed.

Where do you see that? 
http://www.elkproducts.com/product-catalog/elk-m1xsp-lighting-and-thermostat-interface-serial-port-expander

"The communications baud rate is adjustable from 300 to 38,400 baud."
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 18, 2013, 02:25:44 pm
m1XSP max baud rate is 38,xxx..   No where near the 115,200.  Is there an alternative setting to make the plugin work?

Sent from my Nexus 4 using Tapatalk 2

Elk's documentation says on the first page that it does 300 to 115200 baud. But, if you can get it only set to 38400, then you just need to also set your usb to serial on the Vera to the same speed.

Where do you see that? 
http://www.elkproducts.com/product-catalog/elk-m1xsp-lighting-and-thermostat-interface-serial-port-expander

"The communications baud rate is adjustable from 300 to 38,400 baud."
It was in the pdf for it linked on SmartHome. Clearly, it's probably not accurate.

It should be fine at 38400. Just get your serial adapter set for the same speed.

Sent from my Nexus 4 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 18, 2013, 06:46:00 pm
No luck on that either...  Anything special I need to do on the ELK side besides enroll it?  I can see it elk RP so I'm assuming comunications are OK with it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 18, 2013, 10:27:42 pm
No luck on that either...  Anything special I need to do on the ELK side besides enroll it?  I can see it elk RP so I'm assuming comunications are OK with it.

Are you able to set your usb to serial adapter to 38400?

Sent from my Nexus 4 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 19, 2013, 06:08:08 am
I set the 3 jumpers to "one" on the m1xsp hardware,  then in the serial port configuration tab in Vera I set it there also, correct?   
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 21, 2013, 06:32:56 am
I give up.  I think the higher baud rate is required and it must be incompatible with the M1XSP due to capped baud rate.

Anything useful I can do with an extra M1XSP? 
I have the Trane Zwave thermostats, can I use this to connect to them and monitor temp?
Should I get the Leviton Zwave module and give my elk some power to adjust the lights?

Open to suggestions :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 21, 2013, 01:58:17 pm
Are you using a straight through cable or a null modem cable?  I think you need a null modem cable for this.

Sent from my Nexus 4 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 21, 2013, 02:42:11 pm
Not sure.   Came with a cable that is serial port on one end and 4 wires exposed in other end.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on April 22, 2013, 02:06:29 am
Not sure.   Came with a cable that is serial port on one end and 4 wires exposed in other end.

You can try swapping the tx and rx and see if that helps.

Sent from my Nexus 4 using Tapatalk 2

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 24, 2013, 06:15:45 am
Updated plugin:-
http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes

Changes: -
minor updates

also added
Speak

You can use this from advanced tab in scenes or as per below.

http://yourIPAddress:49451/data_request?id=lu_action&output_format=xml&DeviceNum=3&serviceId=urn:micasaverde-com:serviceId:ElkAlarmPanel1&action=Speak&MessageValue=123&MessageType=Word

DeviceNum=Elk panel device number
MessageType = Word or Phrase
MessageValue=phrase or word value from protocol document.

You have to have "Enable system messages" ticked in Globals-->G19-G25(Voice)

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on April 24, 2013, 01:50:51 pm
Another nice surprise from zoot!

I'm assuming this is limited to the ELK voice library, correct?
What is "protocol document"?  Can you give an example of what you would do with this option?

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 25, 2013, 12:23:12 am
@big517

Yes, there is a Word and Phrase table at the back of the "ASCII Protocol RS-232 Interface Specification" document.

With this any Vera device can use the Elk to announce using scenes. What can you use it for! I will probably piss my wife off really quickly and have to disable it  ;)

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on May 15, 2013, 12:05:52 pm
How do I arm the ELK through Scenes?   I saw advanced options for both the Panel and The Zone.  I'm assuming it's the zone, but i'm not sure what to put under RequestArmMode as it's a text box, do I simply type "ARM AWAY" for example?

I searched the thread but couldnt find a clear answer.

@Signal15, how is your RFID setup through ELK holding?  I'm seriously considering jumping into that soon since I have an extra Serial Expander laying around.

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on May 15, 2013, 07:47:44 pm
Use the "ADVANCED" tab under "Create scene"

Select required "Partition" <------------ This is where arm/disarm etc takes place.

From the drop down list choose required arming mode: -

RequestArmMode

The following is a list of possible entries in the text box for RequestArmMode

Disarmed
Armed
Force (Same as Armed)
Stay
StayInstant
Night
NightInstant
Vacation


RequestQuickArmMode

The following is a list of possible entries in the text box for  RequestQuickArmMode

Armed
Force (Same as Armed)
Stay

Note: RequestQuickArmMode requires a stored PIN otherwise it will not work.


On the topic of RFID I have recently put one in for front gate access and am happy with performance.

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on May 15, 2013, 11:24:11 pm
Thank you.  That was exactly what i was looking for.  Btw, What rfid solution did you use? 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on May 16, 2013, 12:12:32 am
I'm in Australia so I bought the standard NESS device (same as elk RFID I assume) which works at 125Khz (don't know about protocols) and Wiegand 26 output.

http://nesscorporation.com/ness-access-control-2/access-control-readers/ness-ultraprox-weigand-reader-mk2.html (http://nesscorporation.com/ness-access-control-2/access-control-readers/ness-ultraprox-weigand-reader-mk2.html)

I have seen some very cheap alternatives on line with Wiegand 26 output that should work. You could use any reader as long as it had Wiegand 26 output I would guess did not want to take the chance.

Cheers

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on May 16, 2013, 06:37:23 am
Yes.   Surprisingly inexpensive.   Maybe the least expensive component for elk ironically.   
I like the idea of not relying on batteries like the prox cards it reads, however i like the idea of a hidden reader and not having to stop the car, roll down the window and scan your card.   But for less than $50 usd it's a great solution to have.   
Do you have an electronic gate at your driveway?   Does it have an intercom?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on May 17, 2013, 04:59:51 am
No electronic gate, just a roller door on the garage, this had a point for a wired switch which I used to connect to the Elk/Ness also connected a reed switch to one of the zones to show when door is closed.

I have an intercom but it is completely seperate from my automation except I intercepted the doorbell, can't remember exactly what I did but I have it connected to a task that uses Elk/Ness speech output when someone presses the doorbell.

Cheers

 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on May 20, 2013, 04:00:45 am
@all using version two of ELK plugin.

It seems to be very quite so assuming everything is running OK?

If this is the case is there anything else you may want implemented, not promising  :)

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on May 21, 2013, 04:16:45 pm
My Plugin still says 1.1 on the app  ???  Can you post the latest stable files again for 2.0 and i'll upload it now?

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on May 21, 2013, 09:08:38 pm
Files here: -
http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes)

Have not done any changes for a while as I have been focused on other things.

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on May 22, 2013, 06:33:30 am
Cool, I may have already updated, but i'll re-upload these for good measure.  The ONLY thing I can think of is having Vera re-connect to the ELK after the ELK is turned off/on, if it doesn't already do this, and I know it's a RARE occurance, but just connectivity watchdog style features are the only thing I can think of.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on May 22, 2013, 07:24:28 am
Can anyone enlighten me regarding what happens when an external device disconnects. From what I can see on the Vera logs the connect just stays up and spits out errors, is this right.

@big517
There is this: -
http://XXX.XXX.XXX.XXX:49451/data_request?id=lu_action&output_format=xml&DeviceNum=X&serviceId=urn:micasaverde-com:serviceId:ElkAlarmPanel1&action=GetHeartbeat

Is is a simple timer that resets everytime it receives a heartbeat message sent from the M1, but currently I don't have easy access in scenes.

Quote
The ?XK? command will be sent every 30 seconds to test any M1XEP Ethernet Module that has
been installed into the system during the module enrollment process using Installer Programming
Menu 1. Should an ?AT? or ?AR? command be sent, the Ethernet Module must reply with the
?xk? command within 120 seconds or an ?Ethernet Trouble? message will be displayed and
logged. This allows for 1 transmission miss. Version 4.32 and after includes the M1?s real time
clock information.



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: kboldt on May 24, 2013, 12:12:01 pm
Hi Everyone,

I have some questions about Vera3 and this ELK plugin.

I would like to add Zwave to my ELKM1G and Insteon home.  It seemed as though the only way was to buy the ELKZwave and Leviton controller to get this
working...which would cost $300+.

However, if I bought the Vera3 and used this ELK plugin, would it not do the same the ELKZwave does for cheaper?  Plus added features of the Vera3?
I also have the ELK ethernet module...which I thought would be easier to integrate the ELK with the Vera3.

Does anyone know any major differences?  The way I see it, the ELKzwave module requires the leviton controller....so how is that different then connecting the Vera3 to ELK using ethernet?


Thanks for any advice/comments..
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on June 20, 2013, 05:39:00 am
I think you are right.   I have no experience with the other hardware however.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on June 27, 2013, 05:45:24 am
Have we hit enough posts to create a dedicated Elk sub forum?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tadr on August 02, 2013, 01:55:06 pm
I apologize in advance for polluting this thread, but I am a new vera user and luup programmer and I'm having trouble getting some of the sample code running.  I have the Elk Alarm plugin up and working.  Basically what I need to know is whether the Elk Alarm Plugin populates the "LastTrip" variable for the SecuritySensor1 Device.

The below sample code (straight from the wiki) does not work properly.  The lights turn on when motion is detected but never turn off.  So I know I specified the correct device numbers.  I did some debugging and found out that the line "local lastTrip = luup.variable_get (SS_SID, "LastTrip", sensorDeviceNo) or os.time()" is always returning the os.time() and never gets the LastTrip time.  Can anyone offer some assistance?



local sensorDeviceNo = 16 -- Motion Sensor device number
local lightDeviceNo = 13 -- Light device number
local period = 10 -- Seconds
 
local SS_SID = "urn:micasaverde-com:serviceId:SecuritySensor1" -- Security Sensor Service ID
local SP_SID = "urn:upnp-org:serviceId:SwitchPower1" -- Switch Power Service ID
 
function checkLastTrip()
    local lastTrip = luup.variable_get (SS_SID, "LastTrip", sensorDeviceNo) or os.time()
    if (os.difftime (os.time(), tonumber (lastTrip)) >= period) then
        luup.call_action (SP_SID, "SetTarget", {["newTargetValue"] = 0}, lightDeviceNo) -- Turn off the light.
    else
        luup.call_delay ("checkLastTrip", period) -- Check when the sensor was last tripped every <period> seconds.
    end
end
 
luup.call_delay ("checkLastTrip", period)
 
return true
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on August 08, 2013, 01:29:08 am
@tadr
"LastTrip" not implemented.

Try new Lua file here: -
http://forum.micasaverde.com/index.php/topic,15797.msg121917.html#msg121917

regards

zoot1612
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on August 08, 2013, 03:32:43 pm
interesting... 
Will this allow Vera to catch trips that are a few milliseconds in length?
I have some wireless PIRS that I have to put on Fast Loop Response, and Vera never realizes they were tripped, forcing me to create an output to trip for a length of time thru ELK so Vera can see it...

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on August 09, 2013, 12:54:12 am
@big517
If a alarm message is sent by the ELK it should be acted on by the plugin so would have thought that the Vera would work. Do you get anything in the log?

regards

Zoot1612
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on August 11, 2013, 10:57:35 am
I will check.   I just remember if elk rp was connected the Vera would get disconnected.   During the time the Vera is disconnected if an alarm was turned on the Vera could not reconnect without rebooting.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tadr on September 03, 2013, 09:47:00 pm
@tadr
"LastTrip" not implemented.

Try new Lua file here: -
http://forum.micasaverde.com/index.php/topic,15797.msg121917.html#msg121917

regards

zoot1612

Zoot1612 - thank you!  I uploaded the new lua file and it seems to be working now.  Many thanks for implementing this for me - hopefully this will help out other noobs as well. :-)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tcarlig on October 03, 2013, 02:22:05 pm
I hate to post, but I am really stuck with this plug-in I had it working on the Vera 2 before I upgraded to the M1XSLZW and VRCOP-1LW. I'm ready to trash these and go back to the older models (M1XSP and VRCOP) I have everything in place and the ELK is configured properly... On the ELK I have the Non-Secure port open on default port 2101 I am able to connect to it via telnet and web. The plugin installs properly and I am able to put the IP address in the plug-in (20.x.x.x:2101) It seems to connect but none of the devices show up? Even when on the web looking at the devices I can login to the ELKRP and I get a message at the top of the Vera page showing ELKRP connected and disconnecting when I disconnect... I've tried multiple versions of the plugin and still nothing :-(  Running on Mios version 1.5.622

My log files show this...

01   10/03/13 14:40:14.528   LuaInterface::CallFunction_Startup-1 device 156 function elkStartup failed [string "local DEBUG_MODE = false..."]:1500: attempt to index field '?' (a nil value) <0x2c381680>
01   10/03/13 14:40:14.529   LuImplementation::StartLua running startup code for 156 I_ElkAlarmPanel1.xml failed <0x2c381680>

This may be an issue with My system and not the Plug-in, Just thought I'd check to see if anyone has any ideas.

Looks like there has been some great work on this plugin and excited to get this working!
Any help would be appreciated.
Thanks,
TC
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on October 03, 2013, 05:34:04 pm
Try port 2601 (secure)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tcarlig on October 03, 2013, 06:56:19 pm
Is there a place to put "User/Pass" if I use the secure port? I Just tried and It just hangs on "Elk Alarm Panel : starting up..." then reloads every minute "Unit Busy" etc. I'll try re-installing the app if that doesn't work I'll take the username and pass off the secure port on the ELK to see if it will gather the devices. :) I'll let you know. Thanks for your help... Hopefully I'm posting in the right section for this problem.
TC
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on October 03, 2013, 09:07:39 pm
@big517

Yes, there is a Word and Phrase table at the back of the "ASCII Protocol RS-232 Interface Specification" document.

With this any Vera device can use the Elk to announce using scenes. What can you use it for! I will probably piss my wife off really quickly and have to disable it  ;)

Cheers

Where is this document please? I can't find it in the Elk manual, M1Xsp manual, Elk !P232.
 Is this a MCV doc?
Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 03, 2013, 10:04:04 pm
@bucko try attachment here, it is a ELK doco.
http://forum.micasaverde.com/index.php/topic,6916.msg103508.html#msg103508 (http://forum.micasaverde.com/index.php/topic,6916.msg103508.html#msg103508)

@tcarlig currently you can only use port 2101 as there is no encryption in the plugin. Can you set the debug to true and see if you can get more info?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tcarlig on October 04, 2013, 10:14:25 am
Ok Thanks I have switched it back to Port 2101 it is connecting but no devices are showing up. I rebuilt the Vera 2 I had and installed the plugin on this device, I'm getting the same thing. :( I set detailed logging in the app and have attached the log. (There is nothing in this Vera but the ELK app.)

Sorry Big517 was trying to send you a PM but don't have enough Posts to reply. :( (They work very well together though) Highly recommend.   :)

Thanks for your help!
TC
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on October 04, 2013, 08:13:23 pm
Thank you zoot.  Can't wait to test this out.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on October 04, 2013, 09:50:41 pm
You can use this from advanced tab in scenes or as per below.

http://yourIPAddress:49451/data_request?id=lu_action&output_format=xml&DeviceNum=3&serviceId=urn:micasaverde-com:serviceId:ElkAlarmPanel1&action=Speak&MessageValue=123&MessageType=Word

DeviceNum=Elk panel device number
MessageType = Word or Phrase
MessageValue=phrase or word value from protocol document.

@Zoot

My Elk connects to my vera via a XEP. I have an M1XSP as well (but not used). Does this only work if using an M1XSP? Because testing this lup code in Vera, I get "code failed".

Also in the MessageValue....do I comma delimit the word value numbers to create a voice stream, or is it limited to speaking only 1 word?

I'd like to use this feature, but really want to stay connected via my XEP.  Possible??

Also, I don't find a Vera serial plug in anyway? Should I use my M1XSP, what is the vera plug in name?

Thanks man
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 05, 2013, 06:51:35 am
@bucko
Sorry just checked it out and it seems I have some regressions in the current plugin. I will update but you can use the attached implementation file in the interim and it should work.

Currently csv not supported but it sounds like a good idea I will try to implement.

Not sure what you mean by your last statement, are you asking if there is a serial plugin?

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on October 05, 2013, 07:12:46 am
@bucko
Sorry just checked it out and it seems I have some regressions in the current plugin. I will update but you can use the attached implementation file in the interim and it should work.

Currently csv not supported but it sounds like a good idea I will try to implement.

Not sure what you mean by your last statement, are you asking if there is a serial plugin?

I wanted to use this feature and still connect to my Elk via the XEP. My question is weather the lup code for voice will work via the XEP rather than using a serial connection. I ask also because I just tried your new file patch and tried your code with the Lup test code. It still returns "Code Failed"

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 05, 2013, 07:47:21 am
@bucko
Can you add your code so I can look at it, the line you reference I have only used from a browser and it works OK (not Lua).

Also just loaded a prelim csv list for word speak in svn.

And yes it should work via XEP but not an expert

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tcarlig on October 05, 2013, 05:18:48 pm
Still having this issue of collecting the devices and displaying them in the Vera... What version is this supported on the ELK plug-in? I'm running 5.2.10 on the M1G and on the M1XEP 1.3.26.  My Vera is on 1.5.622 Just trying to rule out version compatibilities. I read that I shouldn't go up to the 1.3.28 on the XEP? Thoughts? I've attached another log from cleanly formatted Vera with only the plug-in loaded. Startup is good until I get to the error: StartLua running startup code for 3 I_ElkAlarmPanel1.xml failed <0x402> and also at the bottom It keeps repeating Arming Status Report <0x4412> any ideas on this would be great...

Thanks again for the support!
TC
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 05, 2013, 09:56:47 pm
@tcarlig
It is an issue with the plugin, attached fix and uploaded to svn.
--------------------------------------------------------
message type=SD, data='03001Laundry Room    '
message type=SD, data='03003Master Closet   '
message type=SD, data='03005Back Hall       '
message type=SD, data='03006Basement        '
--------------------------------------------------------
Keyboard area assignment = 1310110000000000

Keyboard 1 = Area 1 Laundry Room
Keyboard 2 = Area 3 failing here as there is no keyboard 2 created by Vera (ELK is not reporting keyboard to Vera, does it exist?)
Keyboard 3 = Area 1 Master Closet
Keyboard 4 = Area 0
Keyboard 5 = Area 1 Back Hall
Keyboard 6 = Area 1 Basement
.
Keyboard 16
--------------------------------------------------------
regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 06, 2013, 03:57:30 am
@bucko
Here is an example of what you need to run from the test code box: -

luup.call_action("urn:micasaverde-com:serviceId:ElkAlarmPanel1", "Speak", {MessageValue="421,234,41,22,131", MessageType="Word"}, 57)

regards

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tcarlig on October 06, 2013, 10:20:43 am
Wow! Thanks Zoot There is no Keypad 2 or 4 I have been wondering where my phantom Zone three was coming from in the ELK, Thanks for narrowing that down for me as well. You wouldn't happen know (in the ELK) how to get rid of that zone if there isn't a keypad there?  :)   The change you made in new file included worked like a champ.

Thank for your help with this!!
TC
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on October 06, 2013, 11:43:12 am
@bucko
Here is an example of what you need to run from the test code box: -

luup.call_action("urn:micasaverde-com:serviceId:ElkAlarmPanel1", "Speak", {MessageValue="421,234,41,22,131", MessageType="Word"}, 57)

regards

John

Hey zoot! Ok! Your http example does indeed works from the browser. My bad, I was trying to run it in the test luup code.

Now,
I copied your test code box luup and pasted it in the test box. It comes back "Message sent successful"....... but no announce :(

Then I created a scene and copied the code in the luup tab of the scene, and ran the scene. Same result. No errors, but no output either.
I think you got it  VERY CLOSE to working now.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 06, 2013, 06:23:08 pm
@bucko
Can you attach log output with debug enabled in plugin?

John

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 06, 2013, 06:33:22 pm
@tcarlig

Quote
You wouldn't happen know (in the ELK) how to get rid of that zone if there isn't a keypad there?

Not really much help here sorry would assume you need to un-enroll them (they must have existed at some point) or remove them via  the ELKRP software.

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tadr on November 11, 2013, 01:40:46 pm
I have some lights set to turn on when motion is detected and some scenes set to run when the Elk is armed in away mode.  Everything works great, for a while, and then at some point the vera plugin seems to lose connection with the Elk and nothing works until I reboot the vera and it reconnects with the Elk.

Does anyone else have this problem or have any ideas how to debug?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 11, 2013, 07:09:45 pm
@tadr
Start here: -
http://wiki.micasaverde.com/index.php/Store_logs_USB (http://wiki.micasaverde.com/index.php/Store_logs_USB)

Are you using serial or Ethernet interface?

My ethernet connection has been fairly solid even if the Vera restarts it gets picked up again. I moved away from serial as much as possible was having issues with ports disappearing.

Cheers

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: garth8 on January 31, 2014, 06:44:05 pm
Hi,

I'm trying to setup my Vera3 to use the Elk plugin with an M1EXP (ethernet).

I installed the plugin and followed the instructions provided.  I definitely have the right IP and unsec port - these were confirmed via the elk Andriod app.

 If I go to the Devices -> 'Elk M1 Alarm Panel settings' -> Advanced, I have the following:
device_type: urn:schemas-micasaverde-com:device:ElkAlarmPanel:1
ip:192.168.178.22:2101
device_file: D_ElkAlarmPanel1.xml
device_type:urn:schemas-micasaverde-com:device:ElkAlarmPanel:1
category_num:22
commUse:rs232  Not sure why commUse is rs232 when IP? Maybe this is the problem?

However, when starting the up I get an error "Lua Startup Failure" in the MIOS interface, and in the device logs I have the following:
Code: [Select]
XXX-UpdateSystemMessagesTasks now 1=Elk Alarm Panel: starting up... timeout 0 (-139c00d680>
50      02/01/14 10:19:22.229   luup_log:4: ElkPlugin::checkMessage: ERROR: Empty message. <0x2c20d680>
50      02/01/14 10:19:22.229   luup_log:4: ElkPlugin::getVersion: ERROR: Failed to get version. <0x2c20d680>
50      02/01/14 10:19:43.193   luup_log:4: ElkPlugin::checkMessage: ERROR: Empty message. <0x2c20d680>
50      02/01/14 10:19:43.193   luup_log:4: ElkPlugin::getVersion: ERROR: Failed to get version. <0x2c20d680>
50      02/01/14 10:19:55.596   luup_log:4: ElkPlugin::checkMessage: ERROR: Empty message. <0x2c20d680>
50      02/01/14 10:19:55.596   luup_log:4: ElkPlugin::getVersion: ERROR: Failed to get version. <0x2c20d680>
LuaInterface::CallFunction_Startup-2 device 4 function elkStartup failed Elk Alarm
10      02/01/14 10:19:55.599   XXX-UpdateSystemMessagesTasks now 2=Elk Alarm Panel: No version returned timeout 0 ) <0x2c20d680>


Sorry if the question is noobish - I have read through the wiki/help files/forum and couldn't find any solution.  Any help would be much appreciated.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: aschwalb on February 01, 2014, 12:53:34 pm
Hey, I have the version 1.1 plugin installed and working.  BUt I just noticed that there maybe a version 2?  Also I cant figure out how to have the panel disarm automatically if I enter a valid code in my yale zwave lock?  I went into advance and selected the panel and requestarmcode and entered Disarmed and my pin..  I am clearly missing something... 
Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 05, 2014, 12:29:43 am
@garth8
commUse:rs232 is OK.

Are there any other messages?

It is not a connection error as it would fail before this
Code: [Select]
  if (not checkConnectionType()) then
    return false, "Communications error", "Elk Alarm Panel"
  end

If the M1 is communicating OK even though the plugin fails you should get ELK-M1 messages in the log. If you don't I suggest you look at the M1-EXP.

Sorry I can't help more currently will have a look when I get a chance and see if I can offer some guidance.

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 05, 2014, 12:34:26 am
@aschwalb
Version 2 is beta. I have no idea how many people are using it so I am unsure if it can be recommended at this point  :)

I have had no experience with zwave locks someone else may be able to answer that.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on February 05, 2014, 01:21:17 am
I've been running V2 for several months with no problems.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: big517 on February 05, 2014, 04:48:13 pm
No problems in V2.  Rock Solid.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on March 18, 2014, 05:08:33 pm
I have yet to install this updated plugin (still on ver.1), so a quick question...

I read in this thread the issue if the Elk is rebooted then the plugin won't automatically reconnect.
Has that been fixed since?

Thanks for working on this plugin!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on March 19, 2014, 12:54:23 pm
I have yet to install this updated plugin (still on ver.1), so a quick question...

I read in this thread the issue if the Elk is rebooted then the plugin won't automatically reconnect.
Has that been fixed since?

Thanks for working on this plugin!

It seems to me it does now.  However, if it doesn't then just reloading LUUP would force it to reconnect.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: honedog on April 23, 2014, 04:32:55 pm
Hello,

I installed the Elk M1 plugin and got everything configured.  I am having a strange problem where any activity on any of the zones sends an alert even though there are not alerts configured.  This is a copy of the alert message that I receive.  Any idea of how to turn these off? :)

Your trigger "" occurred.

The originating device ID:25 Zone 9: Dining Motion in room: Great Room

The ID is: 125745915
Code: Tripped Value:
Serial #30009760
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 27, 2014, 09:43:39 pm
@honedog

I don't think this is plugin issue. Try under "Account -> My Alerts" and delete any non-required alerts.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: asahani on August 12, 2014, 06:46:07 am
hey @zoot1612,
Are you planning to test the ELK M1 plugin with UI7 anytime soon mate? Would love a report on it prior to upgrading as it's the most critical plugin that I am using.

Appreciate you assistance in advance.

Aman
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on August 12, 2014, 06:41:55 pm
@asahani
Version in store does not work, version here http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes) has basic functionality but none of the javascript tabs are working.

I won't be doing any work on plugin for migration to UI7 until I have more info on what needs to be actually done to make it fit visually and any other changes required. Currently there is no info on porting plugins to UI7.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: asahani on August 12, 2014, 08:01:17 pm
@asahani
Version in store does not work, version here http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes) has basic functionality but none of the javascript tabs are working.

I won't be doing any work on plugin for migration to UI7 until I have more info on what needs to be actually done to make it fit visually and any other changes required. Currently there is no info on porting plugins to UI7.

Thanks Zoot, I will wait up until you get on with updating the plugin before upgrading to UI7. Please let me know if I can be of any assistance. I am a programmer by trade and qualification :)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Homer on September 01, 2014, 02:15:53 am
Hi! First post  :)

Waiting on my Vera 3 to arrive!!!!

I live in Australia and am in the process of building a new home. The builder has offered to install a Ness security system. After reading some of the stuff here, it looks like I can have each of the alarms sensors monitored by Vera 3, right?

And for anyone else who lives down under, what exactly do I need to purchase and attach to the alarm panel, so the Vera 3 can communicate with the system? Is this all I need : http://nesscorporation.com/ness-automation-1/ness-automation-modules/m1-xep-ethernet-port-bus-expander-interface.html

thanks
Homer
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: kfc01 on September 03, 2014, 01:29:51 am
Hey Homer, Im in the same boat as you. Just had house handover and the M1 is being installed, hopefully I will connect it up tonight and then the fun begins.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: asahani on September 03, 2014, 01:35:50 am
Hi Homer,
Yes, you only need the XEP Ethernet module and you are good to go. Make sure you have the admin details for the ELKM1 RP access software


Sent from my iPhone using Tapatalk
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: asahani on September 17, 2014, 05:32:35 am
hey @zoot have u heard anything from MCV regarding migration to UI7? the only thing stopping me from upgrading is the M1!!!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 17, 2014, 10:41:58 pm
@asahani
I have not followed up with anything as yet but I don't believe there is information forthcoming from MCV as yet. I have made a UI7 build but not really tested so leave it up to you whether you do or not.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bwalterssr on October 01, 2014, 12:24:15 am
@asahani
Version in store does not work, version here http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes (http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes) has basic functionality but none of the javascript tabs are working.

I won't be doing any work on plugin for migration to UI7 until I have more info on what needs to be actually done to make it fit visually and any other changes required. Currently there is no info on porting plugins to UI7.


It's now almost October.  No info from Vera?  No hope of having ELK module work with UI7?


Never would have purchased VERA if I had known it was destined to go from BETA to BETA to BETA with absolutely nothing stable!

Ridiculous!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on October 12, 2014, 07:23:31 pm
@bwalterssr

If you want UI7 you can try this: -
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/115/branches/UI7?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/115/branches/UI7?old_path=%2F&format=zip)

Did not fully test as I rolled back to UI5

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tadr on October 27, 2014, 05:36:57 pm
I will also be waiting to upgrade to UI7 until the M1 plugin is updated -- hands down the most important plugin I use.  Thanks to the developer for all your hard work and hopefully vera will give you the info you need to update it soon!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: cyberdac on November 12, 2014, 10:05:10 am
Any update on U7 support? This is the most valuable plug-in for me too. I'm excited to try U7, but without Elk M1 support it is meaningless.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: angusfoot on November 12, 2014, 12:55:50 pm
Looking for some basic help on luup syntax for arming Elk M1. Elk Plugin is installed, configured, and working. Partition can be armed and disarmed when accessed from device list.  Trying to add some lua code to a scene, and under UI7 there is no available advanced tab to configure device therefore I adding Lua.

The scene is simple - it turns on a z wave light and arms Elk

Here is what I have and it is not working -

luup.call_action("urn:micasaverde-com:serviceId:AlarmPartition2", "RequestArmMode", {state = "Armed"}, 135)   -- 135 is device number for the partition child device



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 13, 2014, 01:42:08 am
There is a UI7 version here: -
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/115/branches/UI7?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/115/branches/UI7?old_path=%2F&format=zip)

you will need to manually install as I have not made a combined UI5/UI7 version that can be loaded onto the app store.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tadr on January 06, 2015, 01:36:30 pm
There is a UI7 version here: -
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/115/branches/UI7?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/115/branches/UI7?old_path=%2F&format=zip)

you will need to manually install as I have not made a combined UI5/UI7 version that can be loaded onto the app store.

I tested out the UI7 version that Zoot posted.  It seems to work well on my VeraEdge -- many thanks for making the necessary revisions so promptly!

Unfortunately, the Edge has so many other issues (related to configuring switches) that I had to revert back to my Vera Lite.  At least I know that once the other issues get ironed out, it looks like I won't have to worry about the Elk M1 plugin.  Thanks again!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 08, 2015, 02:43:15 am
Hi all
Combined UI5/UI7 version available here: -
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/123/branches/2.0_changes?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/123/branches/2.0_changes?old_path=%2F&format=zip)

Other changes: -
Auto config for ethernet connection.
Added "ChimeEnabled" to triggers. (Not tested)
Added reconnect if link fails.

Zone type changes: -
Zone types 1 2 3 map to Door Sensor.
Zone types : ; < map to Smoke Sensor.
Zone type Q map to Temperature Sensor
Zone type I map to TempLeak Sensor.
All other Zone types  default to Motion Sensor.

Other small fixes.

Back up before usage to ensure that you can roll back if necessary.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mb323 on January 15, 2015, 12:08:44 am
I tried the latest version, my VeraEdge would kick off a backup about every 10 seconds, then half way through the back up the Elk plugin would start up and the backup would stop, about 10 seconds later the process started over.  Made the VeraEdge un-responsive.

I then installed the previous version and those problems went away, although all of my zones (doors/windows) were detected as motion sensors except for 2.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mb323 on January 15, 2015, 12:12:01 pm
I'm sure this is answered somewhere but I haven't figured it out yet... How do I set the alarm state from the mode?

In UI7, when I go to modes the partition does not show up.  Tried to create a scene to arm the partition but the scene doesn't let me change the partition armed status.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: YellowShark on January 15, 2015, 08:46:39 pm
Thanks for the update.  I too had the loop of restarting lua and backing up configuration when moving to the new release.  Things fixed when I restored to the last UI7 branch.  Let me know if I can help.  Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 16, 2015, 03:48:35 am
@YellowShark @mb323
Can either of you supply logs?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: mb323 on January 16, 2015, 10:35:15 am
No problem posting logs.... however I have already rolled back, I can install the new code again but I can't find the logs.  It looks like the only way to get logs is to export to a usb memory stick?  I have tried the USB stick and unable to actually get a log, there is no log that is downloadable, the USB stick is rendered unreadable and takes forever to enable/disable....

Any suggestions?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 25, 2015, 06:10:49 am
@mb323
No sorry don't do USB logging, try looking around the forum I am sure there is a lot of posts regarding this.

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: cyberdac on February 18, 2015, 04:33:20 pm
Is there an ETA for when the Elk M1 plug in will be updated in the MiOS Marketplace?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 18, 2015, 05:27:20 pm
@cyberdac
Latest version here: -
http://code.mios.com/trac/mios_elk-alarm-panel/changeset/126/branches/2.0_changes?old_path=%2F&format=zip

I was hoping to get more feedback regarding any issues before releasing in market place. If I don't get anything over the next couple of day's will upload.

Cheers

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lazyone on February 19, 2015, 10:16:56 pm
I have some interior doors that are classified as "16-non alarm" in the Elk.  They were automatically classified as motion sensors in the Veralite.  What is the proper way to make these "door sensors" in the vera.

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 19, 2015, 11:36:13 pm
This will require development as I would need to add some sort of override. Currently type is set by alarm panel as per:-

Zone types 1 2 3 map to Door Sensor.
Zone types : ; < map to Smoke Sensor.
Zone type Q map to Temperature Sensor
Zone type I map to TempLeak Sensor.
All other Zone types  default to Motion Sensor.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lholho on August 18, 2015, 10:39:47 pm
When I trigger a scene that utilizes the RequestArmMode/State=Armed (with correct pin), it toggles from Disarm to Arm and vice versa.   Is there a means of just creating a scene that could only Arm and another scene that could only Disarm.   Currently the scene toggles between the two states.

Thank in advance for any help
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on August 21, 2015, 02:16:45 am
@lholho
This is not the desired behavior, can you send me the logs (with redacted pin etc.) so I can see what is happening?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on August 24, 2015, 09:33:01 pm
@lholho
Can you please look at the following thread and go to link as per activemind's post. hopefully some info in there will help.

http://forum.micasaverde.com/index.php/topic,32158.msg233659.html#msg233659
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 02, 2015, 03:01:17 pm
Yes, my issue was resolved with the details in the link I posted.

Currently I am struggling with Elk Fob triggering events in vera.

Fobs arm and disarm my Elk fine and then vera runs the scenes but the keyfob motion sensor never trips from Vera's point of view.

Anyone got that to work?

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 02, 2015, 03:30:27 pm
Digging some more into the keyfob issue...

I see that the json files and the device type used in vera are different.

I can try changing them to be the same although I dont really understand the differences between DoorSensor and MotionSensor devices in Vera.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 03, 2015, 06:36:37 pm
@activemind
What sort of fob's are we talking about?

If it is the four button it would be interesting to see what comes back via the serial line. I don't have one so if you send me some log details I will see what I can do.

Note: It is easy to add another zone type to the code but it is the implementation, json etc that would take awhile.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 10, 2015, 01:02:58 pm
This is the std ELK keyfob to arm/disarm the system.

http://www.elkproducts.com/product-catalog/elk-6010-four-button-keyfob-two-way-wireless

I will post debug log later this evening but it seems as if Vera does not even see that event happening!

Dont know if its relevant but I have another issue where when I disarm ELK with the fob, Vera never sees it as disarmed and continues reporting it as armed. I created a seperate account for Vera to use on my Elk and verified that it works from keypad but I get invalid pin response on Vera when I try to disarm it. Maybe its the famous invalid pin bug.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on September 10, 2015, 01:30:39 pm
When I trigger a scene that utilizes the RequestArmMode/State=Armed (with correct pin), it toggles from Disarm to Arm and vice versa.   Is there a means of just creating a scene that could only Arm and another scene that could only Disarm.   Currently the scene toggles between the two states.

Thank in advance for any help

The PIN number thing was annoying me, so I created tasks on the ELK itself for arming and disarming.  These then show up as devices in the Vera, and then I arm and disarm on the vera by turning on the relevant Elk Task.  It actually avoids a lot of headache.  The only drawback is that it doesn't require a valid PIN to run them, so if you're super paranoid, this might not be a good solution.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 10, 2015, 07:56:12 pm
This is the std ELK keyfob to arm/disarm the system.

http://www.elkproducts.com/product-catalog/elk-6010-four-button-keyfob-two-way-wireless

I will post debug log later this evening but it seems as if Vera does not even see that event happening!

Dont know if its relevant but I have another issue where when I disarm ELK with the fob, Vera never sees it as disarmed and continues reporting it as armed. I created a seperate account for Vera to use on my Elk and verified that it works from keypad but I get invalid pin response on Vera when I try to disarm it. Maybe its the famous invalid pin bug.

-AM

The user that is used to control the Vera does not have "Access" rights on the ELK does it? I know that this has been mentioned before but just making sure :)

Here is part of the instruction taken from http://wiki.universal-devices.com/index.php?title=ISY-994i_Series_INSTEON:ELK_Security_Module (http://wiki.universal-devices.com/index.php?title=ISY-994i_Series_INSTEON:ELK_Security_Module) with ISY replaced by ELK.
Code: [Select]
Go to Users

    Select the user that you want to use for the ELK connection
    Ensure the user has a 4 or 6 digit access code defined
    Select the following checkboxes:
        Arm
        Disarm
        Bypass
    Make sure the following are not selected:
        Access
    Click the [Send To Control] Button



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 14, 2015, 05:02:51 pm
Yes, I did verify that I can use Vera's account from the keypad successfully to arm and disarm.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 17, 2015, 07:12:37 pm
Spent some more time today trying to narrow down the Invalid PIN issue.

It seems that the panel is responding with that packet for some reason and then follows up with a alarm status report which indicates that the requested action was completed.

I looked around on Elk and didnt see any setting that I could be missing which forces the panel to respond with invalid pin message.

I tried the same pin from keypad and I can arm/disarm from keypad.

Or am I missing something in elk config when talking to it with a script. How can I increase Elk's verbosity?

Anyways, here is the log, the PIN I tried using 8216 and you can see that in the sent message.

02      09/17/15 15:38:45.240   luup_log:3: ElkPlugin::storePinCode: PIN code stored for partition 1. <0x2ded9680>
02      09/17/15 15:38:52.866   luup_log:3: ElkPlugin::requestArmMode: Request to arm partition 1 (device 6) to state 'Disarmed'. <0x2e306680>
02      09/17/15 15:38:52.867   luup_log:3: ElkPlugin::sendCommand: Send command: '0Da010082160039'. <0x2e306680>
02      09/17/15 15:38:52.902   luup_log:3: ElkPlugin::checkMessage: length=23(0x17), message type=IC, data='00000000000000102', misc=00, checksum=79 <0x2e306680>
02      09/17/15 15:38:52.903   luup_log:3: ElkPlugin::readArmRequestResponse: Got expected message. <0x2e306680>
50      09/17/15 15:38:52.903   luup_log:3: ElkPlugin::requestArmMode: ERROR: Invalid PIN code. <0x2e306680>
50      09/17/15 15:38:52.904   luup_log:3: ElkPlugin::task: Invalid PIN code. <0x2e306680>
02      09/17/15 15:38:52.921   luup_log:3: ElkPlugin::checkMessage: length=30(0x1E), message type=AS, data='000000000111111100000000', misc=00, checksum=0F <0x2e0d9680>
02      09/17/15 15:38:52.922   luup_log:3: ElkPlugin::handlerFunc Message type description: Arming Status Report <0x2e0d9680>
02      09/17/15 15:38:52.923   luup_log:3: ElkPlugin::getPartitionState: Partition 1 (device 6), got variable 'AlarmMemory' = '0'. <0x2e0d9680>
02      09/17/15 15:38:52.924   luup_log:3: ElkPlugin::processArmingStatusReport: partition 1, armingStatus=Disarmed, armUpState=0, alarmState=0 <0x2e0d9680>
02      09/17/15 15:38:52.925   luup_log:3: ElkPlugin::setPartitionState: Set variable 'ArmMode' = 'Disarmed' for partition 1 (device 6). <0x2e0d9680>
02      09/17/15 15:38:52.926   luup_log:3: ElkPlugin::setPartitionState: Set variable 'DetailedArmMode' = 'NotReady' for partition 1 (device 6). <0x2e0d9680>
02      09/17/15 15:38:52.941   luup_log:3: ElkPlugin::checkMessage: length=30(0x1E), message type=AS, data='000000000111111100000000', misc=00, checksum=0F <0x2e0d9680>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 17, 2015, 11:13:42 pm
@activemind

Found the issue but may be some time before update.

Can you please send a screenshot from ELKRP software of the user you are using. I have attached a screenshot of what I am after.

From a security point of view you may want to blur your pin numbers or replace with an X.

Code: [Select]
02      09/17/15 15:38:52.867   luup_log:3: ElkPlugin::sendCommand: Send command: '0Da0100XXXX0039'. <0x2e306680>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 18, 2015, 12:25:16 am
Sure, mine is very silimar to what you have. I will post in a little bit.

My theory is that elk is not liking script connection through non secure port and is sending a invalid pin packet even though its going ahead and doing the action because its a valid pin. Hence the followup AS responses.

Not really worried about the pin right now. I will go ahead and change it. Also my elk is not exposed in any way to internet and you will have to break my ssh connection to get in.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 19, 2015, 04:34:59 am
@activemind
New version http://code.mios.com/trac/mios_elk-alarm-panel/changeset/135/branches/2.0_changes?old_path=%2F&format=zip (http://code.mios.com/trac/mios_elk-alarm-panel/changeset/135/branches/2.0_changes?old_path=%2F&format=zip) if you want to give it a go. There are changes in the plugin that may cause regressions etc. as I have changed code around a fair bit since last release and I have not released a beta.



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 21, 2015, 12:44:37 pm
I can give it a try. Can you give me a ptr on how to load this code from my PC? The only version I have installed so far is from the app store.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 21, 2015, 01:07:59 pm
@zoot - looking at the code changes in this new version...I see that you modifed

Code: [Select]
elseif (msgType == "IC") then
      debug("readArmRequestResponse: Got expected message.")
      local code, codeNo, keypadNo = data:match("^(%x+)(%d%d%d)(%d%d)$")
      if (tonumber(code,16) == 0) then
        debug("readArmRequestResponse: PIN ok, waiting for arm request response.")
        luup.io.intercept()
      else
        debug("readArmRequestResponse: incorrect PIN:" .. code ..  ".")
        return "IC"
      end

in readArmRequest function.

Are you saying that the response packet with IC that we are getting is expected?

Where did you read that?

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 21, 2015, 06:43:48 pm
Section Send Valid Or Invalid User Code Format (IC)

DDDDDDDDDDDD ? 12 characters of ASCII Hex (0 to F) user code data. High nibble and low nibble of each code data byte. 4 & 6 digit codes are left padded with zeros. Set to all zeros if code is valid.

UUU -  3 characters of ASCII decimal User Code Number 001 to 103, indicating which valid user code was entered. Version 4.3.2 and later.

000 ? Valid user code number. Set to 0 for an invalid user code.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 22, 2015, 12:35:15 pm
Bingo! Section 4.19 of the ELK protocol document.

The response that we are getting is expected and its just telling is that the code was valid and good.

I think we need to enhance the packet analysis logic a little more in the code so that we dont miss the REAL bad code case.

Code: [Select]
This ASCII Data Packet will be sent when a user code is entered and a valid code is found.
Only the valid user code number will be returned. If a user code is not found in the M1?s User
Code Data Base, the code that was enter will be sent. If the User Code Length is set to 4 digits, the
invalid data packet will be sent after 4 digits are entered, then repeated for each additional invalid
user code digit. If the User Code Length is set to 6 digits, the invalid data packet will be sent after
6 digits are entered, then repeated for each additional invalid user digit
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 22, 2015, 04:54:11 pm
Uploading just the lua file to the system and reloading luup renders it useless. It cant talk to Elk anymore.

Is that the right way to load the files you provided or I should be doing something else?

I will revert back to repo version and see if it works.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 23, 2015, 12:51:10 pm
So the repo version works (though my system is all screwed up now for various scenes).

I tried changing just the lua file for the repo version and uploading it and that seems to bomb too.

Can someone point me to the correct procdeure for uploading the files to vera?

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 23, 2015, 07:42:54 pm
Here is what Elk sends when I arm and disarm using the FOB:

Arm:
Code: [Select]
1CLD11731991164009240005150037
1EAS100000004111111100000000000A
19KC01000000000100000000016
0FEE10010010100EC
1EAS1000000031111111000000000902
16XK29401652409151100064
0FEE10000000100EE
1EAS100000004111111100000000000A


Disarm
Code: [Select]
1CLD11741991164009240005150036
19KC01000000000100000000016
1EAS000000001111111100000000000E
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 24, 2015, 06:38:32 am
@activemind
So the repo version works (though my system is all screwed up now for various scenes).

The plugin has changed how it handles some devices so it may change devices numbers and stuff up scenes. I think you would need to roll back if you want everything the way it was.

I tried changing just the lua file for the repo version and uploading it and that seems to bomb too.

Again all the changes are going to affect the way the plugin interworks with all the old files so you need to use files from the repo.

Can someone point me to the correct procdeure for uploading the files to vera?

I need to update the wiki to put the information in there for everyone. What UI version are you using?




Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 24, 2015, 07:09:44 am
@activemind
Here is what Elk sends when I arm and disarm using the FOB:

Nothing to indicate a FOB or other information that may help. So for now no go.

More info here: -
http://cocoontech.com/forums/topic/22005-elk-6010-two-way-rf-keyfob-used-with-an-external-ha-system/ (http://cocoontech.com/forums/topic/22005-elk-6010-two-way-rf-keyfob-used-with-an-external-ha-system/)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on September 24, 2015, 12:50:50 pm
Quote
I need to update the wiki to put the information in there for everyone. What UI version are you using?

I am on UI7.

Thanks for the update about the FOB. Its a bummer but not a showstopper. I am sure I can create some tasks on Elk to capture what FOB was used and use that info to trigger Vera.

I will try loading all the files from your link and see if it works. I need to have this bugfix.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 24, 2015, 06:52:10 pm
@activemind
I am on UI7.

I will try loading all the files from your link and see if it works. I need to have this bugfix.

For UI7 I will sit down over the weekend and see if it installs from scratch OK as I haven't had a chance to test it as yet. Then will release a beta.


Sorry about your scenes :(
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: pasichnyk on March 26, 2016, 02:00:06 pm
Hi, I'm trying to setup Vera with my Elk M1 and M1XEP.  I have it setup and connecting, and Vera is able to observe the status of my "Partition 1: Area 1" device.  (if a door is open it shows "Not Ready", and if everything is closed it shows "Ready" in Vera)  However if i try to change Arm Mode through the UI, it tells me I have an invalid pin code, though i'm positive the code is correct. 

I'm trying to get Vera and Elk setup so that if I Arm/Disarm from the physical keypad, I can kick off a scene in Vera to set the mode appropriately (home, away, night, vacation) and have found the lua to do that, and running those scenes works, however the linkage doesn't seem to be working (probably same issue above) because the scenes don't fire when the keypad is used.  Likewise, i'd like to set it up so that if the mode is changed through the vera app, that it tells Elk to exit/stay/vacation/disarm appropriately.

Any ideas on how to get this working?  I see i'm on the current 2.19 plugin, but there is talk of a newer version above (can it be released for easy upgrade?)


Thanks,
Jesse
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on June 29, 2016, 01:37:55 pm
Read my previous posts. Its a bug in the plugin.

I have some cycles now and will be taking a look at this because I plan on doing exactly the same thing as you described.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: activemind on June 29, 2016, 02:41:49 pm
I have attached a file to this post that you need to upload to fix the invalid pin issue.

Its just a backport of the solution zoot posted a couple of posts above.

-AM
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on June 29, 2016, 09:01:12 pm
If you are really adventurous try this: -
https://github.com/zoot1612/plugin-elkm1/archive/2.41.zip

Please note that this has a lot of changes that may affect your current install.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on July 05, 2016, 12:10:11 am
Hi,
I posted this 5 years ago and I was wondering if any of these features ever made it into a new revision of the plugin.
http://forum.micasaverde.com/index.php/topic,6916.msg45679.html#msg45679

Quote
I have only just skimmed through the wiki at this point, but I will install the plugin tomorrow after I get some shut-eye.
Being quite familiar with the Elk M1G and a couple of other applications that can work with it, I would like to make a couple of requests right away, if I may be so bold. ;)
The following features would be excellent additions:
1) A tab with the statuses of the zones (this would include the temperature probes that may be placed in the first 16(?) zone slots),
2) A tab with the statuses and control buttons for the outputs (relays),
3) A tab that lists and gives us the option to trigger tasks.

Light control would be nice, but I'm sure we can do that by other means. I guess the main purpose would be to flash the lights in the event of an alarm, or activate a certain scene when the system is disarmed. Can we use these Elk events in our programs on the Vera 2 with this plugin?

Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on July 17, 2016, 08:18:48 pm
Hi,
I posted this 5 years ago and I was wondering if any of these features ever made it into a new revision of the plugin.
http://forum.micasaverde.com/index.php/topic,6916.msg45679.html#msg45679

Quote
I have only just skimmed through the wiki at this point, but I will install the plugin tomorrow after I get some shut-eye.
Being quite familiar with the Elk M1G and a couple of other applications that can work with it, I would like to make a couple of requests right away, if I may be so bold. ;)
The following features would be excellent additions:
1) A tab with the statuses of the zones (this would include the temperature probes that may be placed in the first 16(?) zone slots),
2) A tab with the statuses and control buttons for the outputs (relays),
3) A tab that lists and gives us the option to trigger tasks.

Light control would be nice, but I'm sure we can do that by other means. I guess the main purpose would be to flash the lights in the event of an alarm, or activate a certain scene when the system is disarmed. Can we use these Elk events in our programs on the Vera 2 with this plugin?

Thanks.

Some of this functionality is in the plugin but none of it uses tabs: -
Quote
1) A tab with the statuses of the zones (this would include the temperature probes that may be placed in the first 16(?) zone slots),
Zones are created as child devices to the main panel, what device type created depends on how they are catogorized in the alarm panel. Here is the list and the associated mapping (Which inludes a child device for a temperature sensor): -

Code: [Select]
local ZONE_DEFINITIONS = {
  ['0'] = {discription = "Disabled", deviceType = '0'},
  ['1'] = {discription = "Burglar Entry/Exit 1", deviceType = '1'},
  ['2'] = {discription = "Burglar Entry/Exit 2", deviceType = '1'},
  ['3'] = {discription = "Burglar Perimeter Instant", deviceType = '1'},
  ['4'] = {discription = "Burglar Interior", deviceType = '2'},
  ['5'] = {discription = "Burglar Interior Follower", deviceType = '2'},
  ['6'] = {discription = "Burglar Interior Night", deviceType = '2'},
  ['7'] = {discription = "Burglar Interior Night Delay", deviceType = '2'},
  ['8'] = {discription = "Burglar 24 Hour", deviceType = '2'},
  ['9'] = {discription = "Burglar Box Tamper", deviceType = '2'},
  [':'] = {discription = "Fire Alarm", deviceType = '3'},
  [';'] = {discription = "Fire Verified", deviceType = '3'},
  ['<'] = {discription = "Fire Supervisory", deviceType = '3'},
  ['='] = {discription = "Aux Alarm 1", deviceType = '2'},
  ['>'] = {discription = "Aux Alarm 2", deviceType = '2'},
  ['?'] = {discription = "Keyfob", deviceType = '6'},
  ['@'] = {discription = "Non Alarm", deviceType = '2'},
  ['A'] = {discription = "Carbon Monoxide", deviceType = '5'},
  ['B'] = {discription = "Emergency Alarm", deviceType = '2'},
  ['C'] = {discription = "Freeze Alarm", deviceType = '5'},
  ['D'] = {discription = "Gas Alarm", deviceType = '5'},
  ['E'] = {discription = "Heat Alarm", deviceType = '5'},
  ['F'] = {discription = "Medical Alarm", deviceType = '2'},
  ['G'] = {discription = "Police Alarm", deviceType = '2'},
  ['H'] = {discription = "Police No Indication", deviceType = '2'},
  ['I'] = {discription = "Water Alarm", deviceType = '5'},
  ['J'] = {discription = "Key Momentary Arm / Disarm", deviceType = '2'},
  ['K'] = {discription = "Key Momentary Arm Away", deviceType = '2'},
  ['L'] = {discription = "Key Momentary Arm Stay", deviceType = '2'},
  ['M'] = {discription = "Key Momentary Disarm", deviceType = '2'},
  ['N'] = {discription = "Key On/Off", deviceType = '2'},
  ['O'] = {discription = "Mute Audibles", deviceType = '2'},
  ['P'] = {discription = "Power Supervisory", deviceType = '2'},
  ['Q'] = {discription = "Temperature", deviceType = '4'},
  ['R'] = {discription = "Analog Zone", deviceType = '0'},
  ['S'] = {discription = "Phone Key", deviceType = '0'},
  ['T'] = {discription = "Intercom Key", deviceType = '0'}
}

local ZONE_DEVICE = {
  ['0'] = {},
  ['1'] = {type = "urn:schemas-micasaverde-com:device:DoorSensor:1", file = "D_DoorSensor1.xml", id = "elk_zone_"},
  ['2'] = {type = "urn:schemas-micasaverde-com:device:MotionSensor:1", file = "D_MotionSensor1.xml", id = "elk_zone_"},
  ['3'] = {type = "urn:schemas-micasaverde-com:device:SmokeSensor:1", file = "D_SmokeSensor1.xml", id = "elk_zone_"},
  ['4'] = {type = "urn:schemas-micasaverde-com:device:TemperatureSensor:1", file = "D_TemperatureSensor1.xml", id = "elk_temp_"},
  ['5'] = {type = "urn:schemas-micasaverde-com:device:TempLeakSensor:1", file = "D_TempLeakSensor1.xml", id = "elk_leak_"},
  ['6'] = {type = "urn:schemas-micasaverde-com:device:Scene:1", file = "D_Scene1.xml", id = "elk_fob_"}
}

Quote
2) A tab with the statuses and control buttons for the outputs (relays)
Outputs are created as "urn:schemas-upnp-org:device:BinaryLight:1" child devices to the main panel. To create an output it must have a valid name in the M1 panel if it is Output 1 to 64. Above 64 Output has to be listed in parent device as a comma separated value (See attached Outputs.png).

Quote
3) A tab that lists and gives us the option to trigger tasks.
Tasks are created as "urn:schemas-upnp-org:device:BinaryLight:1" child devices to the main panel. To create a task it must have a valid name in the M1 panel.

Quote
Light control would be nice, but I'm sure we can do that by other means. I guess the main purpose would be to flash the lights in the event of an alarm, or activate a certain scene when the system is disarmed. Can we use these Elk events in our programs on the Vera 2 with this plugin?
I started adding PLC lighting but because I don't have lighting myself it is sitting in limbo unless someone out there is willing to test and feedback (latest beta creates a dummy light as default).

The main point making a child device for each of these is that it gives the user access to events etc. for each device.

Currently there are tabs for Elk trouble, log, time, counters and custom settings but they still require some work.

Hopefully this makes sense:)

Thanks

John
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on July 17, 2016, 08:52:38 pm
Attached screenshots of counters and customer, these still have some way to go specially custom as it doesn't handle "Time Of Day" correctly yet.

Other things that may not be apparent: -
1. For Outputs there is a timeOutputActive variable that is set to 0 as default. This variable controls the amount of time the Output remains on.
2. Where possible devices are created using available uPnP templates and therefore can be used in scenes, notifications etc.
3. Speak phrases and words available in advance scenes.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on July 17, 2016, 09:21:03 pm
Thanks, John!

Looks like I have a reason to buy another Vera now. I have a Vera 2 gathering dust. At the time it was a great little box even though it was somewhat limited. It looks like The Elk plugin has come a long way so I'm going to have to upgrade and see what it can do.
I currently have a bit of a full plate, but I'll definitely try to set this up by the end of August and give you some feedback.
Thanks again.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on September 06, 2016, 01:14:50 am
So a new Vera hasn't made it into my budget yet since it seems I'm still squeezing life out of the Vera 2 on UI5.

I installed the Elk plugin as one of my top priorities and began testing. I've run into a couple of problems that hopefully you can sort out for me (or possibly someone else).

1) I can arm and disarm the system in various states, but it requires my PIN each time. For some reason when I attempt to store it, it won't and I continually have to enter it.
and
2) I am unable to trigger tasks. I tried the ON button associated to the task, but it does absolutely nothing.

I'm trying to trigger a scene using a doorbell sensor hooked to one of my zones, which triggers a task on my Elk. I'd like to flash some LIFX bulbs when someone rings the bell. I've set up the trigger for the scene, but I'll need to test it once I figure out how to trigger that zone/task.

Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 10, 2016, 12:15:49 am
@Quixote

1) I can arm and disarm the system in various states, but it requires my PIN each time. For some reason when I attempt to store it, it won't and I continually have to enter it.

Can you look at the log files on this, it may be able to provide more info.

2) I am unable to trigger tasks. I tried the ON button associated to the task, but it does absolutely nothing.

Try using the "Advanced" tab instead.

Currently on holidays so will not really be able to help much. As far as the ON button goes will have a look at it when I am back.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on September 20, 2016, 07:20:40 pm
Hey, I'm back at it again and this time I'm having a little trouble with figuring out how to trigger a scene using the Elk.
I hope this isn't a stupid question!  I was wondering how I can trigger a scene when the alarm is tripped. I only see triggers for changes in armed status.
Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bwalterssr on September 28, 2016, 12:06:15 pm
activemind -

I used to do the same thing in UI5.  However now in UI7 there is a plugin problem?  Your file somehow fixes the issue?

What/how do I use the .lua file you uploaded?

Sorry, but I'm a novice at this.

Thanks,
Bill
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on October 02, 2016, 04:39:47 am
@Quixote

1) I can arm and disarm the system in various states, but it requires my PIN each time. For some reason when I attempt to store it, it won't and I continually have to enter it.

Can you look at the log files on this, it may be able to provide more info.

2) I am unable to trigger tasks. I tried the ON button associated to the task, but it does absolutely nothing.

Try using the "Advanced" tab instead.

Currently on holidays so will not really be able to help much. As far as the ON button goes will have a look at it when I am back.

Ok, let's give this another shot. I hope you're back from holidays! I still see no solution.
Can you tell me how to find the logs you mentioned?
I'd really like to be able to create scenes for the various armed states, as well as trigger notifications and scenes when the system is set off (without having to replicate that scene for every single sensor).
Thanks!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bwalterssr on October 06, 2016, 05:56:56 pm
All -

I have been doing some 'exploring' trying to find a way to find a 'work around' to the PIN problem.

I have found one possibility:  SCENE and use the Advanced Editor in section 3 of the scene creation/modification dialog.

You can load a pin using a scene:

#40 Partition 1: Walters   
Service: urn:micasaverde-com:serviceId:ElkAlarmPanel1        StorePinCode     PinCodeValue: (4 digits here)   


#40 Partition 1: Walters   
Service: urn:micasaverde-com:serviceId:AlarmPartition2        RequestQuickArmMode     State: STAY


HOWEVER!  Note the 2 line immediately above.  Scripting engine asks for "AlarmPartition2"  which does not exist....

So, the Scene loads a PIN for security code of Alarm Panel but you can't use it because it thinks we want "Partition2" to be armed.

The "state" variable box wants a STRING value.  Should it be entered in Quotes?  What?

Thanks to all

Bill
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on October 13, 2016, 05:14:28 pm
I'm on UI7 and seems to be working well, but I cannot get the log to load.
I get the following message instead:  "Error executing function logTab(): setCpanelContent is not defined"

I don't see similar issues in the forum.  Any guesses?
Great plugin - my most used one!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bwalterssr on October 15, 2016, 09:29:45 pm
There are known errors in the plug-in that the author has not addressed.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bwalterssr on October 19, 2016, 07:27:34 pm
OK, solved the problem with arming using a small 4 button remote.

Created a scene "remote arm stay"

Then used "Advanced Editor" to add as the last item in the scene:

"Partition 1"  "RequestArmMode"

Then in the two boxes opening:  State:  StayInstant
                                              PINCode: 00xxxx

The Elk RS232 documentation specifies PIN code as 6 digits; if you use only 4, put 00 as leading 2 digits before your pin code.

The "Invalid PIN Code" error still shows, however, the alarm Arms and Disarms as requested.

Dunno but it works for me!

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on October 19, 2016, 11:23:03 pm
A clever band-aid solution, but far from ideal.
The code needs to be modified to polish this up a bit. I think we're at a point in the development of home automation tech that things like this are the equivalent of duct-taping the bumper to your car.

Thanks for the backup plan, in any case!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 03, 2016, 10:09:26 pm
All -

I have been doing some 'exploring' trying to find a way to find a 'work around' to the PIN problem.

I have found one possibility:  SCENE and use the Advanced Editor in section 3 of the scene creation/modification dialog.

You can load a pin using a scene:

#40 Partition 1: Walters   
Service: urn:micasaverde-com:serviceId:ElkAlarmPanel1        StorePinCode     PinCodeValue: (4 digits here)   


#40 Partition 1: Walters   
Service: urn:micasaverde-com:serviceId:AlarmPartition2        RequestQuickArmMode     State: STAY


HOWEVER!  Note the 2 line immediately above.  Scripting engine asks for "AlarmPartition2"  which does not exist....

So, the Scene loads a PIN for security code of Alarm Panel but you can't use it because it thinks we want "Partition2" to be armed.

The "state" variable box wants a STRING value.  Should it be entered in Quotes?  What?

Thanks to all

Bill


"Partition2" is the service file "urn:micasaverde-com:serviceId:AlarmPartition2" not the actual partition.

The service file is released as part of the Vera firmware and has the following standard services: -

ArmMode
DetailedArmMode
Alarm
ChimeEnabled
AlarmMemory
LastAlarmActive
LastUser
VendorStatus
VendorStatusCode
VendorStatusData
RequestArmMode
RequestQuickArmMode
RequestPanicMode

Note: Not all these services are supported by the Elk plugin.

As you see from above this service file does not support PIN storage etc. therefore PIN manipulation services are built under the "urn:micasaverde-com:serviceId:ElkAlarmPanel1" service file.

The service file is released as part of the Elk plugin and has the following standard services: -

ClearPinCode
ClearTask
GetEventJob
GetTroubleReport
GetHeartbeat
FunctionKey
StorePinCode
SetElkRTC
SetCounter
SetCustom
Speak
Display

While the PIN code is handled under the "urn:micasaverde-com:serviceId:ElkAlarmPanel1" service file internally the PIN code is stored against the partition device in memory and does not survive a restart.

Code: [Select]
  g_pinCodes[tonumber(partitionNo, 10)] = pinCode
  debug("storePinCode: PIN code stored for partition " .. partitionNo .. ".")

If the PIN has been stored in a partition then the PIN field can be left blank and plugin should check to see if the PIN is stored or not in the partition.

Code: [Select]
pinCode = tonumber(pinCode) or g_pinCodes[partitionNo]

The state of RequestArmMode can be one of the following with no quotes required.

Force
Armed
Disarmed
Stay
StayInstant
Night
NightInstant
Vacation



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on November 03, 2016, 11:05:42 pm
Now we're getting somewhere!!
Thanks! This should keep us busy for a while. :D
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: signal15 on November 04, 2016, 05:56:08 pm
I just create tasks in the Elk for Arming and Disarming, and then execute those tasks with the Vera.  No PIN required.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on November 04, 2016, 07:29:04 pm
I just create tasks in the Elk for Arming and Disarming, and then execute those tasks with the Vera.  No PIN required.

That's a great idea. I hadn't thought of that approach.
Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on November 25, 2016, 10:14:59 pm
Hey all.  After upgrading to a VeraPlus and joining the ranks for UI7, I can no longer get logs to show up in Vera from the Elk.  Instead, I get this message: 
Error executing function logTab(): setCpanelContent is not defined


Am I missing a required setting?

Thanks for the help.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 28, 2016, 01:11:56 am
Hey all.  After upgrading to a VeraPlus and joining the ranks for UI7, I can no longer get logs to show up in Vera from the Elk.  Instead, I get this message: 
Error executing function logTab(): setCpanelContent is not defined


Am I missing a required setting?

Thanks for the help.

Which version of the plugin are you using?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on December 05, 2016, 10:44:56 am
I'm on version 2.19  The app info says it's the latest version.  Do I need to download manually somewhere?

Thanks for the help
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on December 05, 2016, 11:29:04 am
I went and downloaded the files from here:
http://code.mios.com/trac/mios_elk-alarm-panel/browser/branches/2.0_changes

and uploaded them on the Vera then restated Luup.  Where was no change in behavior, and the app listing still says it's ver 2.19

My main unit is a VeraPlus, but I also have a Vera 3 on UI7.  It also shows ver 2.19 of the plugin and I just checked (over a remote connection) and the tabs don't work on that one either.  The tabs do work for the partition, but not for the main device.  I have checked the VeraPlus over a local connection before and it was no different than when remote.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on December 08, 2016, 12:05:40 pm
OK, I'm going to show my ignorance here, but is the file "shared.js" expected to be in the list of LUUP files, or is it in another folder?
It's not in my list.  Would that create a problem?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on December 08, 2016, 07:03:41 pm
OK, I'm going to show my ignorance here, but is the file "shared.js" expected to be in the list of LUUP files, or is it in another folder?
It's not in my list.  Would that create a problem?

This is not a plugin file.

For latest elkm1 files go here: -

https://github.com/zoot1612/plugin-elkm1 (https://github.com/zoot1612/plugin-elkm1)

Please note that these files are beta so always a risk and I haven't got the time to fully test and publish in the app store currently.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: reaper607 on December 21, 2016, 09:18:52 pm
So elk released updates to the M1XEP (2.0.42) and the Panel itself (5.3.10)

On the 2.19 version in the marketplace i get this error:

Code: [Select]
01 12/21/16 20:13:50.588 LuaInterface::CallFunction_Startup-1 device 42 function elkStartup failed [string "-- TODO..."]:1403: attempt to index field '?' (a nil value) <0x2bfed680>

After downloading and uploading the latest from git hub i get this error:

Code: [Select]
01 12/21/16 21:00:51.889 LuaInterface::CallFunction_Startup-1 device 95 function elkStartup failed [string "-- Plugin Version..."]:1342: attempt to index field '?' (a nil value) <0x2b91d680>
01 12/21/16 21:00:51.890 LuImplementation::StartLua running startup code for 95 I_ElkAlarmPanel1.xml failed <0x2b91d680>

The M1XEP updates where required due to certificate key length problems with windows. The other update i did for the sake of completeness (from 5.3.0) Everything was working fine before the update but now the plugin crashes. Are there any know issues i failed to read through?

release notes:
http://www.elkproducts.com/LiteratureRetrieve.aspx?ID=140302

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on December 22, 2016, 07:26:59 pm
@reaper607
I will have a look at updating my panel and see if I can reproduce error and fix.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: reaper607 on December 22, 2016, 07:40:35 pm
Just as an update:

I downgraded the panel to 5.3.0 and everything started working again. Safe to say that the problem is with some change to the panel firmware and not some change to the vera or the M1XEP firmware
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on December 22, 2016, 07:58:55 pm
@reaper607
I have updated the plugin in git to hopefully bypass this error for now if you move to latest firmware. Obviously I haven't tested this.

Updated firmware and using current git build starts OK, will require testing to ensure all functionality is supported.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: reaper607 on December 24, 2016, 02:14:34 pm
Thanks for that i will try to do the update and test out some stuff next week. On another note is there a way to get the plugin to scan for new zones and create the devices without removing the app and re-adding it?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on February 16, 2017, 10:51:04 pm
Like most others, I'm very keen for the Elk M1 app to be functional as most of my rules used in UI5 (now UI7) drive gates, scenes, light timers, etc, etc.

As per the previous query, I have M1 FW - 5.3.10 with bootloader 3.3.6 and XEP - 2.0.42

So the app sort of works, however I can't get controls to work for partition 1 or get any outputs to turn on/off.  Am I doing something wrong or has the Elk M1 app not quite caught up to these FW versions?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on February 19, 2017, 07:06:55 am
Just to add some further info in case that assists with a fix, the M1 PIR's appear to be operational and I could use the triggers for scenes, etc. The outputs are the major issue as they are unable to be operated as they used to be in UI5.  Additionally the alarm partition-1 arming, etc is not possible and the code can neither be entered for a single use or saved so it can be used in an ongoing nature.

So this was my reference to sort of working in my previous entry.  Looking forward to any advise that may help get this right, be it a configure in the advanced tab or other.

BTW I did attempt to role back to an older version of the M1 FW, but that operated the same way using the non-secure port in XEP.

Any assistance gratefully accepted.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 19, 2017, 08:10:09 pm
@lowway
What version of the plugin are you using?

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on February 19, 2017, 10:09:23 pm
The only one available in the app store was version 2.19. Is that the right one?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 19, 2017, 10:53:47 pm
@lowway
Latest beta here: -
Code: [Select]
https://github.com/zoot1612/plugin-elkm1. I keep putting off uploading to the store as it has some changes that are not compatible with current plugin in store.

This may or may not fix your issues but it is currently the supported version.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on February 19, 2017, 11:39:03 pm
Great stuff. I'll give it a go when I get home tomorrow. Much associated.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on February 20, 2017, 10:56:32 pm
Hi Zoot1612,

Unfortunately GitHub and manually uploading a plug-in is new territory for me.  Any chance you could guide me on uploads (e.g. do I simply upload all files to the Luup files under developer apps) or direct me to a possible previous link where this has been explained?  E.g. Do I keep the current b2.19 or delete from root directory first?

Sorry to be a pain and hope your latest update works as I really do rely on the outputs from M1 for tying my system together.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on February 22, 2017, 01:45:09 am
@lowway
Very basic howto here: -
https://github.com/zoot1612/plugin-elkm1/wiki (https://github.com/zoot1612/plugin-elkm1/wiki)
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on February 22, 2017, 02:18:13 am
Hi Zoot1612,

I had read this wiki and have tried numerous times to upload via the Luup Developer App portal in Vera, but it is unclear whether version 2.19 is to be fully deleted first and if that is the casse, how does the device get created as I've been unable have the uploaded files self load, etc.

I guess if anyone has a more detailed method for uploading the plug-in manually, that would be great.  If not, I'm probably best to wait until this is loaded in the app marketplace.

Cheers
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lazyone on February 24, 2017, 01:13:09 am
I'm moving from a veralite to a veraplus.  I had the app store version of the plugin working on the veralite, and I believe the Elk is setup correctly.  I downloaded the latest version from Github, uploaded the files to the veraplus, created a device and configured the Elk IP and port, in my case 192.168.1.15:2101.  The veraplus seems to be in a continuous reboot of the plugin and never configures any devices.  My logs show a repeating error.  Not sure what I'm doing wrong.  Any help appreciated.

02   02/23/17 22:00:17.166   luup_log:35: ElkPlugin::checkMessage: length=27(0x1B), message type=SD, data='04000                ', misc=00, checksum=A2 <0x76ad1520>
02   02/23/17 22:00:17.167   luup_log:35: ElkPlugin::handlerFunc Message type description: ASCII String Text Descriptions <0x76ad1520>
02   02/23/17 22:00:17.168   luup_log:35: ElkPlugin::processLabels: Label type: Output Name <0x76ad1520>
02   02/23/17 22:00:17.168   luup_log:35: ElkPlugin::processLabels: Label type: Output Name No processing. <0x76ad1520>
02   02/23/17 22:00:17.169   luup_log:35: ElkPlugin::readResponse: Got expected message 'SD'. <0x76ad1520>
02   02/23/17 22:00:17.169   luup_log:35: ElkPlugin::createOutputs: skipping output 0. <0x76ad1520>
02   02/23/17 22:00:17.170   luup_log:35: ElkPlugin::sendCommand: Send command: '0Bsd040010062'. <0x76ad1520>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lazyone on February 25, 2017, 03:21:09 pm
Not having much luck getting 2.425 to work.  I was able to install 2.19 from the app store, it did create the devices and gave no errors, but I was not able to get Elk to "speak", so I'm guessing I need an updated version. 
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on February 27, 2017, 07:14:04 am
Hi Lazyone,

Same for me. 2.19 loads and half works (at least I get PIR triggers, but no alarm setting or outputs) and 2.45 allows a manual device creation but doesn't load the remaining child devices. I'm hoping a new version gets loaded to the marketplace soon as I rely greatly on this app for home integration.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 01, 2017, 05:23:38 am
@lazyone
Try now, hopefully fixed in latest git rep.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 01, 2017, 06:44:22 am
Almost works. At least it now loads fully after creating the alarm panel device. Unfortunately it still will not operate the outputs and I have the attached default prompt that stays on the top of screen.  Any advice?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 01, 2017, 06:53:58 pm
Update: Updated plugin to ignore unknown alarm state for now

This looks like something not documented for Reply Arming Status Report Data (AS) for A[8] - Array of 8 area alarm state. See excerpt from document below: -

Code: [Select]
4.2.13 Reply Arming Status Report Data (AS)
1E  Length as ASCII hex
AS  Reply with zone definition data
S[8] - Array of 8 area armed status.
U[8] - Array of 8 area arm up state.
A[8] - Array of 8 area alarm state.
00  future use, M1 Version 4.11 and later, contains the first found Exit time if U[x] = ?3? or Entrance time if A[x] = ?1? as two digits hex in seconds.
CC  Checksum
Example: 1EAS100000004000000030000000000E Area 1 is armed away, and the area is in full fire alarm.
Example: 1EAS1000000031111111000000000902 Exit time set to 9 seconds.
If the control?s area status changes, this message will be sent if Global Option ?Transmit Keypad Keys? is enabled.

'S' 8-character array field, represents the arming status of partitions 1-8. The leftmost ?S? is Area 1. Each area or partition field can contain one of the following ASCII values:
'0' Disarmed
'1' Armed Away
'2' Armed Stay
'3' Armed Stay Instant
'4' Armed to Night
'5' Armed to Night Instant
'6' Armed to Vacation

'U' 8-character array field, represents the arm up state of partitions 1-8. The leftmost ?U? is Area 1. Each area or partition field can contain one of the following ASCII values:
'0' Not Ready To Arm
'1' Ready To Arm
'2' Ready To Arm, but a zone is violated and can be Force Armed.
'3' Armed with Exit Timer working
'4' Armed Fully
'5' Force Armed with a force arm zone violated
'6' Armed with a bypass

'A' 8-character array field, represents the current alarm state of partitions 1-8. The leftmost ?A? is
Area 1. Each area or partition field can contain one of the following ASCII values:
'0' No Alarm Active
'1' Entrance Delay is Active
'2' Alarm Abort Delay Active
'3' to ?B? Area is in Full Alarm, see ASCII alarm table values below:

FireAlarm = '3',
MedicalAlarm = '4',
PoliceAlarm = '5',
BurglarAlarm = '6',
Aux1Alarm = '7',
Aux2Alarm = '8',
Aux3Alarm = '9', //not used
Aux4Alarm = ':', //not used
CarbonMonoxideAlarm = ';',
EmergencyAlarm = '<',
FreezeAlarm= '=',
GasAlarm = '>',
HeatAlarm = '?',
WaterAlarm = '@',
FireSupervisory = 'A',
VerifyFire = 'B',


Can you please provide the logs for this error so I can see what is coming back from the alarm panel and handle it.

Thanks

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 02, 2017, 12:37:08 am
Hi Zoot 1612,

The log file is a little too big to attached.  Can I email direct, etc?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 02, 2017, 12:41:34 am
@lonway
Just want to see the line that has what is being sent to Vera by the ELK M1 from the initial 'as' request so I can work out why it fails.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 02, 2017, 01:59:04 am
Ahhhh, you are assuming I know what an "as request" is of course, which is a somewhat large assumption!!

The attached is the second instance of the nodes in the log, is that what you require Zoot?


Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 02, 2017, 05:45:02 pm
@lowway
Have you tried version 2.427 yet?

 
As for the log don't worry about it. I posted a request on the ELK forum and have a reply which I will follow up when I get a chance.

Have to admit that my request was a bit vague  :)

What I meant was "Reply Arming Status Report Data (AS)" (see attached)

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 02, 2017, 11:41:21 pm
Hi Zoot,

2.427 now installed and no longer getting previous default alarm prompt on screen as shown in previous post.

Triggers for zones operate, but alarm won't operate via partition settings and most importantly (for me anyway) outputs still won't switch
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 03, 2017, 08:14:44 am
@lowway
You will need to provide some of the log output when pushing the buttons so I can work out what is going on. Currently working fine for me so hard to pin point the issue.

You should get something like: -

Code: [Select]
08 03/03/17 21:02:04.875 JobHandler_LuaUPnP::HandleActionRequest device: 213 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x2f51c680>
08 03/03/17 21:02:04.875 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=213 <0x2f51c680>
08 03/03/17 21:02:04.876 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x2f51c680>
08 03/03/17 21:02:04.876 JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x2f51c680>
08 03/03/17 21:02:04.877 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x2f51c680>
08 03/03/17 21:02:04.877 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.16975248608992832 <0x2f51c680>
02 03/03/17 21:02:04.879 luup_log:187: ElkPlugin::setTarget: Turn on control output/task/plc 16 (device 213). <0x2f51c680>
02 03/03/17 21:02:04.882 luup_log:187: ElkPlugin::sendCommand: Send command: '0Ecn0160000000D3'. <0x2f51c680>
02 03/03/17 21:02:04.916 luup_log:187: ElkPlugin::checkMessage: length=10(0x0A), message type=CC, data='0161', misc=00, checksum=E1 <0x2ef1c680>
02 03/03/17 21:02:04.917 luup_log:187: ElkPlugin::handlerFunc Message type description: Output Change Update <0x2ef1c680>
02 03/03/17 21:02:04.917 luup_log:187: ElkPlugin::processOutputReport: Output 016 is On. <0x2ef1c680>

or

Code: [Select]
08 03/03/17 21:02:16.653 JobHandler_LuaUPnP::HandleActionRequest device: 213 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x2deb7680>
08 03/03/17 21:02:16.654 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=213 <0x2deb7680>
08 03/03/17 21:02:16.655 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x2deb7680>
08 03/03/17 21:02:16.655 JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x2deb7680>
08 03/03/17 21:02:16.656 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=0 <0x2deb7680>
08 03/03/17 21:02:16.656 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.8098092320326292 <0x2deb7680>
02 03/03/17 21:02:16.658 luup_log:187: ElkPlugin::setTarget: Turn off control output/task/plc 16 (device 213). <0x2deb7680>
02 03/03/17 21:02:16.658 luup_log:187: ElkPlugin::sendCommand: Send command: '09cf01600D7'. <0x2deb7680>
02 03/03/17 21:02:16.687 luup_log:187: ElkPlugin::checkMessage: length=10(0x0A), message type=CC, data='0160', misc=00, checksum=E2 <0x2ef1c680>
02 03/03/17 21:02:16.688 luup_log:187: ElkPlugin::handlerFunc Message type description: Output Change Update <0x2ef1c680>
02 03/03/17 21:02:16.689 luup_log:187: ElkPlugin::processOutputReport: Output 016 is Off. <0x2ef1c680>
06 03/03/17 21:02:16.689 Device_Variable::m_szValue_set device: 213 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xc86210/NONE duplicate:0 <0x2ef1c680>

Make sure the actual ELK device has DebugMode set to 1 (see screen shot)

Hi Zoot,
but alarm won't operate via partition settings

Not sure why this this is happening again some logging info might point me in the right direction.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 04, 2017, 04:57:19 pm
@Zoot1612. Log attached from this morning when I ask Elk Output (Zwave ID#426) to action a request via Elk Panel (Zwave ID#398).  Debug was already set to value=1.  Does this help or would you like some other logs taken during specific actions (start-up, etc) for ID#398?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 06, 2017, 07:03:20 am
@lowway
Will need all the startup as it looks like something is not getting initialised correctly.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 07, 2017, 01:59:35 am
@Zoot1612

Sorry, I'm away from the LAN until Friday this week so will run a new log then.  So would you suggest I do a full reboot at a set time and send the log for that initial startup where the Elk ID tries to load or something else?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 07, 2017, 03:54:55 am
@lowway
A LUUP reload is all that's required.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 07, 2017, 05:43:28 am
@Zoot1612 No worries will try this Thurs night or Friday morning.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 10, 2017, 03:30:52 am
@Zoot1612  Is this what you are looking for?

09   03/10/17 18:25:58.240   JobHandler_LuaUPnP::Run device 398 Elk Alarm Panel room 0 type urn:zoot-com:device:ElkAlarmPanel:1 cat 22:-1 id  parent 0/0xf758d8 upnp: 0 plugin:0 pnp:0 mac: ip:192.168.0.184:2101 <0x776a4000>
09   03/10/17 18:25:58.241   JobHandler_LuaUPnP::Run device 422 Elk Output 10: AC Living Room room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_10 parent 398/0xf967f0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.241   JobHandler_LuaUPnP::Run device 423 Elk Output 11: AC Bar room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_11 parent 398/0xf987f8 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.242   JobHandler_LuaUPnP::Run device 424 Elk Output 12: Vehicle Gate Ped room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_12 parent 398/0xf99fb0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.242   JobHandler_LuaUPnP::Run device 425 Elk Output 13: Front Gate Ped room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_13 parent 398/0xf9b910 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.243   JobHandler_LuaUPnP::Run device 426 Elk Output 14: Garage Door 1 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_14 parent 398/0xf9d248 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.243   JobHandler_LuaUPnP::Run device 427 Elk Output 15: Front Door room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_15 parent 398/0xf9e7e0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.243   JobHandler_LuaUPnP::Run device 428 Elk Output 16: Vehicle Gate room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_16 parent 398/0xfa0820 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.244   JobHandler_LuaUPnP::Run device 429 Elk Output 17: Output 017 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_17 parent 398/0xfa1e88 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.244   JobHandler_LuaUPnP::Run device 430 Elk Output 18: Output 018 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_18 parent 398/0xfa3770 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.245   JobHandler_LuaUPnP::Run device 431 Elk Output 19: Output 019 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_19 parent 398/0xfa50e0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.245   JobHandler_LuaUPnP::Run device 432 Elk Output 20: Output 020 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_20 parent 398/0xfa6b98 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.246   JobHandler_LuaUPnP::Run device 433 Elk Output 21: Output 021 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_21 parent 398/0xfa8608 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.246   JobHandler_LuaUPnP::Run device 434 Elk Output 22: Output 022 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_22 parent 398/0xfa9d80 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.246   JobHandler_LuaUPnP::Run device 435 Elk Output 23: Output 023 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_23 parent 398/0xfab5d8 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.247   JobHandler_LuaUPnP::Run device 436 Elk Output 24: Output 024 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_24 parent 398/0xfacfa0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.247   JobHandler_LuaUPnP::Run device 437 Elk Output 29: Output 029 room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_29 parent 398/0xfaea30 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.248   JobHandler_LuaUPnP::Run device 439 Elk Output 63: Driveway Ghost room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_63 parent 398/0xfb1bb0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
09   03/10/17 18:25:58.248   JobHandler_LuaUPnP::Run device 438 Elk Output 64: Front Gate Ghost room 0 type urn:schemas-upnp-org:device:BinaryLight:1 cat 3:0 id elk_output_64 parent 398/0xfb04b0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x776a4000>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 10, 2017, 04:07:47 pm
@Zooy1612-Some more logs showing th outputs trying to start

02   03/10/17 18:26:08.383   luup_log:398: ElkPlugin::handlerFunc Message type description: M1 Version Number <0x76e90520>
02   03/10/17 18:26:08.383   luup_log:398: ElkPlugin::readResponse: Got expected message 'VN'. <0x76e90520>
50   03/10/17 18:26:08.384   luup_log:398: ElkPlugin:::M1 version 5.3.10 <0x76e90520>
06   03/10/17 18:26:08.384   Device_Variable::m_szValue_set device: 398 service: urn:micasaverde-com:serviceId:ElkAlarmPanel1 variable: FirmwareVersion was: 5.3.10 now: 5.3.10 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x76e90520>
50   03/10/17 18:26:08.385   luup_log:398: ElkPlugin::(ElkPlugin::getOutputs) No output controls. <0x76e90520>
02   03/10/17 18:26:08.385   luup_log:398: ElkPlugin::sendCommand: Send command: '0Bsd040010062'. <0x76e90520>
02   03/10/17 18:26:08.393   luup_log:398: ElkPlugin::checkMessage: length=27(0x1B), message type=SD, data='04009AC Bed 1        ', misc=00, checksum=99 <0x76e90520>
02   03/10/17 18:26:08.393   luup_log:398: ElkPlugin::handlerFunc Message type description: ASCII String Text Descriptions <0x76e90520>
02   03/10/17 18:26:08.394   luup_log:398: ElkPlugin::processLabels: Label type: Output Name <0x76e90520>
02   03/10/17 18:26:08.394   luup_log:398: ElkPlugin::processLabels: Label type: Output Name No processing. <0x76e90520>
02   03/10/17 18:26:08.395   luup_log:398: ElkPlugin::readResponse: Got expected message 'SD'. <0x76e90520>
02   03/10/17 18:26:08.395   luup_log:398: ElkPlugin::createOutputs: Adding name AC Bed 1 to output 009. <0x76e90520>
02   03/10/17 18:26:08.396   luup_log:398: ElkPlugin::sendCommand: Send command: '0Bsd040100062'. <0x76e90520>
02   03/10/17 18:26:08.403   luup_log:398: ElkPlugin::checkMessage: length=27(0x1B), message type=SD, data='04010AC Living Room  ', misc=00, checksum=97 <0x76e90520>
02   03/10/17 18:26:08.404   luup_log:398: ElkPlugin::handlerFunc Message type description: ASCII String Text Descriptions <0x76e90520>
02   03/10/17 18:26:08.404   luup_log:398: ElkPlugin::processLabels: Label type: Output Name <0x76e90520>
02   03/10/17 18:26:08.405   luup_log:398: ElkPlugin::processLabels: Label type: Output Name No processing. <0x76e90520>
02   03/10/17 18:26:08.405   luup_log:398: ElkPlugin::readResponse: Got expected message 'SD'. <0x76e90520>
02   03/10/17 18:26:08.406   luup_log:398: ElkPlugin::createOutputs: Adding name AC Living Room to output 010. <0x76e90520>
02   03/10/17 18:26:08.406   luup_log:398: ElkPlugin::sendCommand: Send command: '0Bsd040110061'. <0x76e90520>
02   03/10/17 18:26:08.421   luup_log:398: ElkPlugin::checkMessage: length=27(0x1B), message type=SD, data='04011AC Bar          ', misc=00, checksum=A7 <0x76e90520>
02   03/10/17 18:26:08.422   luup_log:398: ElkPlugin::handlerFunc Message type description: ASCII String Text Descriptions <0x76e90520>
02   03/10/17 18:26:08.423   luup_log:398: ElkPlugin::processLabels: Label type: Output Name <0x76e90520>
02   03/10/17 18:26:08.423   luup_log:398: ElkPlugin::processLabels: Label type: Output Name No processing. <0x76e90520>
02   03/10/17 18:26:08.424   luup_log:398: ElkPlugin::readResponse: Got expected message 'SD'. <0x76e90520>
02   03/10/17 18:26:08.424   luup_log:398: ElkPlugin::createOutputs: Adding name AC Bar to output 011. <0x76e90520>
02   03/10/17 18:26:08.425   luup_log:398: ElkPlugin::sendCommand: Send command: '0Bsd040120060'. <0x76e90520>
02   03/10/17 18:26:08.431   luup_log:398: ElkPlugin::checkMessage: length=27(0x1B), message type=SD, data='04012Vehicle Gate Ped', misc=00, checksum=05 <0x76e90520>
02   03/10/17 18:26:08.431   luup_log:398: ElkPlugin::handlerFunc Message type description: ASCII String Text Descriptions <0x76e90520>
02   03/10/17 18:26:08.432   luup_log:398: ElkPlugin::processLabels: Label type: Output Name <0x76e90520>
02   03/10/17 18:26:08.432   luup_log:398: ElkPlugin::processLabels: Label type: Output Name No processing. <0x76e90520>
02   03/10/17 18:26:08.433   luup_log:398: ElkPlugin::readResponse: Got expected message 'SD'. <0x76e90520>
02   03/10/17 18:26:08.433   luup_log:398: ElkPlugin::createOutputs: Adding name Vehicle Gate Ped to output 012. <0x76e90520>
02   03/10/17 18:26:08.434   luup_log:398: ElkPlugin::sendCommand: Send command: '0Bsd04013005F'. <0x76e90520>
02   03/10/17 18:26:08.441   luup_log:398: ElkPlugin::checkMessage: length=27(0x1B), message type=SD, data='04013Front Gate Ped  ', misc=00, checksum=7B <0x76e90520>
02   03/10/17 18:26:08.441   luup_log:398: ElkPlugin::handlerFunc Message type description: ASCII String Text Descriptions <0x76e90520>
02   03/10/17 18:26:08.442   luup_log:398: ElkPlugin::processLabels: Label type: Output Name <0x76e90520>
02   03/10/17 18:26:08.442   luup_log:398: ElkPlugin::processLabels: Label type: Output Name No processing. <0x76e90520>
02   03/10/17 18:26:08.443   luup_log:398: ElkPlugin::readResponse: Got expected message 'SD'. <0x76e90520>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 10, 2017, 04:08:48 pm
@Zoot1612 - and an error message I found

02   03/10/17 18:26:12.079   luup_log:398: ElkPlugin::processZoneStatusReport: Zone 15 status = Normal. <0x76e90520>
01   03/10/17 18:26:12.080   LuaInterface::CallFunction_Startup-1 device 398 function elkStartup failed [string "-- Plugin Version..."]:338: attempt to concatenate local 'device' (a nil value) <0x76e90520>
01   03/10/17 18:26:12.086   LuImplementation::StartLua running startup code for 398 I_ElkAlarmPanel1.xml failed <0x76e90520>
01   03/10/17 18:26:12.101   FileUtils::ReadURL 7/resp:0 user: pass: size 1 http://192.168.0.7:1400/xml/device_description.xml response:  <0x75890520>
01   03/10/17 18:26:12.102   luup_log:67: Sonos: error: UPnP_getDeviceDescription wget failed - status=-1 xml= <0x75890520>
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 12, 2017, 08:02:14 pm
@lowway
Can you provide everything leading up to the error? While I can see the error I don't know what the root cause is.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 13, 2017, 02:11:57 am
@Zoot1612
I've attached a log for the first 3 minutes of restart.  Hopefully there is enough info for you to track any issues and appreciate the effort in advance!!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 13, 2017, 07:07:43 pm
@lowway
Can you try the latest in git and post the output?

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on March 16, 2017, 04:49:25 pm
I'm having an issue that I can't resolve...

I recently updated my Vera 2 to UI5. My M1 can be controlled and zone status is read, but scenes are ignored and it seems that I can't create or edit them based on alarm status anymore. I was using v1.01 of the Elk plugin so I upgraded to zoot's latest from 3-13-2017 and now all I get is "Startup Lua Failed" on the alarm panel.

Any help is appreciated!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 16, 2017, 08:55:54 pm
@Video321
Can you provide log details at LUUP startup?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Video321 on March 16, 2017, 09:49:43 pm
@Video321
Can you provide log details at LUUP startup?

01   03/16/17 21:34:10.021   LuaInterface::CallFunction_Startup-1 device 10 function elkStartup failed attempt to call a nil value <0x402>

01   03/16/17 21:34:10.022   LuImplementation::StartLua running startup code for 10 I_ElkAlarmPanel1.xml failed <0x402>

Not sure what you needed from the log. LMK if that doesn't help and I can add more.
Thanks, zoot!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 17, 2017, 01:26:43 am
@Video321

Going to need more  :) the more the better.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 17, 2017, 03:05:48 am
@lowway
Can you try the latest in git and post the output?

Thanks

@Zoot1612

New Git version installed and logs attached!!  Still the same result unfortunately.  Zone triggers viable and working, outputs won't switch and alarm panel won't operate for arm, etc.  Won't store passcode.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 19, 2017, 07:56:13 pm
@lonwway
Output supplied is cutoff before either a successful/unsuccessful start. I need to see output until that point. Also need to see output from log when each of the activities that you perform to see why they do not succeed.



See below for successful startup. Most of the log has been removed in the example for brevity but it would be required in your case.

Code: [Select]
02      03/20/17 7:37:31.889    luup_log:500: ElkPlugin::checkConnectionType: No IP address trying auto configuration <0x2bc23680>

02      03/20/17 7:37:32.094    luup_log:500: ElkPlugin::checkConnectionType: ipAddress = 192.168.0.251, port = 2101. <0
.
.
.
.

02      03/20/17 7:37:36.090    luup_log:500: ElkPlugin::Elk Plugin Startup SUCCESS: Startup successful. <0x2bc23680>
02      03/20/17 7:37:36.116    luup_log:500: ElkPlugin::checkMessage: length=25(0x19), message type=KC, data='0300000000000000000', misc=00, checksum=15 <0x2e623680>
02      03/20/17 7:37:36.116    luup_log:500: ElkPlugin::handlerFunc Message type description: Keypad KeyChange Update <0x2e623680>
02      03/20/17 7:37:36.117    luup_log:500: ElkPlugin::setPartitionState: Set variable 'ChimeEnabled' = '0' for partition 1 (device 501). <0x2e623680>
06      03/20/17 7:37:36.117    Device_Variable::m_szValue_set device: 501 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0xb00928/NONE duplicate:1 <0x2e623680>
02      03/20/17 7:37:36.117    luup_log:500: ElkPlugin::setPartitionState: Set variable 'ChimeEnabled' = '0' for partition 2 (device 502). <0x2e623680>
06      03/20/17 7:37:36.118    Device_Variable::m_szValue_set device: 502 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0xb00928/NONE duplicate:1 <0x2e623680>
02      03/20/17 7:37:36.118    luup_log:500: ElkPlugin::setPartitionState: Set variable 'ChimeEnabled' = '0' for partition 3 (device 503). <0x2e623680>
06      03/20/17 7:37:36.118    Device_Variable::m_szValue_set device: 503 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0xb00928/NONE duplicate:1 <0x


Successful "On" and "Off" for output
Code: [Select]
08      03/20/17 7:45:15.321    JobHandler_LuaUPnP::HandleActionRequest device: 518 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x30d90680>
08      03/20/17 7:45:15.322    JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=518 <0x30d90680>
08      03/20/17 7:45:15.322    JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x30d90680>
08      03/20/17 7:45:15.323    JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x30d90680>
08      03/20/17 7:45:15.323    JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x30d90680>
08      03/20/17 7:45:15.323    JobHandler_LuaUPnP::HandleActionRequest argument rand=0.5307768690290101 <0x30d90680>
02      03/20/17 7:45:15.324    luup_log:500: ElkPlugin::setTarget: Turn on control output/task/plc 16 (device 518). <0x30d90680>
02      03/20/17 7:45:15.325    luup_log:500: ElkPlugin::sendCommand: Send command: '0Ecn0160000000D3'. <0x30d90680>
.
.
.
02      03/20/17 7:45:15.357    luup_log:500: ElkPlugin::checkMessage: length=10(0x0A), message type=CC, data='0161', misc=00, checksum=E1 <0x2e623680>
02      03/20/17 7:45:15.357    luup_log:500: ElkPlugin::handlerFunc Message type description: Output Change Update <0x2e623680>
02      03/20/17 7:45:15.358    luup_log:500: ElkPlugin::processOutputReport: Output 016 is On. <0x2e623680>
06      03/20/17 7:45:15.358    Device_Variable::m_szValue_set device: 518 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 1 #hooks: 0 upnp: 0 v:0xa95e48/NONE duplicate:0 <0x2e623680>
.
.
.

08      03/20/17 7:45:24.493    JobHandler_LuaUPnP::HandleActionRequest device: 518 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x30d90680>
08      03/20/17 7:45:24.495    JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=518 <0x30d90680>
08      03/20/17 7:45:24.495    JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x30d90680>
08      03/20/17 7:45:24.495    JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x30d90680>
08      03/20/17 7:45:24.495    JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=0 <0x30d90680>
08      03/20/17 7:45:24.495    JobHandler_LuaUPnP::HandleActionRequest argument rand=0.9053201377407433 <0x30d90680>
02      03/20/17 7:45:24.496    luup_log:500: ElkPlugin::setTarget: Turn off control output/task/plc 16 (device 518). <0x30d90680>
02      03/20/17 7:45:24.497    luup_log:500: ElkPlugin::sendCommand: Send command: '09cf01600D7'. <0x30d90680>

02      03/20/17 7:45:24.528    luup_log:500: ElkPlugin::checkMessage: length=10(0x0A), message type=CC, data='0160', misc=00, checksum=E2 <0x2e623680>
02      03/20/17 7:45:24.529    luup_log:500: ElkPlugin::handlerFunc Message type description: Output Change Update <0x2e623680>
02      03/20/17 7:45:24.529    luup_log:500: ElkPlugin::processOutputReport: Output 016 is Off. <0x2e623680>
06      03/20/17 7:45:24.530    Device_Variable::m_szValue_set device: 518 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 0 #hooks: 0 upnp: 0 v:0xa95e48/NONE duplicate:0 <0x2e623680>

Unsuccessful "Arm" due to lack of pin.
Code: [Select]
08      03/20/17 7:50:49.877    JobHandler_LuaUPnP::HandleActionRequest device: 502 service: urn:micasaverde-com:serviceId:AlarmPartition2 action: RequestArmMode <0x2fd90680>
08      03/20/17 7:50:49.878    JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=502 <0x2fd90680>
08      03/20/17 7:50:49.878    JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:AlarmPartition2 <0x2fd90680>
08      03/20/17 7:50:49.878    JobHandler_LuaUPnP::HandleActionRequest argument action=RequestArmMode <0x2fd90680>
08      03/20/17 7:50:49.879    JobHandler_LuaUPnP::HandleActionRequest argument State=Armed <0x2fd90680>
08      03/20/17 7:50:49.879    JobHandler_LuaUPnP::HandleActionRequest argument rand=0.5768327532747151 <0x2fd90680>
02      03/20/17 7:50:49.880    luup_log:500: ElkPlugin::requestArmMode: Request to arm partition 2 (device 502) to state 'Armed'. <0x2fd90680>
50      03/20/17 7:50:49.880    luup_log:500: ElkPlugin::requestArmMode: ERROR: PIN code required. <0x2fd90680>
50      03/20/17 7:50:49.881    luup_log:500: ElkPlugin::task: PIN code required.

Please note that PIN will be lost after luup restart as it is not stored, even if you use the "Store" button you need to re-enter PIN. This is not a bug.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 27, 2017, 12:03:29 am
@Zoot1612

Attached is a copy of the start-up logs for my Vera UI7 for the Elk App.  I'll try to resolve why this is not loading correctly before trying to redo logs for output on/off, etc just so I can try to deal with one issue at a time.

The following seems a little confusing to me however may make sense to you.  After loading and resetting to factory default a few times, the current version loaded from 398 upwards with 398 being the Master and 399 Area 1, etc.  So the following showing Zones 220, 263 and 264 seems odd, but may make perfect sense to you??

09   03/27/17 12:51:14.585   JobHandler_LuaUPnP::Run device 220  room 0 type S_ElkAlarmPanel1.xml  cat 0:-1 id  parent 0/(nil) upnp: 0 plugin:0 pnp:0 mac: ip: <0x77af2000>
09   03/27/17 12:51:14.586   JobHandler_LuaUPnP::Run device 263  room 0 type I_ElkAlarmPanel1.xml cat 0:-1 id  parent 0/(nil) upnp: 0 plugin:0 pnp:0 mac: ip: <0x77af2000>
09   03/27/17 12:51:14.586   JobHandler_LuaUPnP::Run device 264  room 0 type I_ElkAlarmPanel1.xml cat 0:-1 id  parent 0/(nil) upnp: 0 plugin:0 pnp:0 mac: ip:192.168.0.184:2101 <0x77af2000>

Any assistance you can offer is (as always) greatly appreciated as I'm now beyond desperate in trying to get this App to work ASAP.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 27, 2017, 07:48:33 pm
@lowway

The plugin is failing very early as it is not getting replies from the ELK M1.

Code: [Select]
50 03/27/17 12:51:34.006 luup_log:398: ElkPlugin::checkMessage: ERROR: Empty message. <0x772de520>
50 03/27/17 12:51:34.006 luup_log:398: ElkPlugin::getVersion: ERROR: Failed to get version. <0x772de520>
02 03/27/17 12:51:34.007 luup_log:398: ElkPlugin::commandRetry: command sent 2 times <0x772de520>
02 03/27/17 12:51:36.510 luup_log:398: ElkPlugin::sendCommand: Send command: '06vn0056'. <0x772de520>
50 03/27/17 12:51:46.511 luup_log:398: ElkPlugin::checkMessage: ERROR: Empty message. <0x772de520>
50 03/27/17 12:51:46.511 luup_log:398: ElkPlugin::getVersion: ERROR: Failed to get version. <0x772de520>
02 03/27/17 12:51:46.512 luup_log:398: ElkPlugin::commandRetry: command sent 3 times <0x772de520>
02 03/27/17 12:51:50.217 luup_log:398: ElkPlugin::sendCommand: Send command: '06vn0056'. <0x772de520>
50 03/27/17 12:52:00.218 luup_log:398: ElkPlugin::checkMessage: ERROR: Empty message. <0x772de520>
50 03/27/17 12:52:00.218 luup_log:398: ElkPlugin::getVersion: ERROR: Failed to get version. <0x772de520>
02 03/27/17 12:52:00.219 luup_log:398: ElkPlugin::commandRetry: command failed <0x772de520>
01 03/27/17 12:52:00.219 LuaInterface::CallFunction_Startup device 398 function elkStartup took 37 seconds <0x772de520>
01 03/27/17 12:52:00.220 LuaInterface::CallFunction_Startup-2 device 398 function elkStartup failed Elk Alarm Panel with return false

A couple of things to maybe narrow down the issue: -
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 27, 2017, 08:39:31 pm
@Zoot1612

Telnet to unsecured port sending "06vn0056" and response is attached.  Is that what it should do??

All 6 boxes were already ticked.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 27, 2017, 10:09:20 pm
@lowway
All looks OK can't work out why you are getting an empty response!

Can you try the updated version in the git repository and send me the log again, I have just changed the plugin so it doesn't fail if the version isn't returned.

Next step may be to turn on verbose logging on the Vera.

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 28, 2017, 01:15:00 am
@Zoot1612

New version loaded and logs for first 5 minutes of start-up attached for review.

No idea how to do verbose logging, but happy to give it a shot if you think that will help?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 28, 2017, 07:12:55 am
@lowway
OK, found the issue (I hope) give the latest in GIT a go.

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on March 28, 2017, 07:31:53 am
@Zoot1612

OMG I can't believe it.....SUCCESS

Thanks so much, you're a legend.  All outputs now operate and panel will arm, disarm, etc so without trying everything, it appears to be complete success and all functionality now available.  Thanks again and huge wraps for sticking to it and sourcing the issue.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on March 29, 2017, 01:49:34 am
This guy was a legend long ago.  ;)

Keep up the good work, Zoot.
Haven't updated lately since I've been away fairly often recently and worried about messing with my system, but it's good to know capable people are handling business.
Thanks for your efforts.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on March 30, 2017, 08:19:06 pm
Strangely my Vera is not triggering the scene I have for when the system is disarmed. Are there any known issues that I'm unaware of? When I trigger the scene manually, it works correctly. Additionally, the scene triggered by arming the system works as intended.
Thanks.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 30, 2017, 09:36:22 pm
@Quixote
Will need to see your scene and logs to get an idea.

Thanks
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on March 30, 2017, 09:38:20 pm
Ok, how do we go about that? Screen-shots?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 30, 2017, 11:44:57 pm
@Quixote
Screenshot for scenes to start with.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on March 31, 2017, 05:44:12 pm
There is no Lua script in the scene. The two device actions are sending an email using the SMTP plugin, and setting the Home Mode to "Home".

Also, I should mention that the method I use to disarm the system is through Elk-M1 rules. I watch a certain zone, and when a piece of hardware that I have to read iButtons closes a relay and triggers that zone, the system is disarmed.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 31, 2017, 08:21:39 pm
@Quixote
Will have to do some experimentation to check that it all works OK and get back to you. As far as the method goes that shouldn't make any difference.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on March 31, 2017, 08:50:51 pm
@Quixote
Probably the easiest way to trouble shoot in the case is to check your logs.

Here is a breakdown of what you need to do: -

When partition/area is disarmed you should see something along the lines of this: -

06   04/01/17 8:34:27.449   Device_Variable::m_szValue_set device: 190 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: AlarmMemory1 was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2fba5680>
08   04/01/17 8:34:32.207   JobHandler_LuaUPnP::HandleActionRequest device: 188 service: urn:micasaverde-com:serviceId:AlarmPartition2 action: RequestArmMode <0x2fda5680>
08   04/01/17 8:34:32.207   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=188 <0x2fda5680>
08   04/01/17 8:34:32.208   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:AlarmPartition2 <0x2fda5680>
08   04/01/17 8:34:32.208   JobHandler_LuaUPnP::HandleActionRequest argument action=RequestArmMode <0x2fda5680>
08   04/01/17 8:34:32.209   JobHandler_LuaUPnP::HandleActionRequest argument State=Disarmed <0x2fda5680>
08   04/01/17 8:34:32.209   JobHandler_LuaUPnP::HandleActionRequest argument PINCode=XXXXXX <0x2fda5680>
02   04/01/17 8:34:32.211   luup_log:187: ElkPlugin::requestArmMode: Request to arm partition 1 (device 188) to state 'Disarmed'. <0x2fda5680>
02   04/01/17 8:34:32.318   luup_log:187: ElkPlugin::sendCommand: Send command: '0Da01XXXXXX0035'. <0x2fda5680>
02   04/01/17 8:34:32.345   luup_log:187: ElkPlugin::checkMessage: length=23(0x17), message type=IC, data='00000000000000103', misc=00, checksum=78 <0x2fda5680>
02   04/01/17 8:34:32.346   luup_log:187: ElkPlugin::checkValidUserCode: Got expected message. <0x2fda5680>
02   04/01/17 8:34:32.347   luup_log:187: ElkPlugin::checkValidUserCode: Valid PIN. <0x2fda5680>
02   04/01/17 8:34:32.347   luup_log:187: ElkPlugin::checkValidUserCode: Valid User. <0x2fda5680>
02   04/01/17 8:34:32.348   luup_log:187: ElkPlugin::checkValidUserCode: waiting for request response. <0x2fda5680>
02   04/01/17 8:34:32.366   luup_log:187: ElkPlugin::checkMessage: length=28(0x1C), message type=LD, data='1174001107250401000717', misc=00, checksum=4B <0x2fda5680>
02   04/01/17 8:34:32.367   luup_log:187: ElkPlugin::readArmRequestResponse: Got unexpected message. Process it and intercept the next one. <0x2fda5680>
02   04/01/17 8:34:32.367   luup_log:187: ElkPlugin::handlerFunc Message type description: Request System Log Data <0x2fda5680>
02   04/01/17 8:34:32.371   luup_log:187: ElkPlugin::Interpretation of Ext Info Field in Log Entry, type 2 <0x2fda5680>
02   04/01/17 8:34:32.372   luup_log:187: ElkPlugin::processElkLog: processing log index 000. <0x2fda5680>
02   04/01/17 8:34:32.388   luup_log:187: ElkPlugin::checkMessage: length=15(0x0F), message type=EE, data='100000000', misc=00, checksum=EF <0x2fda5680>
02   04/01/17 8:34:32.388   luup_log:187: ElkPlugin::readArmRequestResponse: Got unexpected message. Process it and intercept the next one. <0x2fda5680>
02   04/01/17 8:34:32.389   luup_log:187: ElkPlugin::processMessage: Unhandled message type 'EE' <0x2fda5680>
02   04/01/17 8:34:32.405   luup_log:187: ElkPlugin::checkMessage: length=30(0x1E), message type=AS, data='100000003111111100000000', misc=00, checksum=0B <0x2fda5680>
02   04/01/17 8:34:32.406   luup_log:187: ElkPlugin::readArmRequestResponse: Got expected message. <0x2fda5680>
02   04/01/17 8:34:32.407   luup_log:187: ElkPlugin::requestArmMode: SUCCESS: Succesfully changed to the requested arm mode. <0x2fda5680>
50   04/01/17 8:34:32.407   luup_log:187: ElkPlugin::task: SUCCESS: Arm mode succesfully changed. <0x2fda5680>
02   04/01/17 8:34:32.425   luup_log:187: ElkPlugin::checkMessage: length=12(0x0C), message type=AM, data='000000', misc=00, checksum=7F <0x2fba5680>
02   04/01/17 8:34:32.426   luup_log:187: ElkPlugin::handlerFunc Message type description: Alarm Memory Update <0x2fba5680>
02   04/01/17 8:34:32.426   luup_log:187: ElkPlugin::setPartitionState: Set variable 'AlarmMemory1' = '0' for partition 1 (device 188). <0x2fba5680>
06   04/01/17 8:34:32.427   Device_Variable::m_szValue_set device: 188 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: AlarmMemory1 was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2fba5680>
02   04/01/17 8:34:32.428   luup_log:187: ElkPlugin::setPartitionState: Set variable 'AlarmMemory1' = '0' for partition 2 (device 189). <0x2fba5680>
06   04/01/17 8:34:32.428   Device_Variable::m_szValue_set device: 189 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: AlarmMemory1 was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2fba5680>
02   04/01/17 8:34:32.429   luup_log:187: ElkPlugin::setPartitionState: Set variable 'AlarmMemory1' = '0' for partition 3 (device 190). <0x2fba5680>
06   04/01/17 8:34:32.430   Device_Variable::m_szValue_set device: 190 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: AlarmMemory1 was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2fba5680>
02   04/01/17 8:34:32.446   luup_log:187: ElkPlugin::checkMessage: length=30(0x1E), message type=AS, data='000000001111111100000000', misc=00, checksum=0E <0x2fba5680>
02   04/01/17 8:34:32.446   luup_log:187: ElkPlugin::handlerFunc Message type description: Arming Status Report <0x2fba5680>
02   04/01/17 8:34:32.448   luup_log:187: ElkPlugin::getPartitionState: Partition 1 (device 188), got variable 'AlarmMemory' = '0'. <0x2fba5680>
02   04/01/17 8:34:32.449   luup_log:187: ElkPlugin::getPartitionState: Partition 2 (device 189), got variable 'AlarmMemory' = ''. <0x2fba5680>
02   04/01/17 8:34:32.449   luup_log:187: ElkPlugin::getPartitionState: Partition 3 (device 190), got variable 'AlarmMemory' = ''. <0x2fba5680>
02   04/01/17 8:34:32.450   luup_log:187: ElkPlugin::processArmingStatusReport: partition 1, armingStatus=Disarmed, armUpState=1, alarmState=0 <0x2fba5680>
02   04/01/17 8:34:32.451   luup_log:187: ElkPlugin::setPartitionState: Set variable 'ArmMode' = 'Disarmed' for partition 1 (device 188). <0x2fba5680>
06   04/01/17 8:34:32.451   Device_Variable::m_szValue_set device: 188 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ArmMode was: Armed now: Disarmed #hooks: 1 upnp: 0 skip: 0 v:0xc93378/NONE duplicate:0 <0x2fba5680>
07   04/01/17 8:34:32.452   Event::Evaluate 2  scene Test Alarm is true users:1022925 allow:1 <0x2fba5680>
08   04/01/17 8:34:32.452   Scene::RunScene running 14 Test Alarm <0x2fba5680>


Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on April 01, 2017, 05:54:07 pm
Ok, thanks.

This log sure spits out a lot of information. I've found what seems to coincide with the arming of the system:

06      04/01/17 17:30:02.588   Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ArmMode was: Disarmed now: Armed #hooks: 0 upnp: 0 skip: 0 v:0xb78f78/NONE duplicate:0 <0x71b0e520>
06      04/01/17 17:30:02.589   Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: DetailedArmMode was: Ready now: Armed #hooks: 5 upnp: 0 skip: 0 v:0xb78fe0/NONE duplicate:0 <0x71b0e520>
07      04/01/17 17:30:02.589   Event::Evaluate 1  scene Alarm Armed Away is true users: allow:1 <0x71b0e520>
08      04/01/17 17:30:02.589   Scene::RunScene running 2 Alarm Armed Away <0x71b0e520>


...and then this further down:

06      04/01/17 17:30:51.296   Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ArmMode was: Armed now: Disarmed #hooks: 0 upnp: 0 skip: 0 v:0xb78f78/NONE duplicate:0 <0x71b0e520>
06      04/01/17 17:30:51.297   Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: DetailedArmMode was: Armed now: Ready #hooks: 5 upnp: 0 skip: 0 v:0xb78fe0/NONE duplicate:0 <0x71b0e520>
07      04/01/17 17:30:51.297   Event::Evaluate 1  scene Alarm Armed Away wrong house mode 2 repeat 0/1 <0x71b0e520>
07      04/01/17 17:30:51.298   Event::Evaluate 4  scene Alarm Disarmed is false repeat 0/0 <0x71b0e520>
07      04/01/17 17:30:51.298   Event::Evaluate 8  scene Alarm Armed Stay is false repeat 0/0 <0x71b0e520>
07      04/01/17 17:30:51.298   Event::Evaluate 9  scene Alarm Armed Stay is false repeat 0/0 <0x71b0e520>
07      04/01/17 17:30:51.298   Event::Evaluate 13  scene Lights out (Exit) is false repeat 0/1 <0x71b0e520>
06      04/01/17 17:30:51.300   Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xb790b0/NONE duplicate:1 <0x71b0e520>


Does any of this shine a light on what's broken with my setup? Let me know if you need more of the log. It was super long, so I tried to pick out the parts that looked relevant.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on April 01, 2017, 09:08:38 pm
@Quixote
From what I can see this is not a problem with the plugin it is something to do with the scenes.

Without looking at the detail of your scenes I can't really fix your problem :( I suggest you create a new very basic scene with just with a "Disarmed" trigger and see if it is successful in the log. If it works add another trigger and check again.

What other triggers do you have associated with: -
Code: [Select]
07      04/01/17 17:30:51.298   Event::Evaluate 4  scene Alarm Disarmed is false repeat 0/0 <0x71b0e520> if it is just "Disarmed" it should work if like Alarm Armed Away you have house modes associated with the trigger than you need to check that also.

There are probably better equipped people on this forum to help out with this one then me.



Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: jmelia on June 27, 2017, 10:51:08 am
Two questions:
1. Is there any way of detecting a Elk Keypad Function button press (like F4), and determine which Keypad was used?
2. Is there any way of changing the Elk settings from Vera - I'd like to be able to selectively enable the light in the display of a Elk Keypad that is in a bedroom, and normally has its lights disabled.

Many thanks for all the hard work on this plugin - it's awesome!!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: groundwire on July 31, 2017, 09:54:59 pm
@zoot1612

Mr. Zoot: I recently have come into possession of an Elk M1 system and am getting it all labbed up to learn about how it can interact with a Vera controller.

It appears the version of the plugin available in the app store is several years old and does not appear to work with current versions of firmware on the various devices involved (both Vera Edge and the Elk).

I'm seeing that your git repo is more current (at about 3 months), but when I install things manually (following the instructions you provide) it doesn't create any of the devices. I'm completely ignorant about how I'm supposed to do that myself as the installation wizard does it for me (at least this is what I'm reading) - and documentation appears to be really fragmented.

Do you think it might be time to put the new version up on the app store? Or perhaps setup a completely new app on the store for non-legacy users? I remember reading you were keeping the current one there for legacy purposes, so I completely understand not wanting to break everyone else who is set at a certain version (and stable).

Thank you very much! This plugin does appear to be very awesome, hopefully soon I'll be able to actually use it and be able to say that with authority.  ;D

- Joel
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on August 02, 2017, 07:25:38 pm
@jmelia
Two questions:
1. Is there any way of detecting a Elk Keypad Function button press (like F4), and determine which Keypad was used?
2. Is there any way of changing the Elk settings from Vera - I'd like to be able to selectively enable the light in the display of a Elk Keypad that is in a bedroom, and normally has its lights disabled.

Many thanks for all the hard work on this plugin - it's awesome!!

While item 1 is available via the ELK M1 serial protocol currently it is not supported by the plugin. If you post the user case I may be able to help either with a solution or change to the plugin.

Item 2 is not supported as far as I can see, if some else knows that it can be done and how I would be happy to hear the solution.






Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on August 02, 2017, 07:50:15 pm
@zoot1612

It appears the version of the plugin available in the app store is several years old and does not appear to work with current versions of firmware on the various devices involved (both Vera Edge and the Elk).

I'm seeing that your git repo is more current (at about 3 months), but when I install things manually (following the instructions you provide) it doesn't create any of the devices. I'm completely ignorant about how I'm supposed to do that myself as the installation wizard does it for me (at least this is what I'm reading) - and documentation appears to be really fragmented.

Do you think it might be time to put the new version up on the app store? Or perhaps setup a completely new app on the store for non-legacy users? I remember reading you were keeping the current one there for legacy purposes, so I completely understand not wanting to break everyone else who is set at a certain version (and stable).

Thank you very much! This plugin does appear to be very awesome, hopefully soon I'll be able to actually use it and be able to say that with authority.  ;D

- Joel

At this point I won't be updating in app store, simply because I don't have the resourcing (time in this instance) to support it and yes documentation to not put to finer word on it is 'crap' for the parts I have done again time is the issue.

As to the plugin not working the first thing to do is check the logs to see what is happening, if you are connected via ethernet and are on the same subnet the plugin should configure itself otherwise back to the log and post issue here. I can't give instant replies but if logging is provided (always ensure that any sensitive info is removed) that I should be able to help.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: edentel on September 09, 2017, 10:27:29 am
I've stumbled on this thread after my Vera and Elk stopped talking.  I see the problem was solved and the solution is going straight to Zoot's plugin at github.  I've got the old pluging deleted, the new one added, but can't figure out the device creation semantics.

Could a kind sole offer some guidance as to how to populate the Develop Apps..... Create Device fields?   I've taken a few shots and nothing is getting created.  At best I'm getting "System error : Device: 279. Fail to load implementation file"

ANy pointer would be appreciated!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: edentel on September 10, 2017, 09:17:20 pm
After screwing around in the passenger seat during a road trip I managed to get the Panel and Partition devices created.  When I check the logfile for any menention of ElkPlugin in looks like everything is communicating just fine to my newbie eyes.

Two problems:
1) No sensors get created as devices
2) Using any buttons in the Partition page result in "ERROR: Device not ready"

I've attached a copy of the advanced options for both devices and the logfile mentions of ElkPlugin.

*ANY* pointers would be really appreciated!

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 19, 2017, 07:31:13 pm
@edentel

To a certain extent device creation should be automatic for supported devices. I think your issue more likely stems from something missed in the install.

Quote
At best I'm getting "System error : Device: 279. Fail to load implementation file"

I suggest you download and install again, you should not need to delete any files.


By the way the part of the log you sent through looks OK, I will need to see the whole thing to be sure though.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: edentel on September 22, 2017, 08:29:07 pm
I actually logged into the shell and deleted all of the Elk files.  I did a reboot and then uploaded the files from your link.  I rebooted and then created a device with the options below in the image.  Upon reboot I was seeing the same issue.  Hitting "clear" under device control results in "ERROR: Device not ready".

The plugin is communicating as the Vera GUI throws up a message, "Elk Alarm Panel : ELKRP is connected." If I run Elk RP.  Just the functionality is dead.

Checking the LuaUPNP log for anything referring to Elk is now showing:

01      09/22/17 20:25:45.501   LuaInterface::CallFunction_Startup-1 device 292 function elkStartup failed [string "-- Plugin Version..."]:2833: attempt to index field '?' (a nil value) <0x76785520>


I appreciate any pointer you might have!
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 26, 2017, 11:06:13 pm
@edentel
Not a lot of information to go on  :( . Can you look at what version of firmware on the elk you are running and also go to the following link and ensure your panel is set up in a similar way.

https://wiki.universal-devices.com/index.php?title=ISY-994i_Series_INSTEON:ELK_Security_Module (https://wiki.universal-devices.com/index.php?title=ISY-994i_Series_INSTEON:ELK_Security_Module)

Just the Configuring Elk part of the page and don't worry about the user at this point.

If you can you might get a quicker reply if you DM as I am not on this forum as much these days.

@edentel
Can you send me your complete log, removing any of the sensitive info? It may be some device that I have not catered for. These types of things are always hard to track down when hardware/software varies.


Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: GregM123 on November 09, 2017, 02:57:04 pm
Hi @zoot1612, I have installed the latest version of the Elk M1 plugin and so far it works pretty good. It's the most comprehensive Elk plugin I have seen. Most Elk integrations only deal with security. With that said, I am experiencing some issues. I can't imagine the difficulty created by the infinite combination of devices you can add to the Elk.

I am not a coder but I have written some simple scripts etc to connect the elk to other devices and have an understanding of the Elk protocol. I am happy to do what I can to help resolve the issues. I will, however, need some direction as I have not done any work in the Vera Lua files.

Here are the issues I am experiencing:

1) The PLC lighting (UPB in my setup) shows the On / Off switch in the web browser interface but not in the app (iphone7 & iPad Pro). The device is listed but the On/Off switch is missing. The outputs show the switch and I can turn them on or off from the app but not the lighting. Also, the dimmers show as On/Off switches.

2) The PLC lighting is not showing the correct status. From the web interface I can send on and off commands and the light turns on and off. The status of the light always displays off.

3) I have an RCS zone controller that is connected to the Elk and it shows up as 4 thermostats. The mode and current temp are correctly displayed but the setpoint show 0℃. Could it be related to the separate heating & cooling setpoints?

4) I am getting alerts from my security sensors every time they change state. Not a huge issue as the alarts are not sent but just logged. When I am in the kitchen, an event is logged every time the motion sensor detects motion. My concern here is that the log is filled with these event making it difficult to find real info.

Let me know if you need access to my system, logs etc.

Cheers,

Greg.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rdotten on November 25, 2017, 10:16:15 pm
I installed 2.19 from the App Store

Added the New Files from the Above Zip

Restarted Luup

Deleted Alarm Panel

Went to My Apps, created new Alarm Panel

added my IP and port

Restart Luup

Rebooted Vera

my log has these errors.....
11/25/17 22:04:21.882LuaInterface::CallFunction_Startup-1 device 202 function elkStartup failed [string "-- Plugin Version..."]:2833: attempt to index field '?' (a nil value) <0x76b8a520>
11/25/17 22:04:21.882LuImplementation::StartLua running startup code for 202 I_ElkAlarmPanel1.xml failed <0x76b8a520>


I'm sure it is something simple...not sure where to start

Thanks for taking a look.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 28, 2017, 08:53:44 pm
@GregM123
1) The PLC lighting (UPB in my setup) shows the On / Off switch in the web browser interface but not in the app (iphone7 & iPad Pro). The device is listed but the On/Off switch is missing. The outputs show the switch and I can turn them on or off from the app but not the lighting. Also, the dimmers show as On/Off switches.
It may be the app doesn't support the type of switch I created and as for the dimmer I never created a dimmer device. Send me the logs with comments and I will see what I can do.

2) The PLC lighting is not showing the correct status. From the web interface I can send on and off commands and the light turns on and off. The status of the light always displays off.

I don't have any PLC stuff so never sure if it would work or not and the code was very basic. Send me the log with comments of what you where doing at the time I may be able to fix this.

3) I have an RCS zone controller that is connected to the Elk and it shows up as 4 thermostats. The mode and current temp are correctly displayed but the setpoint show 0℃. Could it be related to the separate heating & cooling setpoints?

Logs please :)

4) I am getting alerts from my security sensors every time they change state. Not a huge issue as the alarts are not sent but just logged. When I am in the kitchen, an event is logged every time the motion sensor detects motion. My concern here is that the log is filled with these event making it difficult to find real info.

Sorry probably won't change this.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 28, 2017, 08:55:57 pm
@rdotten
Can you please send me the full log of what happens before the error and hopefully I can isolate it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: GregM123 on November 28, 2017, 09:33:22 pm
@zoot1612
Thanks for responding, I appreciate it. Do you want the logs posted here, PM, or email. I spoke with Vera tech support and they thought that some of the devices may have been created using an old format ( I didn't know there was an "old" format). Using the web interface, the PLC lighting can be turned On and Off but the status does not update correctly.

Greg
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rdotten on November 28, 2017, 09:37:16 pm
@rdotten
Can you please send me the full log of what happens before the error and hopefully I can isolate it.

@zoot1612
I will upload later this evening (i need to back out of some changes I made)

I spent sometime trying to isolate the issue.
As it was trying to createKeypads it does the first one without an issue (i=1 and keypad=1). Then when it loops through to get my 2nd keypad (i=2 and keypad=012)....when it tries to fill the label array it has null....(i think it initializes (line 2830: g_keypads[keypad] = {} (i think keypad is 12....then when it tries to fill the array (line 2833 g_keypads.label = label...i=2...and it is isn't initialized).
I changed line 2830 to g_keypads={}....and it all worked....I haven't gone thru to see if this causes other problems.....but it does initialize and list all sensors.

Thank you,





Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 28, 2017, 10:44:22 pm
@rdotten
@rdotten
Can you please send me the full log of what happens before the error and hopefully I can isolate it.

@zoot1612
I will upload later this evening (i need to back out of some changes I made)

I spent sometime trying to isolate the issue.
As it was trying to createKeypads it does the first one without an issue (i=1 and keypad=1). Then when it loops through to get my 2nd keypad (i=2 and keypad=012)....when it tries to fill the label array it has null....(i think it initializes (line 2830: g_keypads[keypad] = {} (i think keypad is 12....then when it tries to fill the array (line 2833 g_keypads.label = label...i=2...and it is isn't initialized).
I changed line 2830 to g_keypads={}....and it all worked....I haven't gone thru to see if this causes other problems.....but it does initialize and list all sensors.

Thank you,

Give the latest git master a try, I had allowed for eight keypads not sixteen.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rdotten on November 28, 2017, 10:54:20 pm
@zoot

I'm getting the same error.
I think it is because my keypad is number 12, but i only have 2 of them....

My log is attached
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on November 28, 2017, 11:12:22 pm
@zoot

I'm getting the same error.
I think it is because my keypad is number 12, but i only have 2 of them....

My log is attached

Yes that is the issue and I thought I had got it :) I have uploaded an update try that, hopefully this time it works. Can't really test this myself as I have one alarm system that is in service and I don't want to stuff around with it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: rdotten on November 28, 2017, 11:22:06 pm
@zoot

I'm getting the same error.
I think it is because my keypad is number 12, but i only have 2 of them....

My log is attached

Yes that is the issue and I thought I had got it :) I have uploaded an update try that, hopefully this time it works. Can't really test this myself as I have one alarm system that is in service and I don't want to stuff around with it.

That one worked.....thank you so much.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on December 04, 2017, 06:26:34 pm
I am just in the process of replacing my Vera 3 UI5 to a VeraPlus. I installed the Elk M1 plugin (V 2.19) and it created the devices and outputs (mostly). But it did fail to create several devices in my M1.
It looks like some of my phantom outputs in the M1 did not get created. These outputs are all numbered 200 and above. There are 5 of them in my panel. I suspect the plugin is not polling any outputs above 199.

Can I somehow force poll these or manually add them?  What do you think?


EDIT-- Since no response to my question, I remapped my phantom outputs to un-used numbers below 100 and they now show up in Vera ok. So to make clear, this plugin will not address outputs about 100.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: bucko on December 11, 2017, 05:48:19 am
Now for 1 more issue. Clicking Troubleshoot in the Alarm Panel Plugin returns  "setCpanelContent is not defined"

Before in UI5 this would display any trouble conditions in my ELK. So what variable do I need to add to pull a trouble list? Everything else is working.
Title: Pin code error solved?
Post by: bucko on January 25, 2018, 10:32:41 pm
The ongoing Pin code  "invalid pin code" , has it been solved at this point for UI7?

After extensive testing my Vera this error is causing my Vera to reload DURING a disarm only. Result is that although the Elk does disarm, no Pleg actions get fired because Vera is reloading.

Funny enough ARMING with this error does not crash Vera and everything does work fine.

But no doubt DISARM is disrupting things from happening other than the Elk panel disarming fine.

Any cure yet to make this error go away?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: GregM123 on March 05, 2018, 11:21:10 am
Hi @zoot1612. My apologies for the delay in posting the logs. I tried digging into it my self but am not sure where to start. My gut feel is that there are two issues.

1) Some of the devices need configuration changes:
2) The message going to the Elk to turn the lights on and off is correct. The response however is not being mis-interpreted.


The following is from making a web request for xml data regarding one of the thermostats via the url above.

<root Using_2G="0" LoadTime="1519887624" DataVersion="887632573" UserData_DataVersion="887624162" TimeStamp="1519926778" lights_on="0" lights_off="2" doors_locked="1" doors_unlocked="0" sensors_tripped="0" sensors_not_tripped="17" failed_devices="0" visible_devices="103" partitions_active="0" partitions_notactive="1" ZWaveStatus="1" Mode="1" LocalTime="2018-03-01 10:52:58 D">
<Device_Num_61 PendingJobs="0" status="-1">
<states>
<state id="139" service="urn:upnp-org:serviceId:HVAC_FanOperatingMode1" variable="Mode" value="ContinuousOn"/>
<state id="140" service="urn:upnp-org:serviceId:HVAC_UserOperatingMode1" variable="ModeStatus" value="HeatOn"/>
<state id="141" service="urn:upnp-org:serviceId:TemperatureSensor1" variable="CurrentTemperature" value="19"/>
<state id="142" service="urn:upnp-org:serviceId:TemperatureSetpoint1_Heat" variable="CurrentSetpoint" value="20"/>
<state id="143" service="urn:upnp-org:serviceId:TemperatureSetpoint1_Cool" variable="CurrentSetpoint" value="27"/>
<state id="144" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Commands" value="hvac_off,hvac_auto,hvac_cool,hvac_heat,heating_setpoint,cooling_setpoint,fan_auto,fan_on"/>
<state id="145" service="urn:micasaverde-com:serviceId:HaDevice1" variable="ModeSetting" value="1:;2:;3:;4:"/>
<state id="146" service="urn:micasaverde-com:serviceId:HaDevice1" variable="LastUpdate" value="1519926402"/>
<state id="147" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Configured" value="0"/>
</states>
<Jobs/>
<tooltip display="0"/>
</Device_Num_61>
<alerts>...</alerts>
</root>


Here are some clips from the log.

Turning an Elk Output on. Works great everytime.

01   03/01/18 10:26:32.761   sbrk JobHandler_LuaUPnP::HandleActionRequest Problem with getnameinfo <0x72fc9520>
08   03/01/18 10:26:32.761   JobHandler_LuaUPnP::HandleActionRequest device: 38 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x72fc9520>
08   03/01/18 10:26:32.761   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=38 <0x72fc9520>
08   03/01/18 10:26:32.761   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x72fc9520>
08   03/01/18 10:26:32.762   JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x72fc9520>
08   03/01/18 10:26:32.762   JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x72fc9520>
08   03/01/18 10:26:32.762   JobHandler_LuaUPnP::HandleActionRequest argument rand=0.26124631544908716 <0x72fc9520>
02   03/01/18 10:26:32.763   luup_log:12: ElkPlugin::setTarget: Turn on control output/task/plc 14 (device 38). <0x72fc9520>
02   03/01/18 10:26:32.763   luup_log:12: ElkPlugin::sendCommand: Send command: '0Ecn0140000000D5'. <0x72fc9520>
02   03/01/18 10:26:32.788   luup_log:12: ElkPlugin::checkMessage: length=10(0x0A), message type=CC, data='0141', misc=00, checksum=E3 <0x72dc9520>
02   03/01/18 10:26:32.789   luup_log:12: ElkPlugin::handlerFunc Message type description: Output Change Update <0x72dc9520>
02   03/01/18 10:26:32.789   luup_log:12: ElkPlugin::processOutputReport: Output 014 is On. <0x72dc9520>
06   03/01/18 10:26:32.789   Device_Variable::m_szValue_set device: 38 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0x126e938/NONE duplicate:0 <0x72dc9520>
04   03/01/18 10:26:36.208   <Job ID="1362" Name="pollnode #4 1 cmds" Device="7" Created="2018-03-01 10:26:36" Started="2018-03-01 10:26:36" Completed="2018-03-01 10:26:36" Duration="0.107335000" Runtime

Turning on a light controlled by the elk. The light turns on and off reliably but the status does not update correctly. Can only be done via web interface.

01   03/01/18 10:31:12.371   sbrk JobHandler_LuaUPnP::HandleActionRequest Problem with getnameinfo <0x737c9520>
08   03/01/18 10:31:12.371   JobHandler_LuaUPnP::HandleActionRequest device: 134 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x737c9520>
08   03/01/18 10:31:12.372   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=134 <0x737c9520>
08   03/01/18 10:31:12.372   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x737c9520>
08   03/01/18 10:31:12.372   JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x737c9520>
08   03/01/18 10:31:12.372   JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x737c9520>
08   03/01/18 10:31:12.372   JobHandler_LuaUPnP::HandleActionRequest argument rand=0.6247034521985222 <0x737c9520>
02   03/01/18 10:31:12.373   luup_log:12: ElkPlugin::setTarget: Turn on control output/task/plc 20 (device 134). <0x737c9520>
02   03/01/18 10:31:12.373   luup_log:12: ElkPlugin::sendCommand: Send command: '09pnB0400B3'. <0x737c9520>
02   03/01/18 10:31:12.432   luup_log:12: ElkPlugin::checkMessage: length=11(0x0B), message type=PC, data='B0401', misc=00, checksum=94 <0x72dc9520>
02   03/01/18 10:31:12.433   luup_log:12: ElkPlugin::handlerFunc Message type description: PLC Change Update <0x72dc9520>
01   03/01/18 10:31:12.433   luup_variable_set interface 0x12bd548 no Status/(null) <0x72dc9520>
02   03/01/18 10:31:12.434   luup_log:12: ElkPlugin::plcChangeUpdate: House Code B, Unit 4 set too 1 <0x72dc9520>
01   03/01/18 10:31:33.263   sbrk JobHandler_LuaUPnP::HandleActionRequest Problem with getnameinfo <0x73fc9520>
08   03/01/18 10:31:33.264   JobHandler_LuaUPnP::HandleActionRequest device: 134 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x73fc9520>
08   03/01/18 10:31:33.264   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=134 <0x73fc9520>
08   03/01/18 10:31:33.264   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x73fc9520>
08   03/01/18 10:31:33.265   JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x73fc9520>
08   03/01/18 10:31:33.265   JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=0 <0x73fc9520>
08   03/01/18 10:31:33.265   JobHandler_LuaUPnP::HandleActionRequest argument rand=0.7573343415294562 <0x73fc9520>
02   03/01/18 10:31:33.266   luup_log:12: ElkPlugin::setTarget: Turn off control output/task/plc 20 (device 134). <0x73fc9520>
02   03/01/18 10:31:33.266   luup_log:12: ElkPlugin::sendCommand: Send command: '09pfB0400BB'. <0x73fc9520>
02   03/01/18 10:31:33.313   luup_log:12: ElkPlugin::checkMessage: length=11(0x0B), message type=PC, data='B0400', misc=00, checksum=95 <0x72dc9520>
02   03/01/18 10:31:33.313   luup_log:12: ElkPlugin::handlerFunc Message type description: PLC Change Update <0x72dc9520>
01   03/01/18 10:31:33.314   luup_variable_set interface 0x12bd548 no Status/(null) <0x72dc9520>
02   03/01/18 10:31:33.314   luup_log:12: ElkPlugin::plcChangeUpdate: House Code B, Unit 4 set too 0 <0x72dc9520>
04   03/01/18 10:31:36.213   <Job ID="1372" Name="pollnode #4 1 cmds" Device="7" Created="2018-03-01 10:31:36" Started="2018-03-01 10:31:36" Completed="2018-03-01 10:31:36" Duration="0.111534000" Runtime="0.111001000" Status="Successful" LastNote="" Node="4" NodeType="ZWaveDimmableLight" NodeDescription="Lamp"/> <0x765c9520>
02   03/01/18 10:31:36.213   Device_Basic::AddPoll 7 poll list full, deleting old one <0x765c9520>
06   03/01/18 10:31:36.214   Device_Variable::m_szValue_set device: 7 service: urn:micasaverde-com:serviceId:HaDevice1 variable: PollRatings was: 5.00 now: 5.00 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x765c9520>
06   03/01/18 10:31:36.214   Device_Variable::m_szValue_set device: 7 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: LastPollSuccess was: 1519925346 now: 1519925496 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x765c9520


Let me know how I can help. I have done some basic messaging with my Elk system and understand the portocol.


Greg
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on April 22, 2018, 05:37:19 pm
Without digging through logs just yet, are there any known issues with triggering scenes using the Elk automation tasks?
I'm a little stumped as to why they aren't working when it seems that everything else is just fine.

Thanks in advance.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on August 21, 2018, 04:19:46 pm
Ness has now released a new M1 Plugin that works with all M1 functions. It is now available via the Vera store for free
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on August 21, 2018, 05:05:02 pm
Ness has now released a new M1 Plugin that works with all M1 functions. It is now available via the Vera store for free

Nice! Thanks for the heads-up! I'll be sure to check it out. Is there a forum thread discussing it?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on August 21, 2018, 05:19:59 pm
Not sure,  I only became aware of the new plugin after sitting in on a webinar by Ness last night.  Seems to fully integrate to M1 for zones,  rules,  tasks,  lights,  etc so the real deal.  Great work by Ness!!

Sent from my SM-G955F using Tapatalk

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Quixote on August 21, 2018, 05:27:22 pm
Cool! If you try it out, please let me know how it compares. I have a lot set up at the moment with my Elk and the Vera as well as a ton of other projects that I'm tangled up in, so it may be a while before I can get back into "experimentation mode". I'd be very interested to hear about your experiences.
Thanks again
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on August 21, 2018, 05:37:35 pm
No worries.  I will take the leap of faith in a few weeks and see how it goes.  If it does as expected (and I don't doubt it will as Ness built and are also supporting this plugin), then it will allow me to integrate not just sensors and outputs/ relays but also tasks and lights.  I should be on to it by mid Sept at this stage, when I have some spare time. 

Sent from my SM-G955F using Tapatalk

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: GregM123 on September 03, 2018, 12:33:36 pm
I was a little concerned that I messed my controller up trying to fix some of the issues with the original M1 plugin so I did a factory reset on my Vera. I then installed the Ness M1 plugin.

It was pretty slow to set up but it works pretty well. I can now turn my UPB lights on and off right from the app. So far I have not had the random blast of vera notifications about sensor activity.

There are however a few areas that can be improved.


I have a few questions for the experts:

Any assistance would be greatly appreciated. Thanks to all that have contributed to this app. The M1 + Vera combo makes for one of the most capable smarthome + security systems on the market.

I'll be digging through the code myself as well in an effort to answer my own questions and will post updates as I make progress (or not).

Cheers,

Greg
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lakewoodjazz on September 04, 2018, 09:08:02 pm
Hi Greg
Thanks for your work on the M1 plug in. I look forward to having the motion sensors not report as burglary even when they are disarmed and sense motion. Currently I have over 1000 alerts per day when everyone is home and can only delete 50 at a time.
Waiting for Mios to allow more flexibility in the number of deletions and capability to program a scene to delete the alerts at a specified time.
If you can help with that I would be very greatful.
Regards
Wilbur
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 05, 2018, 12:32:30 am
The NESS plugin is based off the git version of the ELK plugin looking at Lua file itself.

When I get a bit of time I'm going to compare across all the files and see if there have been any improvements.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on September 17, 2018, 12:24:59 pm
Zoot - is the Elk plugin on the MIOS store a newer version?  all of a sudden, all of my lighting devices integrated over from the Elk (as on-off switches).  I wasn't sure if you'd implemented something from the Ness plugin.

Is there a way to disable this?  I use RadioRa2 so I already have them coming in via that app.
Thanks for all your work on this.  Any idea of any other differences between Elk and Ness?
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 28, 2018, 07:45:08 am
@electnixon

The update is from git and has had that integrated for some time I have just not updated the app in store. In fact the reverse is true I think you will find the NESS plugin is based off the git version of the plugin.

At this point there is no way to disable but shouldn't be hard to add so give me a little time and I will hopefully push out an update.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on September 28, 2018, 08:45:58 am
@electnixon

Attached is the update but also waiting for approval on App store.

To exclude PLC lighting: -
Once update has been completed and a restart occurs a new setting is available under the main elk device -> advanced -> variables there should be a new field plcControl. This field is set to "1" as default. Set this to "0" and restart LUUP engine.

After two restarts devices should be removed from the ELK plugin.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tadr on October 07, 2018, 10:02:01 pm
@electnixon

Attached is the update but also waiting for approval on App store.

To exclude PLC lighting: -
Once update has been completed and a restart occurs a new setting is available under the main elk device -> advanced -> variables there should be a new field plcControl. This field is set to "1" as default. Set this to "0" and restart LUUP engine.

After two restarts devices should be removed from the ELK plugin.

Zoot - many thanks for your work on the plugin.  My Elk system stopped syncing with my Vera on 9/29, which led me to investigate the latest update (I had the plugin set to auto-update through the mios app store).  It looks like the fix for 16 keypads in the createKeypads function got lost in the latest update.

If others are having this problem: I changed the loop counter in createKeypads from 8 back to 16 and changed "g_keypads.label = label" to "g_keypads[keypad].label = label" and it appears to be working again for me.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on October 12, 2018, 04:57:46 pm
I too have had problems with the latest update.
My Vera can see zone status from the m1 but will not respond to arming or disarming which I was using to trigger scenes, nor can I fire M1 outputs from the Vera anymore.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on October 13, 2018, 10:50:37 am
Same here.  I can't tell if it's the Elk or the Vera.
Vera is pretty flaky anyway (my backups only display 5% of the time when trying to restore one).
I can see zones but not control them.   :-[
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on October 13, 2018, 05:27:59 pm
Who do we need to contact regarding this?
It?s quite frustrating, as it was working fine and now the update has completely wrecked it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on October 14, 2018, 02:16:24 pm
Zoot manages the app, but it's possible that something changed on the vera which broke it.  I think problems like that are a lot harder to figure out.
He hasn't responded yet but it's also possible that his still works, so not being able to duplicate the problem also makes it harder to figure out.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on October 15, 2018, 07:55:49 am
Hmm, I wonder if its my Vera playing up.
I had previously installed the ness m1 plugin from Australia (ness have re-branded the elk m1)) but it was slowing the unit down and Vera tech support informed me it was causing the Luup engine to constantly reload. They suggested the elk plugin instead.
I contacted ness and they claim their veras were fine with the ness plugin.
Would still like to somehow rollback the app version so everything works again.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: tadr on October 15, 2018, 11:08:55 am
For what it?s worth, I too tried the Ness plugin when I was troubleshooting my issues after the latest update to the elk m1 plugin.  My vera was also extremely slow with the Ness plugin - it appeared to be working but responses were very very sluggish.  I uninstalled it and fixed the elk plugin (as described above) and everything went back to normal.

For those of you that want to roll back - you can find the various versions of the .lua files on the github page for the Elk m1 plugin - as I mentioned, correcting the lines relating to the keypad loop fixed the issues for me.  For reference, I only have 4 keypads but I also have a supervised aux power supply which shows up as address 16 (by default) on the keypad bus, which was causing my issue.  You should be able to get a better idea of what?s causing your problems by looking at the logs.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on October 15, 2018, 05:01:50 pm
Not a lot of luck either with the Ness M1. Not sure why it was slow and very unresponsive,  but I simply restored an earlier backup to reinstate Zoot's M1 and all is good again.  Did notice that the Elk version now does all of the other functions (lights,  tasks,  etc) so that seems new and vital for me.  Next step is to purchase the Ness automaton module so I can have Alexa, Google Home or Siri control my Vera via the M1. There's a bit of work in writing rules for every action in M1 to operate the equivalent function in Vera, but I guess it only had to be done once then backed up.

http://nesscorporation.com/101-296a.html


Sent from my SM-G955F using Tapatalk

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on October 15, 2018, 05:09:44 pm
All the log says is failed to create job.
When I attempt to operate an output- it says command failed.
When I attempt to arm or disarm- I get a device not ready error.
We only have a small system with 1 keypad and using outputs for floor heating and a couple of doors.
@ tadr, is it difficult to do what you have done with the code? I know nothing about code or even where to adjust it on my Vera. I?m wllling to give it a go if it?s not too tricky however..
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on October 15, 2018, 05:14:21 pm
@lowway r u in australia?
There are other options for voice control which connect directly to the Vera instead of the m1.
Saves having to write rules to control zwave lighting.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on October 15, 2018, 05:24:30 pm
Yep,  in Oz. Are there Vera plugins?

Sent from my SM-G955F using Tapatalk

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on October 16, 2018, 03:09:04 am
Does this look familiar?
http://www.smarthome.com.au/z-wave-automation-bridge.html
Connects directly to the Vera and works pretty well, I?m finding it a bit hit and miss with dimming but on & off work fine using siri.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: lowway on October 16, 2018, 03:20:02 am
cheers, will check it out when I get back from hols
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: chuckled on October 31, 2018, 06:21:10 am
I too have had problems with the latest update.
My Vera can see zone status from the m1 but will not respond to arming or disarming which I was using to trigger scenes, nor can I fire M1 outputs from the Vera anymore.

Same issue here with an M1 Gold and M1-XEP, zones will show as tripped in Vera, but I can't arm the partitions from Vera (or Imperihome).

Looking at the Elk logs, any time the system is armed from Vera/Imperihome, it immediately disarms itself - not sure if this is Vera or Elk managing this.

I reloaded a previous backup from a few months back, and that allowed me to arm/disarm the system, so this would align with the previous comments around the recent update.

Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on October 31, 2018, 09:02:22 am
Glad I?m not the only one then!
Vera tech support contacted me a few days ago and were going to investigate further, but I have heard nothing since.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: electnixon on November 02, 2018, 08:12:45 pm
For what it?s worth, I too tried the Ness plugin when I was troubleshooting my issues after the latest update to the elk m1 plugin.  My vera was also extremely slow with the Ness plugin - it appeared to be working but responses were very very sluggish.  I uninstalled it and fixed the elk plugin (as described above) and everything went back to normal.

For those of you that want to roll back - you can find the various versions of the .lua files on the github page for the Elk m1 plugin - as I mentioned, correcting the lines relating to the keypad loop fixed the issues for me.  For reference, I only have 4 keypads but I also have a supervised aux power supply which shows up as address 16 (by default) on the keypad bus, which was causing my issue.  You should be able to get a better idea of what?s causing your problems by looking at the logs.

I too have an aux power supply.  Perhaps that was my problem.  I didn't think of using the git rollback but did restore vera backups from before the issues and they didn't fix the issue.

About 3 weeks ago when this broke I tried a few fixes then I loaded a trial homeseer because I could not live without Elk connection working.  I like that the HS3 RadioRa2 plugin has a lot more functionality.  I had tried HS3 about a year ago when something else broke on Vera but had trouble with sonos on HS3 and eventually the Vera issue was resolved so I didn't continue after the trial ended.  I had trouble with Sonos on Homeseer the first time but this time around figured out it wasn't running as administrator in windows.  I just purchased a HS3 licence during their November sale and I unplugged my Vera about a week ago. Vera had been doing a lot of work for me and I had a ton of devices but repairing the setup every few months as too much.  I had stopped using most of my Z wave stuff it had too much latency.  I'm just getting started on HS3 but I'll be curious if Z wave improves vs. Vera or stays the same.  I'd really like to thank Zoot for all the work on this plugin but the broken Sonos announcements followed by the recent Elk issues were enough for me.  I may plug my vera back in if I ever need zigbee or one of the other radios and use HS3 to control it but doubt that will happen.  For the record, I have had a Vera 2, Vera 3, and Vera Plus.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: Andys on November 03, 2018, 07:34:30 pm
It is a pity, it seems half the problems with the Vera are due to third party plugins- maybe not the Vera itself.
I too have changed controller and have not looked back, everything now just works.
For what it is worth, the Vera tech support team have been friendly and helpful. Hopefully the issues can be resolved in the future, I will keep the Vera in the cupboard and see what the future holds for it.
Title: Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
Post by: zoot1612 on January 20, 2019, 08:46:23 pm
Apologies all I just haven't got the time I used to have to put to much time into the plugin. For those that are still using it I will try and fix the issues as time allows.