I need some assistance with this script. In addition to this script I would also like to add two zWave devices. I looked in the help file but saw no examples of how to turn on/off a zWave device in a script.
I am trying to turn on some Christmas lights. I have a trigger at 10 min after sunset to trigger this script. At that time I want to ensure the number incount equals 2. If it equals 2 then turn on the outside Christmas Lights plus add zWave device codes Q6 & Q2
Sub main()
If hs.devicevalue("X8") = "2" Then
hs.execx10 "B11","on",0
hs.execx10 "B11","on",0
hs.WaitSecs 5
hs.execx10 "B13","on",0
End If
End Sub
Cheers - gary
I am trying to turn on some Christmas lights. I have a trigger at 10 min after sunset to trigger this script. At that time I want to ensure the number incount equals 2. If it equals 2 then turn on the outside Christmas Lights plus add zWave device codes Q6 & Q2
Sub main()
If hs.devicevalue("X8") = "2" Then
hs.execx10 "B11","on",0
hs.execx10 "B11","on",0
hs.WaitSecs 5
hs.execx10 "B13","on",0
End If
End Sub
Cheers - gary
Comment