Hello,
I am hoping someone can help me, and stop me going mad!
I can find no way to do this with normal events, so assume it needs to be a script? Any help would be greatly appreciated.
Philip
Example of a Test I was doing:
Sub Main()
Dim DevRef
DevRef = hs.GetDeviceRefByName("Hall Lamp")
if hs.ison(DevRef) then
hs.writelog("test", "Weather Test Script")
End If
End Sub
This then errors with "Invalid character in line 2". Urghhhh!
I am hoping someone can help me, and stop me going mad!
I can find no way to do this with normal events, so assume it needs to be a script? Any help would be greatly appreciated.
Philip
Example of a Test I was doing:
Sub Main()
Dim DevRef
DevRef = hs.GetDeviceRefByName("Hall Lamp")
if hs.ison(DevRef) then
hs.writelog("test", "Weather Test Script")
End If
End Sub
This then errors with "Invalid character in line 2". Urghhhh!
Comment