View Full Version : Build 505 & Elk Plugin
harleydude
December 8th, 2006, 07:37 AM
After a couple of hours of testing and recoding I finally got my Elk plugin to work with build 505. Now when ever I update the SecurityArea's Status control I am receiving DeviceCommand events indicating a change to the Status control. Is this normal or is something still amiss with my code?
Rob H
December 8th, 2006, 09:27 AM
Do you want to upload your provider (or mail it to me) and I'll take a look.
It's been a while since I've looked at the ELK plugin, so if you've made any changes to that it would be a good idea to include that too.
harleydude
December 8th, 2006, 10:36 AM
The Elk plugin I am using is something that I have been working on since I got the Elk and Girder back in Feb of this year. I recently upgraded it to work with G5 Alpha 503 and all has been working fine. The provider is basically the same as the HAI provider.
My DeviceCommand routine displays the variables passed to it in the LUA console.
DeviceCommand = function (self,Command,Device,Control,newvalue)
print ("DeviceCommand()",Device:GetID(), Control:GetID(), newvalue)
and here is the ouput
DeviceCommand() Security Area 1 Status Armed Armed Away
This happens right when I create the device and anytime that I update the Status control of the device.
Promixis
December 9th, 2006, 12:32 PM
Note: the sec device and zone device changed a fair bit with this release.
Let me know if you need help changing your code.
What parts of the ELK have you implemented to date?
harleydude
December 9th, 2006, 05:11 PM
I managed to get the security area devices under control with assistance from the HAI provider. Still do not understand why I receive the status control events, but it is not causing any problems at the moment. Have not tackled the zone devices yet.
So far I implemented the following:
Security Areas - Seem to be working fine
Zones - Need more testing with the new build
Outputs - Almost done
Lighting - Need more testing with the new build and work out a few issues
Still to do:
Task Activation
Aux Zones
Keypad Functions & Temps
Rick
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.