Announcement

Collapse
No announcement yet.

Enhancement Request

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

    #31
    Any luck with this?


    Sent from my iPad using Tapatalk
    Don

    Comment


      #32
      Nope not yet
      It is like the hs object is gone in the ShutdownIO function
      Still trying to find a workaround
      Cheers,
      Bob
      Web site | Help Desk | Feature Requests | Message Board

      Comment


        #33
        How about a Disconnect button on the option page? I could live with that.
        Don

        Comment


          #34
          bump
          Don

          Comment


            #35
            I have not forgot about you
            I will try and add a connect and disconnect button for the receiver this week
            Send me an email on Thursday to remind me if it is not done by then
            Cheers,
            Bob
            Web site | Help Desk | Feature Requests | Message Board

            Comment


              #36
              Will do. Perhaps you could also give me a raw command output device?

              Thanks.
              Don

              Comment


                #37
                Try 2.0.41 and let me know if it closes
                Cheers,
                Bob
                Web site | Help Desk | Feature Requests | Message Board

                Comment


                  #38
                  Will do.

                  Thanks

                  No Luck. Closed BLDenon, reopened it and the log reports COM port already in use.
                  Attached Files
                  Last edited by donstephens; March 9, 2017, 12:33 PM. Reason: Update
                  Don

                  Comment


                    #39
                    Have you had a chance to look at this?
                    Don

                    Comment


                      #40
                      This is the error I get on plugin shutdown:

                      3/9/2017 10:26:45 AM : v2.0.41.0 - Disconnect_From_Denon_Receiver(): ERROR - Caught this exception - Object reference not set to an instance of an object.

                      It is where the plugin is running the hs.CloseComPort call for your com port. I think the Homeseer object is killed too early

                      What is I gave you a scripting call to open and close the com port?
                      Would that work?
                      Cheers,
                      Bob
                      Web site | Help Desk | Feature Requests | Message Board

                      Comment


                        #41
                        I think that would work. Might I give it a try?
                        Don

                        Comment


                          #42
                          Try 2.0.42 and let me know

                          The new scripting calls are there

                          ConnectReceiver(receiverNumber)
                          DisconnectReceiver(receiverNumber)

                          They are in the help page too
                          Cheers,
                          Bob
                          Web site | Help Desk | Feature Requests | Message Board

                          Comment


                            #43
                            Great. I'll give it a go.

                            Thank you Bob.
                            Don

                            Comment


                              #44
                              Following the help page I've tried

                              PHP Code:
                              hs.PluginFunction("BLDenon""""DisconnectReceiver", {1}) 
                              assuming that the '1' enclosed in the tildas indicates receiver number 1 and

                              PHP Code:
                              hs.PluginFunction("BLDenon""""ConnectReceiver(1)", {1}) 
                              Both of these errors with 'init error:Invalid character'. What am I missing? The receiver number is an integer isn't it?

                              Thanks for your patience.
                              Don

                              Comment


                                #45
                                Try this:

                                Code:
                                hs.PluginFunction("BLDenon", "", "DisconnectReceiver", New Object(){1})
                                Cheers,
                                Bob
                                Web site | Help Desk | Feature Requests | Message Board

                                Comment

                                Working...
                                X