PowerHome2 & Elk M1 Gold Manual

15
Now, each time your Elk is armed or disarmed the trigger will fire, the macro will execute
and you will receive a text message (or email).
4.4 Using a PowerHome2 formula to Open/Close an Elk Relay
Use the following formula to control close output 13 on the Elk.
ph_setotherdigitalout ("ELK", 1, 1, 13, 1)
The formula can be explained as followed:
ph_setotherdigitalout ( controller, type, unit, point, status )
Argument Description
controller The ID of the controller.
type The type of the Digital point. Use 0 for Input and 1 for Output.
unit The address of the unit.
point The digital output point you wish to set or clear.
status The status you wish to set. 1 will turn the relay on, 0 will turn the relay off
4.5 Alternate Method of Finding Arming/Disarming Status
Set up a PowerHome trigger. Choose a trigger type of "Generic Controller". Set the Trigger ID to
the ID of your Elk. Set the Trigger ID Number to "Command 5" and the Trigger Value to "Option
1". After doing this, the trigger will fire anytime the Arm Status or the Alarm State changes. When
this trigger fires, the [TEMP5] variable will contain the Arming Status for the 8 zones. The
[TEMP10] variable will contain the Arm Up State and the Alarm State of the 8 zones. The
[TEMP10] variable will look like this:
1111111100000000
The first 8 1's are the Arm Up State for zones 1 thru 8. The following 8 0's are the Alarm State for
zones 1 thru 8. The 1's all mean "Ready to Arm". The 0's all mean "No Alarm". If you set
the Elk to arm zone 1 with an exit delay, then [TEMP10] will look like this: