Hi,
I'm trying to get some code working that @deloosem has created to send raw zwave commands to his radiator valve.
But everytime I run it I get some errors:
Script:
Errors:
If anyone can help?
Thanks
I'm trying to get some code working that @deloosem has created to send raw zwave commands to his radiator valve.
But everytime I run it I get some errors:
Script:
Code:
Public Sub Main(ByVal Parms As Object) Dim Bytes = New Byte() = {&H31, &H5, &H1, &H42, &H8, &HBE} ' transmits 22.38 c° hs.PluginFunction("Z-Wave", "", "SendZwaveRaw", New Object() {18, Bytes, Bytes.Length, False, "3dh76whs83"}) End Sub
Errors:
Code:
Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\simplescript.vb: 'Bytes' is not declared. It may be inaccessible due to its protection level. Jan-05 11:11:58 Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\simplescript.vb: 'Bytes' is not declared. It may be inaccessible due to its protection level. Jan-05 11:11:58 Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\simplescript.vb: '}' expected. Jan-05 11:11:58 Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\simplescript.vb: Declaration expected. Jan-05 11:11:58 Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\simplescript.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Thanks
Comment