SBoyle.com

Home Automation

Home

Overview Hardware Software Applications

Download

Contact

 

ACE
ACEUpdater.pl

 
ACEUpdater.pl

[ General ]   [ Setting up the macro ]   [ Writing the config file ]

The first problem is that HV doesn't have automatic reporting for the security system like it does for flags, and variables, and X-10 devices. So you have to create your own macro to do this. I created a separate macro which I then call from the Security Events section. This makes sure that the status update gets sent every time the security status changes, and also lets me call it whenever else I need to [like when a new ACE client connects.]

Below is an excerpt of my macro. You're shooting for a message that looks something like this:

SECUPDATE:021000010

With each character after the : representing the status of a partition or zone. You aren't confined to a number, you can use letters as well, but you must use exactly one character per partition or zone.

Security Update Macro
 Serial port 1 transmit: "SECUPDATE:"

; ----- Partition Status -----

If

  Security: Partition 1 is disarmed

  And Security: Partition 1 is not ready to arm

Then

  Serial port 1 transmit: "0"

End If

If

  Security: Partition 1 is disarmed

  And Security: Partition 1 is ready to arm

Then

  Serial port 1 transmit: "1"

End If

If

  Security: Partition 1 is armed in Home mode

Then

  Serial port 1 transmit: "2"

End If

If

  Security: Partition 1 is armed in Away mode

Then

  Serial port 1 transmit: "3"

End If

; ----- Zone Status -----

If

  Security: Zone 1 is not faulted

  And Security: Zone 1 is not bypassed

Then

  Serial port 1 transmit: "0"

End If

If

  Security: Zone 1 is faulted

  And Security: Zone 1 is not bypassed

Then

  Serial port 1 transmit: "1"

End If

If

  Security: Zone 1 is bypassed

Then

  Serial port 1 transmit: "2"

End If

Serial port 1 transmit: Carriage return and line feed