Announcement

Collapse
No announcement yet.

activate device script button from a txt script

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

    #16
    12/6/2015 17:32:27 | Attempting to connect to: 127.0.0.1
    12/6/2015 17:32:27 | OpenHsConnection called with: 127.0.0.1
    12/6/2015 17:32:27 | CreateClient successful, CommunicationState: Disconnected
    12/6/2015 17:32:27 | Attempting to Connect, this is attempt number: 1
    12/6/2015 17:32:27 | client.Connect attempted, CommunicationState: Connected
    12/6/2015 17:32:27 | host should now be good ServiceProxy
    12/6/2015 17:32:27 | Attempting to get APIVersion through Proxy
    12/6/2015 17:32:27 | Successfully retrieved APIVersion through the host Proxy: 3
    12/6/2015 17:32:27 | Now trying: hs=host
    12/6/2015 17:32:27 | OpenHsConnection appears to have completed successfuly
    12/6/2015 17:32:27 | HS3 connection successful
    12/6/2015 17:32:27 | HS version: 3.0.0.208
    12/6/2015 17:32:27 | Retrieving HS3 Devices
    12/6/2015 17:32:27 | Getting Enumerator
    12/6/2015 17:33:27 | Exception retrieving Devices: Object reference not set to an instance of an object.
    Peter

    http://ohh.pcgsm.nl

    Comment


      #17
      peterpc,

      Could you define a few things about your configuration.

      You are running on remote computer, correct?

      Same LAN?

      What OS, etc. is HS3 running on. What OS, etc are you running tenScriptAid on?

      What plugins are installed.



      The hs.GetDeviceEnumerator call is failing. There is some message board traffic about this -- I'm doing further research.

      Looking at reported problems with plugins that use PlugExtraData, and you try to access stuff remotely. Especially if the plugin places custom objects into PlugExtraData.

      Linux base HS3 does not properly serialize remote objects, and even on Win, if a plugin uses a custom object in the PlugExtraData, the plugin must be available for the remote caller for deserialization.

      Please provide what you can, and I will keep researching.

      If you feel adventurous, stop all of your plugins and see if that helps. If it does, keep adding plugins back until it fails.

      Not sure any of this is the problem. Still looking.

      tenholde
      tenholde

      Comment


        #18
        peterpc,

        Read this thread: http://forums.homeseer.com/showthread.php?p=1107815



        tenholde
        tenholde

        Comment


          #19
          peterpc,

          I've built a utility that instead of using HS3 enumeration to retrieve all devices (which is failing on your installation), it attempts to retrieve Devices with a DevRef of 1-10000.

          I'm hoping it fails on a specific device so we can narrow down what is happening.

          Please download and run the FindBadDevice utility and let me know what happens.

          tenholde
          tenholde

          Comment


            #20
            That did the trick!
            The program stopped at a device and it was a device, created with an Ocelot plugin.
            This plugin was modified to also use IR and variables. But it was working only for 1 secu16 unit. (and the creator of the flugin did not respond anymore on my mails for help.)
            That made me decide to buy ethernet boards with relais and inputs.
            They are working now, but I still had the Ocelot devices.
            I have deleted all existing Ocelot devices and now the program is working ok!
            Thanks for your help!
            Peter

            http://ohh.pcgsm.nl

            Comment


              #21
              Great! Glad I could help.

              tenholde
              tenholde

              Comment


                #22
                Funny, I had the exact same issue occur with the Homeseer Ocelot plugin with the 1st input of a SECU16 device. It consistantly creates a bad device.

                It's a shame Homeseer won't support their own code.

                Comment

                Working...
                X