I'm quite new in Homeseer and quite new in scripting.
I created a simple vb-script to set one of my devices to a certain value, this works fine:
I want to use the 'Parameters' field to specify the value but I can't get this working.
Can anyone help me?
Thanx in advance.
I created a simple vb-script to set one of my devices to a certain value, this works fine:
Code:
Sub Main() Dim DevRef Dim DevValue DevRef = hs.GetDeviceRefByName("VirtualDevice") DevValue = 10 if hs.ison(DevRef) then hs.Speak "The device is set to " & DevValue hs.CAPIControlHandler(hs.CAPIGetSingleControl(hs.GetDeviceRefByName("DMXRood"),false,"100",false,true)) end if End Sub
Can anyone help me?
Thanx in advance.
Comment