Announcement

Collapse
No announcement yet.

IHSApplication.GetInstanceList

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

    IHSApplication.GetInstanceList

    What's the story with GetInstanceList()?

    In IHsController it's commented out? It's not implemented?

    But Startup.vb still has SpeakClients = hs.GetInstanceList - what's the hs here?

    spud?

    #2
    HS3 instance has been depreciated. I cannot speak to GetInstanceList. Some places you will find HomeseerSystem. Others you will find hs for IHSApplication. I suspect this is just a leftover from a HS3 code segment.

    Comment


      #3
      I read this - it explains why scripts still work:

      In HS4, the hs object (expanded hsapplication class) is a combination of the methods and properties of both HomeSeerAPI.IHSApplication and HomeSeer.PluginSdk.IHsController classes.
      Mess. So question is - how can I get it list of HS speakers the plugin?

      Comment


        #4
        Originally posted by Michael McSharry View Post
        HS3 instance has been depreciated. I cannot speak to GetInstanceList. Some places you will find HomeseerSystem. Others you will find hs for IHSApplication. I suspect this is just a leftover from a HS3 code segment.
        Code:
        IHSApplication GetHS3()
        {
            if (_hs3 == null)
            {
              try
              {
                 _client3 = ScsServiceClientBuilder.CreateClient<IHSApplication>(
                       new ScsTcpEndPoint(IpAddress, HomeSeerPort), this);
                 _client3.Connect();
                 _hs3 = _client3.ServiceProxy;
              }
              catch (Exception ex)
              {
                 Console.WriteLine($"GetHS3: {ex}");
              }
           }
        
           return _hs3;
        }

        Comment

        Working...
        X