Is there a list of script commands and syntax for the HS3 version of this pluggin. I'm not the best at scripting by any means. But I can't seem to find a way of making a script for HS3 that send info on which zone triggered the alarm. I found a HS2 version in a previous post:
What would be the HS3 equivalent of this?
Marty
Code:
Sub Main(ByVal parm As Object) Dim mailSendTo As String = "you@domain.com" Dim mailSendFrom As String = "home@domain.com" Dim mailSubject As String = "ALARM SYSTEM TRIGGERED" Dim strZones As String = "" Dim mailMessage As String = "" ' Get zones in an alarm status strZones = hs.plugin("UltraM1G").GetZonesInAlarm() If strZones.Length > 0 Then mailMessage = "The following zones are in alarm: " & strZones End If If mailMessage.Length > 0 Then ' Send email hs.SendEmail(mailSendTo, mailSendFrom, mailSubject, mailMessage) Else End Sub hs.WriteLog("Debug", "No zones are in alarm.") End If
Marty
Comment