Announcement

Collapse
No announcement yet.

show/hide devices from script

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

    show/hide devices from script

    I've tried

    dim DV
    Set DV = hs.GetDeviceByRef(69)
    DV.MISC_Set(hs, Enums.dvMISC.HIDDEN)

    but that gets me
    "'Let' and 'Set' assignment statements are no longer supported."

    that was the most promising error message that i got from all the ways that i've tried to get this to work.

    #2
    Is the file extension of your script file ".vb"? If so, your script is being interpreted as a .net script, which does not support the SET syntax.

    tenholde
    tenholde

    Comment


      #3
      Thanks, that got it.
      although it's not working in the way that i want. I have to refresh the page to make the show/hide happen.

      here's what i'm trying to do.
      I've written a script to control my friedrich window AC, i've got 5 devices in a group, what i would like to do is hide things depending on the settings, so if it's in fan mode, the temperature setting would disappear.

      Comment

      Working...
      X