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

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« 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.
« Last Edit: June 23, 2011, 01:54:41 pm by mcvflorin »

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 598
  • Karma: +19/-1
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #1 on: June 27, 2011, 10:05:33 am »
Does it work via a ELK-M1XEP. It is the Elk serial to ethernet converter.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #2 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.

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 598
  • Karma: +19/-1
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #3 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 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

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #4 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.

Offline guessed

  • Master Member
  • *******
  • Posts: 5293
  • Karma: +90/-22
  • Release compat is not a bolted-on afterthought
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #5 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.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #6 on: June 28, 2011, 01:54:39 pm »
@guessed
Thanks for the suggestion, I modified the plugin as you said.

Offline zoot1612

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

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #8 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.

Offline cipherwarrior

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #9 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?


Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #10 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.

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +10/-32
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #11 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!
My "Karma" has been modified by 2 or 3 douchebags that didn't like that I criticized the plugin that they worship. I'm not actually a bad person.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #12 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.

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +10/-32
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #13 on: July 20, 2011, 03:43:12 pm »
Thanks! Looking forward to it!
My "Karma" has been modified by 2 or 3 douchebags that didn't like that I criticized the plugin that they worship. I'm not actually a bad person.

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +10/-32
Re: Elk M1 (and M1 M1EZ8) Alarm Panel Plugin
« Reply #14 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
My "Karma" has been modified by 2 or 3 douchebags that didn't like that I criticized the plugin that they worship. I'm not actually a bad person.