[quote=“guessed, post:793, topic:167215”]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:
http://<veraIP>: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:
luup.call_action("urn:micasaverde-com:serviceId:DSCAlarmPanel1",
"SendCommand",
{Command = "071", Data="1*71"}, 61)
The above examples will do the action on PGM1 ([tt]*71[/tt]). For PGM 2…4, substitute to get [tt]*72, *73 or *74[/tt].
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!!
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 [tt]*71, *72[/tt], 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)[/quote]
Can this code be used with the Garage Door Plugin at:
http://rts-services.com/Vera/Plugin/GarageDoor/
I have a door sensor through the DSC panel and I also have the Command Output 1 (PGM1) wired to open/close the door through a relay.
How do I create a way to actuate the PGM1 output through Mios UI5?