Announcement

Collapse
No announcement yet.

variable scripting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • variable scripting

    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.

  • #2
    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
    Let me know if you continue to have issues, we'll get through it

    Thanks,
    Bruce

    Comment


    • #3
      I can change an output via that script but not a variable. also I am unable to start, stop or change a timer via scripting

      Comment


      • #4
        srector,
        I'll PM you and we can try some things.
        Bruce

        Comment

        Working...
        X