I have created a few schedules. I have a script (see below), but some of the conditions (case) I only want to run or trigger if it is inside a specific schedule
Sub Main(ByVal Parms As Object)
Dim Temperature As Double
Temperature = hs.DeviceValueEx(18)
Select Case Temperature
Case < 20.4
hs.TriggerEvent("AC off auto trigger")
Case 22.0 To 23.5
hs.TriggerEvent("AC on low auto trigger")
Case > 23.5
hs.TriggerEvent("AC on high auto trigger")
End Select
End Sub
so each case should have another 'if in schedule x then...'
Sub Main(ByVal Parms As Object)
Dim Temperature As Double
Temperature = hs.DeviceValueEx(18)
Select Case Temperature
Case < 20.4
hs.TriggerEvent("AC off auto trigger")
Case 22.0 To 23.5
hs.TriggerEvent("AC on low auto trigger")
Case > 23.5
hs.TriggerEvent("AC on high auto trigger")
End Select
End Sub
so each case should have another 'if in schedule x then...'
Comment