Announcement

Collapse
No announcement yet.

HomeSeer - Blue Iris Macros Integration

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

    HomeSeer - Blue Iris Macros Integration

    I was setting the BlueIris macros using the BI Plugin. Displaying the Status / Text of the HS door sensors and locks. I decided to put together a VB script that would create the 'banner text' and send it to BlueIris.

    'The status text is coming from the door sensor Device Status [The Door is Open - The Door is Closed]

    ' In HS Event to run script
    Run HS3/scripts/DoorMacro.vb("main","1236,1231,9")
    '
    ' In HS scripts folder
    Sub main(ByVal Parameters As object)
    Dim Data() As String = Parameters.Split(",")
    Dim theDoor As Integer = Cint(Data(0))
    Dim theLock As Integer = Cint(Data(1))
    Dim theMacro As String = Data(2)
    Dim theDoorStatus as String = hs.DeviceVSP_GetStatus(theDoor,hs.DeviceValue(theDoor),ePair StatusControl.Status)
    Dim theLockStatus as String = hs.DeviceVSP_GetStatus(theLock,hs.DeviceValue(theLock),ePair StatusControl.Status)
    Dim totalStatus As String = theDoorStatus + " - " + theLockStatus
    hs.getURL("localhost","/admin?macro="+theMacro+"&text="+totalStatus+"&user=xxxx&pw =xxxx",FALSE,9080)
    hs.writelog ("Macro Control","Macro " + theMacro + " Status = " + totalStatus)
    End Sub
    '

    ' Event Running script and waiting ... (x86)/HomeSeer HS3/scripts/DoorMacro.vb("main","1236,1231,9")
    '
    ' HS Log Output
    May-20 1:05:56 PM Macro Control Macro 9 Status = The Kitchen Door is Closed - Locked
    Blair

    HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
    | Devices: 832 | Events: 211 |
    Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
    BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

    #2
    Nice! I do the same just with events and the Blue Iris Plug-in. It updates automatically if the variable changes.
    DSteiNeuro

    HS3Pro

    MSI Cubi Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2201 Mhz, 2 Core(s), 4 Logical Processor(s) 16GB DDRl RAM

    Enabled Plug-Ins
    BLRussound, BLSpeech, HSTouch Server, JowiHue, MyQ, Nest, Rain8, Squeezebox, Ultra1Wire3, UltraGCIR3, Vista Alarm, X10,Z-Wave

    Comment


      #3
      Haven't tested yet, but read the script can access all 99 macro slots.
      Blair

      HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
      | Devices: 832 | Events: 211 |
      Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
      BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

      Comment

      Working...
      X