Announcement

Collapse
No announcement yet.

Some instructions

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Ah, ok.
    But now, RunTimeError : Scripts\AllarmeDay.vb : Object reference not set to an instance of an object


    The error seems to be here: hs2.SetDeviceStatus( "H90",2 )
    Last edited by emabonacchi; February 12, 2011, 06:32 AM.

    Comment


      #32
      ....i was trying to study the problem all day long, but i don't understand why this doesn't work.
      I need an help....

      Comment


        #33
        Try to locate the problem using hs.Log()

        For example, after

        hsinterface = New HomeSeer2.application

        Add the lines

        If hsinterface is Nothing Then
        hs.WriteLog( "Error", "hsinterface is null" )
        End If

        After the line hs2 = hsinterface.GetHSRef() Add the lines


        If hs2 is Nothing Then
        hs.WriteLog( "Error", "hs2 is null" )
        End If
        --
        stipus

        Comment


          #34
          Originally posted by stipus View Post
          Try to locate the problem using hs.Log()

          For example, after

          hsinterface = New HomeSeer2.application

          Add the lines

          If hsinterface is Nothing Then
          hs.WriteLog( "Error", "hsinterface is null" )
          End If

          After the line hs2 = hsinterface.GetHSRef() Add the lines


          If hs2 is Nothing Then
          hs.WriteLog( "Error", "hs2 is null" )
          End If
          ...........i was hoping you came back here........

          I try immediately!

          Comment


            #35
            Result: hs2 is null

            I saved my script with '.vb' extension, is it ok?

            Comment


              #36
              Today i have spent all day long trying to study about making a 2nd instance of Homeseer working, but i have not solved the 'null' result.

              I need help because i think i am not able to make it work....

              Comment


                #37
                I'm going to try to make it work here. The problem is that I have only one HomeSeer instance.
                --
                stipus

                Comment


                  #38
                  Originally posted by stipus View Post
                  I'm going to try to make it work here. The problem is that I have only one HomeSeer instance.
                  Thank you stipus.

                  Comment


                    #39
                    In the meantime, you could try to print the result of

                    hsinterface.Connect("emabonacchi", "hgv360hgv360")


                    For example:

                    Dim result as string = hsinterface.Connect("emabonacchi", "hgv360hgv360")
                    hs.WriteLog( "Info", "Connect result=" & result )
                    --
                    stipus

                    Comment


                      #40
                      Originally posted by stipus View Post
                      In the meantime, you could try to print the result of

                      hsinterface.Connect("emabonacchi", "hgv360hgv360")


                      For example:

                      Dim result as string = hsinterface.Connect("emabonacchi", "hgv360hgv360")
                      hs.WriteLog( "Info", "Connect result=" & result )
                      Hello and scuse me for my delay, but i was busy with my job...

                      This is the result of the test:

                      <table border="0" cellpadding="0" cellspacing="2" width="100%"><tbody><tr><td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">2/15/2011 5:59:54 PM </td><td colspan="3" class="LOGType0" align="left"> Error </td><td colspan="8" class="LOGEntry0" align="left">hs2 is null</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">2/15/2011 5:59:54 PM </td><td colspan="3" class="LOGType1" align="left"> Info </td><td colspan="8" class="LOGEntry1" align="left">Connect result=Error in register channel: The channel 'gtcp' is already registered.</td></tr> <tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">2/15/2011 5:59:54 PM </td><td colspan="3" class="LOGType0" align="left"> Hometroller2
                      </td><td colspan="8" class="LOGEntry0" align="left">RunTimeError : Scripts\AllarmeDay.vb : Object reference not set to an instance of an object</td></tr></tbody></table>

                      Comment


                        #41
                        Unfortunately, this is a very bad error, and I'm not sure if it can be solved.

                        I'm going to ask HomeSeer technical staff if it can be solved.

                        Best regards,

                        stipus
                        --
                        stipus

                        Comment


                          #42
                          I just sent an email to HST about this problem.
                          I don't think I can solve it myself. I hope they propose a workaround.

                          Best regards,

                          stipus
                          --
                          stipus

                          Comment


                            #43
                            Originally posted by stipus View Post
                            I just sent an email to HST about this problem.
                            I don't think I can solve it myself. I hope they propose a workaround.

                            Best regards,

                            stipus
                            .......ok..... let me know.....

                            Comment


                              #44
                              I just got the following answer:

                              Sorry, but that won't work. 'gtcp' is a handle to the Genuine Channels communications interface, and the problem is that HomeSeer and the script are running in the same app domain, and so when the connection is being set up, it creates a duplicate global object
                              There is no workaround for doing it this way.
                              Does he have a good reason for having 2 instances that he wants to connect?
                              In short, I'm sorry but the script connector cannot be used this way to connect two HomeSeer instances
                              --
                              stipus

                              Comment


                                #45
                                Originally posted by stipus View Post
                                I just got the following answer:


                                In short, I'm sorry but the script connector cannot be used this way to connect two HomeSeer instances


                                I will search some other way to make 2 homeseer communicate, i hope i will find the way.

                                Thank you for the time you have spent with me.

                                Comment

                                Working...
                                X