Announcement

Collapse
No announcement yet.

HS3 - Trigger on Armed Away and Armed Stay

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HS3 - Trigger on Armed Away and Armed Stay

    How are you guys getting HS3 to trigger events when your DSC system gets armed (either Stay or Away modes)?

    I am on DSC 30.0.34 and HS3 3.0.0.96 with an IT-100 interface.

    I have tried just about any combination I can think about, including triggering on value changes, DSC Actions, additional response devices etc., but nothing seems to work.

    I can get it working on Disarm, but not Arm ...

    Anyone out there who has this working who can point me in the right direction?
    Nicolai L

    #2
    This was working more easily before the plugin updates where hs3 would show status names in the drop downs instead of values. I have an event which triggers on the status of the partition changing to 654 for alarm in progress.

    To get armed stay and armed away working reliably I had to create a script which is triggered whenever the status of the partition changes. It has to be saved with .VB extension and it works reliably but could probably be quicker. It just sets the value of a virtual device to reflect a simple set of values and I use those values to trigger my events. This gets around the stupid special closing type statuses which mess with event triggering.

    Code:
    Sub Main(parms As Object)
    	Dim status_num as Integer
    	Dim status_str as String
    
    	status_num = hs.DeviceValueByName("Downstairs Alarm-status Partition 1")
    
    	' Exit delay
    	If status_num = 656 then
    		hs.SetDeviceValueByName("Downstairs Alarm-status Alarm Status",400)
    	End If
    
    	' Entry delay
    	If status_num = 657 then
    		hs.SetDeviceValueByName("Downstairs Alarm-status Alarm Status",400)
    	End If
    
    	' In Alarm
    	If status_num = 654 then
    		hs.SetDeviceValueByName("Downstairs Alarm-status Alarm Status",100)
    	End If
    
    	' Ready/No alarm
    	If status_num = 650 or status_num = 655 then
    		hs.SetDeviceValueByName("Downstairs Alarm-status Alarm Status",0)
    	End If
    
    	status_str = hs.DeviceStringByName("Downstairs Alarm-status Partition 1")
    	If status_str = "Armed - Stay" then
    		hs.SetDeviceValueByName("Downstairs Alarm-status Alarm Status",200)
    	End If
    
    	If status_str = "Armed - Away" then
    		hs.SetDeviceValueByName("Downstairs Alarm-status Alarm Status",300)
    	End If
    
    End Sub

    Comment

    Working...
    X