DSC PGM outputs

I have a DSC 1832 panel, using an EVL-3 to interface with a Vera edge. I have the plug in installed, and working fine. My question is with getting the luup code to work to make a PGM output toggle. I found the following in a post on here, and have a question:
Do I need both the HTTP and the lua snippet to make it work? If so, where does the HTTP URL go in the Vera?

(all the following was copy and paste from the earlier post from 2012)

We’d had a discussion going on one of the other threads about using PGM’s as a mechanism for getting Vera-based state data “into” a traditional Alarm configuration:
http://forum.micasaverde.com/index.php/topic,10763.0.html

For folks with a 2DS unit, you can Pulse the PGM output using a URL like:
Code: [Select]
http://:3480/data_request?id=action&DeviceNum=61&serviceId=urn:micasaverde-com:serviceId:DSCAlarmPanel1&action=SendCommand&Command=071&Data=1*71

and can call it via Luup using a Lua snippet like:
Code: [Select]
luup.call_action(“urn:micasaverde-com:serviceId:DSCAlarmPanel1”,
“SendCommand”,
{Command = “071”, Data=“1*71”}, 61)

The above examples will do the action on PGM1 (*71). For PGM 2…4, substitute to get *72, *73 or *74.

In order to do this, you first need to set the Target PGM to not require a PIN Code. Many thanks to @strangely for this bit of DSC Configuration!!
Quote from: strangely
For the PGM PIN entry, you need to toggle 501 5 and 502 5 to turn PIN code entry off.

No other changes were made to the generic DSC, and all testing was done using PGM1. For this setup, I have an LED wired across AUX+ and PGM1 (with an appropriate resistor). When the PGM is changed, the LED will light for ~7 seconds. Different PGM outputs have different default configurations, so check the manual to see what options are needed in your specific case.

If this needs to be wired to another Zone, as per the original discussion, then you’d need to use a Low Wattage Relay unit. I haven’t tested this part, but it should work also… as long as the Relay is low wattage (the PGM1 connection can only provide/sink 50mA @ 12v).

Wiring diagram is the standard one shown in places like:
Power without - (negative) terminal - Electronics | DSLReports Forums

For manual control of the PGM directly from the Alarm unit’s Keypad, users can directly key in *71, *72, etc.

As usual, use appropriate caution in this setup. Having Vera accidentally trigger an Alarm on a Managed/Monitored Alarm Panel may result in the Police arriving at your house unexpectedly… 8)

Any help?
I’m having trouble with this section;

For folks with a 2DS unit, you can Pulse the PGM output using a URL like:
Code: [Select]
http://:3480/data_request?id=action&DeviceNum=61&serviceId=urn:micasaverde-com:serviceId:DSCAlarmPanel1&action=SendCommand&Command=071&Data=1*71

Hi,

If this is your question, then you could use either, they both look to be doing the same thing. The url version is more for calling that piece of code remotely e.g via a browser. The second luup/LUA example is best placed and run locally within a scene.

[quote=“Yoyodyne, post:1, topic:198675”]Do I need both the HTTP and the lua snippet to make it work? If so, where does the HTTP URL go in the Vera?

http://<veraIP>:3480/data_request?id=action&DeviceNum=61&serviceId=urn:micasaverde-com:serviceId:DSCAlarmPanel1&action=SendCommand&Command=071&Data=1*71

luup.call_action("urn:micasaverde-com:serviceId:DSCAlarmPanel1", "SendCommand", {Command = "071", Data="1*71"}, 61)[/quote]