Charmed Quark Systems, Ltd. - Support Forums and Community

Full Version: Elk M1 V2 Driver - Can't Arm/Disarm in UI?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I had an old template that had a image of an Elk Keypad. When you tapped on a number button it would build up a string with your code. You could then tap on Exit/Stay/Disarm to have it call the M1 to take the action and pass along the built up keycode. I apparently never used it much because I tried it today and it didn't work.

Does the format of my command have to change?

PinCode::SendValue
P1=ElkM1.InvokeCmd
P2=ArmAway:1,\%(v)
The commands use the names of things in the V2 world, not numbers. So you need to pass the configured name of the area, instead of '1'. That's the most likely issue I see.
LMK if you still can't get to work. Mine does, its relatively plain jane though.
still can't get it working.

Since I'm just using the InvokeCmd call on the driver, which I thought was just a passthrough, I'm not sure why it's broken now.

I tried the field browser to test out multiple commands and no luck. In the InvokeCmd field value I tried (XXXX being a valid user code):
ArmAway:"Main",XXXX
ArmAway:'Main',XXXX
ArmAway:Main,XXXX
ArmAway:1,XXXX
ArmAway:"Main"
ArmAway:'Main'
ArmAway:Main
ArmAway:1

Every single one came back with
The value written to field ElkM1.InvokeCmd was rejected by the driver. Reason=ValueRejected

What am I doing wrong?
Ugh, I looked closer at the doc and the format has changed.

ArmArea : aaa, mmm, ccc. This command will arm area aaa, using mode mmm, and using security code ccc.
DisarmArea : aaa, ccc. This command will disarm area aaa, using security code ccc.

I was missing the arming mode.
Yeh, it had to change since these commands now apply to any device that implements the V2 Security device class. So the mode had to be removed from the actual command and made a parameter.
Where is this documentation? I am looking at the V2 driver documentation and it makes no mention of the arm or disarm commands. I am switching to the V2 driver and looking for the correct command format.
jokermac Wrote:Where is this documentation? I am looking at the V2 driver documentation and it makes no mention of the arm or disarm commands. I am switching to the V2 driver and looking for the correct command format.


http://www.charmedquark.com/Web2/ExtCont...curity.htm is the direct link

Look at the "Security" hyperlink under "Device Classes", click that.

Quote:Device Classes:

This driver is a V2 compliant one and, due to the fairly extensive amount of functionality possible, it implements a good number of device classes. It also still implements a substantial amount of functionality above and beyond the device class interfaces, which is defined further below. The device classes this driver implements are:

Analog I/O. For voltages, which are essentially analog input signals.
Digital I/O. For the digital outputs, plus any relays or contact closures that might be supported.
Lighting. All of the 'PLC Units' as the Elk calls them are handled here.
MotionSensor. Any zones configured as motion zones are handled here.
Security. Security and zones are handled here.
Thermostat. Configured thermostats are handled here.