I am wanting to edit the homeseer3 startup script to look at a virtual device/flag in homeseer3 and determine if it is on/off and should manually start/run an event or not.
Can someone tell me if this is even possible or not? If so can you tell me what the syntax for a addressing this variable would look like? I was thinking something like this (below), can anyone with a little more experience than me help with this?
Dim DevRef As Integer
DevRef = hs.GetDeviceRefByName("DeviceName")
If hs.IsOn(DevRef) then
hs.TriggerEvent("EventName")
End If
Can someone tell me if this is even possible or not? If so can you tell me what the syntax for a addressing this variable would look like? I was thinking something like this (below), can anyone with a little more experience than me help with this?
Dim DevRef As Integer
DevRef = hs.GetDeviceRefByName("DeviceName")
If hs.IsOn(DevRef) then
hs.TriggerEvent("EventName")
End If
Comment