Hi I have a simple script that worked fine for years in HS2 I have juat changed to HS3 and ZWAVE I am wondering what changes I need to make to the script.
All it does is check the value of a virtual device if it isn't 5 it sets to 5 and then turns on 2 lights via x10. I believe hs.ExecX10 still works and I am using the Z wave device as the address??
All it does is check the value of a virtual device if it isn't 5 it sets to 5 and then turns on 2 lights via x10. I believe hs.ExecX10 still works and I am using the Z wave device as the address??
Code:
Sub Main dim curr_timer_value curr_timer_value = hs.DeviceValue("T1") IF curr_timer_value = 0 Then hs.SetDeviceValue "T1",5 hs.ExecX10 "Q111","on" hs.ExecX10 "Q143","on" else hs.SetDeviceValue "T1",5 Exit Sub End If End Sub
Comment