Announcement

Collapse
No announcement yet.

HS3 Syntax for BLOccupied

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

    HS3 Syntax for BLOccupied

    Hi Blade.

    What's the syntax for HS3 to start and stop the plugin running.

    I cut and paste the instructions in the help file but that give an error on HS3.

    Thanks, Marty.
    iCore5 Win 10 Pro x64 SSD

    HS3 Pro Edition 3.0.0.435 Windows

    BLOccupied:,Device History:,Yamaha:,UltraMon3:,mcsXap:,Restart:,UltraNetatmo3:, UltraM1G3:,Ultra1Wire3:,BLBackup:,Harmony Hub:,DoorBird:,UltraECM3:,Nanoleaf 3P:,UltraRachio3:,Z-Wave:,SDJ-Health:,BLGarbage:,Blue-Iris:,Chromecast:,Pushover 3P:,EasyTrigger:

    #2
    These script calls should work:

    Code:
    hs.PluginFunction("BLOccupied", "", "StartOccupancySimulation", Nothing)
    hs.PluginFunction("BLOccupied", "", "StopOccupancySimulation", Nothing)
    You can also use event actions
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Blade,
      Thanks for the reply. But the code gives the following error:

      26/3/2014 12:05:42 PM ~!~Error~!~Running script(2) &hs.PluginFunction("BLOccupied", "", "StartOccupancySimulation", Nothing), init error: Invalid procedure call or argument: 'hs.PluginFunction'
      Marty
      iCore5 Win 10 Pro x64 SSD

      HS3 Pro Edition 3.0.0.435 Windows

      BLOccupied:,Device History:,Yamaha:,UltraMon3:,mcsXap:,Restart:,UltraNetatmo3:, UltraM1G3:,Ultra1Wire3:,BLBackup:,Harmony Hub:,DoorBird:,UltraECM3:,Nanoleaf 3P:,UltraRachio3:,Z-Wave:,SDJ-Health:,BLGarbage:,Blue-Iris:,Chromecast:,Pushover 3P:,EasyTrigger:

      Comment


        #4
        Put this code in a .vb script in the scripts folder and run the script from an event:

        Try it and see what happens

        Code:
        Public Sub Main(ByVal parms As Object)
            hs.PluginFunction("BLOccupied", "", "StartOccupancySimulation", Nothing)
        End Sub
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment


          #5
          Perfect. That did the trick. Thanks.
          iCore5 Win 10 Pro x64 SSD

          HS3 Pro Edition 3.0.0.435 Windows

          BLOccupied:,Device History:,Yamaha:,UltraMon3:,mcsXap:,Restart:,UltraNetatmo3:, UltraM1G3:,Ultra1Wire3:,BLBackup:,Harmony Hub:,DoorBird:,UltraECM3:,Nanoleaf 3P:,UltraRachio3:,Z-Wave:,SDJ-Health:,BLGarbage:,Blue-Iris:,Chromecast:,Pushover 3P:,EasyTrigger:

          Comment

          Working...
          X