Announcement

Collapse
No announcement yet.

How do I connect HS to HS

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

    How do I connect HS to HS

    I have HS4 running on a PC as my new primary automation controller but I also have a HS3 HomeTroller Zee S2 that I was going to retire.
    Now I'm thinking of using the HS3 to monitor the HS4 PC (who really trusts a Windows PC).
    What is the best way to talk Homeseer to Homeseer?
    What is the best way to monitor the HS4 PC status from HS4?

    #2
    What are you trying to monitor? If HS4 is running?

    HS has a built-in watchdog application (HSSentry) which will restart Homeseer if it cannot contact the HS Web server.
    Jon

    Comment


      #3
      Hi Jon, yes, making sure that Homeseer is running but also to alert me if the PC falls over such as a power fail or the like.
      If the HS3 was doing nothing other than monitoring the PC (or HS4) it could send an email if it loses a connection.

      Comment


        #4
        To monitor if the HS4 PC is running, I suggest you load BLLan plugin (free) on your Zee S2. You can use that to trigger an event to send an email.

        To monitor if HS4 is running, you can run this script on a recurring basis which will trigger an event if it loses contact:

        Code:
        Sub Main (ByVal Parm As String)
        
        Dim Result As String = hs.GetURL("http://192.168.1.10","/JSON?request=hsversion",False,80)
        
        If Not Result.Contains("4.") Then
            hs.writelog("Test","Lost Contact with HS4")
            hs.TriggerEvent("Your_Email_Notification_Event_Name")
        Else
            ' Contact was established so do nothing
        End if
        
        End Sub
        Save this to your scripts directory and call it something like HS4Check.vb

        Change the items in red to suit your HS4 installation IP address and Port number

        Create an event on you Zee to send an email and then change the text in blue to match your event name
        Jon

        Comment


          #5
          Excellent, I'll give it a try over the next couple of days.
          Thanks heaps Jon.

          Comment


            #6
            I never trust email to work like I want, especially in a timely manner. I would instead send a simple http JSON request that would trigger an event on the second system. That event would then send another http JSON request back to run an event on the first system. If the first system does not have that event triggered within a certain time, assume the second is offline.

            Comment

            Working...
            X