We have moved at community.getvera.com

Author Topic: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin  (Read 163498 times)

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #300 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>

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #301 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

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #302 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.

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #303 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 

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #304 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).

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #305 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>

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #306 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"?


Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #307 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

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #308 on: February 17, 2013, 08:51:34 pm »
I did reload the page.  I'll look at it again later tonight. 

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #309 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

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #310 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.

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #311 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.

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #312 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

Offline signal15

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +1/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #313 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.

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #314 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