Announcement

Collapse
No announcement yet.

Nighttime error?

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

  • Nighttime error?

    UDMC:
    If blradar.NightTime() Then
    blradar.PluginFunction("ControlDevice", new Object(){"2ND FLOOR Stairway Lighting", "dim", 15})
    blradar.PluginFunction("NewDelayedEventForNoEcho",New Object(){"Stain Light control","2ND FLOOR Stairway Lightingff",5,""})
    End if



    PHP Code:
    Oct-23 12:34:23 PM         Error    Compiling script BLRadar\BLRadar_On_test.vb'NightTime' is not a member of 'HomeSeerAPI.PluginAccess'.
    Oct-23 12:34:23 PM         Error    Compiling script BLRadar\BLRadar_On_test.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'use any aliases
    Larry

  • #2
    Try this:

    Code:
    If blradar.PluginFunction("NightTime", Nothing) Then
        blradar.PluginFunction("ControlDevice", new Object(){"2ND FLOOR Stairway Lighting", "dim", 15})
        blradar.PluginFunction("NewDelayedEventForNoEcho",New Object(){"Stain Light control","2ND FLOOR Stairway Lightingff",5,""})
    End if
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


    • #3
      Thanks Bob.

      For HS2 use blradar...
      For HS3 use blradar.PluginFunction
      Larry

      Comment

      Working...
      X