Hi i am working on a HS3 to arduino Ethernet tool and what i really need is a way to set an address.
is this possible?
Raptor
is this possible?
Raptor
If this is your first visit, be sure to check out the FAQ. You must register before you can post.
IMPORTANT: Your first post will be checked for appropriate content. This may take a bit of time.
Sub Main(Parm As Object) Dim CurrRef As Integer = 0 Dim BaseRef As Integer = 0 Dim dv As Scheduler.Classes.DeviceClass = Nothing dv = hs.GetDeviceByRef(hs.NewDeviceRef("Test Device Creation")) dv.Address(hs) = "Test-TestDevice" dv.Location(hs) = "Test" dv.Last_Change(hs) = Now dv.Device_Type_String(hs) = "Test Device" hs.DeviceVGP_ClearAll(dv.Ref(hs), True) hs.DeviceVSP_ClearAll(dv.Ref(hs), True) Dim Pair As VSPair Pair = New VSPair(HomeSeerAPI.ePairStatusControl.Both) Pair.PairType = VSVGPairType.SingleValue Pair.Value = 1 Pair.Status = "" Pair.Render = Enums.CAPIControlType.TextBox_String hs.DeviceVSP_AddPair(dv.Ref(hs), Pair) hs.SetDeviceValueByRef(dv.ref(hs), 1, True) dv.MISC_Set(hs, Enums.dvMISC.SHOW_VALUES) End Sub
Comment