I am not able to change any variables through script, I can however change them through an event. I can set outputs through script and events. I would like to be able to change a variable through a script as that would reduce the number of events needed for multiple values.
Announcement
Collapse
No announcement yet.
variable scripting
Collapse
X
-
Hi srector,
I just tested the variable scripting and it's working if you follow the examples in the online help.
Below is what I just tried:
Code:Sub Main(Parm As Object) ' get a reference to the plugin Dim plugin = New HomeSeerAPI.PluginAccess(hs, "GTS CPUXA", "") Dim arr(1) As Object arr(0) = 397 ' Device Ref Number arr(1) = 60 ' Device value (For relays 1 = on / 0 = off) (For vars 0 thru 65535) ' call the function and set the value plugin.PluginFunction("CPUXA_Set", arr) End Sub
Thanks,
Bruce
Comment