I'm trying to write my first script in VB. I have lots to do in the script, but just to get a reality check I wrote the following script:
Sub Main(parms as object)
hs.SetDeviceValueByName("Basement Office Desk Light", 0)
End Sub
I thought it would turn off the desk light in my basement office. When I execute it, the desk light remains lit, BUT, when I look at the status of the desk light on the Device Management page, it says the light is off.
Huh?
What am I doing wrong?
Thanks.
Bob
Sub Main(parms as object)
hs.SetDeviceValueByName("Basement Office Desk Light", 0)
End Sub
I thought it would turn off the desk light in my basement office. When I execute it, the desk light remains lit, BUT, when I look at the status of the desk light on the Device Management page, it says the light is off.
Huh?
What am I doing wrong?
Thanks.
Bob
Comment