Announcement

Collapse
No announcement yet.

Issues with AK Bond installation

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

    #46
    Originally posted by CJMH View Post
    The bond bridge is about 20 feet from the router with no walls in between. The router has no problems communicating with a google mini that is about 30 feet away on a different floor with several walls in between.
    Than it's not the problem. And I guess 444 is the bridge root device. I need to check why you have two lights...

    But please try .16

    Comment


      #47
      Originally posted by CJMH View Post
      And then the plugin crashed again without me doing anything. Log:

      Feb-03 9:50:20 PM AK Bond ERROR System.NullReferenceException: Object reference not set to an instance of an object.
      at: HSPI_AKBond.DeviceBondBridge.GetDevices (System.Collections.Generic.List`1[T] ids) [0x00053] in :0
      at: HSPI_AKBond.DeviceBondBridge.GetStatus () [0x0000e] in :0
      at: HSPI_AKBond.DeviceBondBridge.TimerCallback (System.Object state) [0x00009] in :0
      at: System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in :0
      at: System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in :0
      at: System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in :0
      at: System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in :0
      Feb-03 9:50:20 PM AK Bond ERROR Object reference not set to an instance of an object.
      This I have to fix, so guess .17 is coming

      Comment


        #48
        Ok, 3.0.0.17 it is (in BETA)

        Comment


          #49
          Also check firewall rules - Kaspesky had "Bond Api" blocked for me. The other issue (refer to other posts) I had was Bonjour. After I deleted that everything worked for me.

          Comment


            #50
            I enabled the dive references. Here are the BOND devices and log. I think I caught the list while AK Bond was in the middle of getting a com error. Normally the status is OK. As far as speed is concerned, the delay between clicking the "Toggle Power" button and the change appearing in the Bond App is nearly zero. As soon as I click the button in HS3 the Bond app shows the change so the communication between HS3 and the BOND device is pretty quick:
            Code:
             
            464
            Ok
            Bond Master Bedroom Master Fan Today 10:34:40 PM Stop
            466
            Speed1
            Bond Master Bedroom Master Fan.FanSpeed Today 10:12:07 PM IncreaseSpeed DecreaseSpeed
            465
            Off
            Bond Master Bedroom Master Fan.Power Today 10:15:14 PM TurnOff TogglePower TurnOn
            456
            Ok
            Bond My Room My Bridge Today 10:34:40 PM
            467
            127
            Bond My Bridge My Bridge.Light Today 10:17:48 PM
            457
            127
            Bond ZZCC69147.Bridge ZZCC69147.Bridge.Light Today 10:14:12 PM
            458
            Ok
            Bond Sue' Room Sue's Fan Today 10:34:40 PM
            463
            Off
            Bond Sue' Room Sue's Fan.DownLight Today 10:09:18 PM ToggleDownLight StartDownLightDimmer Stop TurnDownLightOn TurnDownLightOff
            460
            Speed1
            Bond Sue' Room Sue's Fan.FanSpeed Today 10:09:18 PM IncreaseSpeed DecreaseSpeed
            461
            Off
            Bond Sue' Room Sue's Fan.Light Today 10:09:18 PM ToggleLight TurnLightOn TurnLightOff
            459
            Off
            Bond Sue' Room Sue's Fan.Power Today 10:09:18 PM TurnOff TogglePower TurnOn
            462
            On
            Bond Sue' Room Sue's Fan.UpLight Today 10:09:18 PM ToggleUpLight StartUpLightDimmer Stop TurnUpLightOn TurnUpLightOff
            Message/Source
            Code:
              
            Feb-03 10:18:30 PM AK Bond [0]: : * Set Bond [Bond Bridge] ZZCC69147 (192.168.0.135) (HSPI_AKBond.DeviceBondBridge) Same: False
            Feb-03 10:21:42 PM AK Bond ERROR System.NullReferenceException: Object reference not set to an instance of an object. at: HSPI_AKBond.DeviceBondBridge.GetDevices (System.Collections.Generic.List`1[T] ids) [0x00053] in :0 at: HSPI_AKBond.DeviceBondBridge.GetStatus () [0x0000e] in :0 at: HSPI_AKBond.DeviceBondBridge.TimerCallback (System.Object state) [0x00009] in :0 at: System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in :0 at: System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in :0 at: System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in :0 at: System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in :0
            Feb-03 10:21:42 PM AK Bond ERROR Object reference not set to an instance of an object.
            Feb-03 10:21:42 PM AK Bond ERROR UnhandledException!!!
            Feb-03 10:21:42 PM AK Bond ERROR [456]: Bond Bridge: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2': Status: 'Error' Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure' response: '' code: '0/' 'ReceiveFailure'
            Feb-03 10:21:42 PM AK Bond ERROR [456]: Bond Bridge: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2/state': Status: 'Error' Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure' response: '' code: '0/' 'ReceiveFailure'
            Feb-03 10:21:23 PM AK Bond ERROR [456]: Bond Bridge: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2/state': Status: 'Error' Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure' response: '' code: '0/' 'ReceiveFailure'

            Comment


              #51
              You still are getting the exception. Is it 3.0.0.17?

              Comment


                #52
                ver 17 seems to work much better, but it is still getting occasional com errors. .Not sure what the /B means (Beta?) in your question about what version I was using. The second "My Bridge.Light" child device seems to be created on the second starting of the AK Bond plug in. The plugin had not crashed so I manually disabled it, then re-enabled it. After that it created the "MyBdrige.Light" child device and the "ZZCC69147.Bridge.Light" became non-functional. It is my bedtime, so I will pick this up tomorrow .... Thanks for your support on this!

                Comment


                  #53
                  I spoke too soon about the crashes. It just crashed again:
                  Code:
                   
                  Feb-03 11:16:57 PM AK Bond ERROR System.NullReferenceException: Object reference not set to an instance of an object. at: HSPI_AKBond.DeviceBondBridge.set_extra (HSPI_AKBond.DeviceBondBridge+ExtraBondBridgeInfo value) [0x0008e] in <53992c29c7214f78a2b7f12c58bd437e>:0 at: HSPI_AKBond.DeviceBondBridge.GetVersion () [0x000eb] in <53992c29c7214f78a2b7f12c58bd437e>:0 at: HSPI_AKBond.DeviceBondBridge.GetBridgeInfo () [0x00013] in <53992c29c7214f78a2b7f12c58bd437e>:0 at: HSPI_AKBond.DeviceBondBridge.GetStatus () [0x00008] in <53992c29c7214f78a2b7f12c58bd437e>:0 at: HSPI_AKBond.DeviceBondBridge.TimerCallback (System.Object state) [0x00009] in <53992c29c7214f78a2b7f12c58bd437e>:0 at: System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in :0 at: System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in :0 at: System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in :0 at: System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in :0
                  Feb-03 11:16:57 PM AK Bond ERROR Object reference not set to an instance of an object.
                  Feb-03 11:16:57 PM AK Bond ERROR UnhandledException!!!
                  Feb-03 11:16:57 PM AK Bond ERROR [468]: Bond Bridge: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/bridge': Status: 'Error' Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure' response: '' code: '0/' 'ReceiveFailure'
                  Feb-03 11:16:54 PM AK Bond ERROR [468]: Bond Bridge: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2/state': Status: 'Error' Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure' response: '' code: '0/' 'ReceiveFailure'

                  Comment


                    #54
                    These errors 'Error getting response stream (ReadDoneAsync2): ReceiveFailure' seem to be a know Mono bug.

                    For now I just need to make the plugin more robust so it can handle the errors.

                    And I will try to find a solution for that, I need to Google more.

                    So ver 3.0.0.18 (BETA) should fix the crash. The errors still may be there, but they shouldn't cause problems.

                    Comment


                      #55
                      And I will sort out the double blue light device, should be easy after you mentioned plugin restart.

                      Comment


                        #56
                        Originally posted by CJMH View Post
                        The second "My Bridge.Light" child device seems to be created on the second starting of the AK Bond plug in. The plugin had not crashed so I manually disabled it, then re-enabled it. After that it created the "MyBdrige.Light" child device and the "ZZCC69147.Bridge.Light" became non-functional. It is my bedtime, so I will pick this up tomorrow .... Thanks for your support on this!
                        Ver. 3.0.0.19 (BETA) should fix the problem, the device should have address "ZZCC69147.Light".

                        You might enable "Show Device Address/Code Column on Device Management Page" (Tools -> Setup -> Custom) to verify. Because I check if the new HS device needs to be created based on the device Address field. Because that's the only field that user can't modify. This way I let the user change any other field, incl. device type.

                        Comment


                          #57
                          Ver 19 seems to be working better. Still getting the errors on occasion, but has not crashed yet. What does the "Update" setting on the "Config Page" do? I assume it is how often the plugin polls the BOND. If so, I am not sure that is working right. It does not seem to effect how long between getting status updates from the bond. I set it to 10 seconds and turned on logging and here what I am seeing. It seems random when it gets status, but never as long as 10 seconds. Also. if I change a setting in the Bond app, the update on HS3 is anywhere from 1 second to maybe 3 seconds. Even if a change the setting on the Bond app as soon as I see HS3 update. Don't know if this is helpful:
                          Code:
                           
                          Feb-04 8:28:57 AM AK Bond [480]: {"light":0,"power":0,"speed":1,"_":"deda3a33"}
                          Feb-04 8:28:56 AM AK Bond [480]: Execute cmd: /v2/devices/68479fa2/state
                          Feb-04 8:28:56 AM AK Bond [480]: {"light":0,"power":0,"speed":1,"up_light":1,"down_light":0," direction":1,"_":"e8db6a41"}
                          Feb-04 8:28:56 AM AK Bond [480]: Execute cmd: /v2/devices/4f9abd62/state
                          Feb-04 8:28:54 AM AK Bond [480]: {"light":0,"power":0,"speed":1,"_":"deda3a33"}
                          Feb-04 8:28:54 AM AK Bond [480]: Execute cmd: /v2/devices/68479fa2/state
                          Feb-04 8:28:54 AM AK Bond [480]: {"light":0,"power":0,"speed":1,"up_light":1,"down_light":0," direction":1,"_":"e8db6a41"}
                          Feb-04 8:28:54 AM AK Bond [480]: Execute cmd: /v2/devices/4f9abd62/state
                          So far the plugin has gotten 9 errors over about 12 minutes, but has not crashed yet:

                          Code:
                           
                          Feb-04 8:33:58 AM AK Bond ERROR [480]: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2/state': Status: 'Error' (ReceiveFailure). Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure'.
                          Feb-04 8:31:06 AM AK Bond ERROR [480]: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2/state': Status: 'Error' (ReceiveFailure). Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure'.
                          Feb-04 8:24:10 AM AK Bond ERROR [480]: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2/state': Status: 'Error' (ReceiveFailure). Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure'.
                          Feb-04 8:23:08 AM AK Bond ERROR [480]: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/68479fa2/state': Status: 'Error' (ReceiveFailure). Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure'.
                          Feb-04 8:22:27 AM AK Bond ERROR [480]: [Bond Bridge] ZZCC69147 (192.168.0.135): Execute '/v2/devices/4f9abd62/state': Status: 'Error' (ReceiveFailure). Error: 'Error getting response stream (ReadDoneAsync2): ReceiveFailure'.

                          Comment


                            #58
                            Originally posted by CJMH View Post
                            What does the "Update" setting on the "Config Page" do? I assume it is how often the plugin polls the BOND. If so, I am not sure that is working right. It does not seem to effect how long between getting status updates from the bond. I set it to 10 seconds and turned on logging and here what I am seeing. It seems random when it gets status, but never as long as 10 seconds. Also. if I change a setting in the Bond app, the update on HS3 is anywhere from 1 second to maybe 3 seconds. Even if a change the setting on the Bond app as soon as I see HS3 update. Don't know if this is helpful:
                            Yeah, from the log it looks like the update rate is still 2 sec. I'll check.

                            Originally posted by CJMH View Post
                            Still getting the errors on occasion, but has not crashed yet.
                            So far the plugin has gotten 9 errors over about 12 minutes, but has not crashed yet:
                            As I said before, and created a new thread - this is a known Mono issue. I can't fix it, but I will try to change the implementation to avoid the errors.

                            Comment


                              #59
                              Originally posted by CJMH View Post
                              What does the "Update" setting on the "Config Page" do? I assume it is how often the plugin polls the BOND. If so, I am not sure that is working right. It does not seem to effect how long between getting status updates from the bond. I set it to 10 seconds and turned on logging and here what I am seeing. It seems random when it gets status, but never as long as 10 seconds.
                              I can't reproduce the problem, it works for me. Does the value stick - i.e. is it same after plugin restart?

                              Note that first two minutes after restart the update rate is fixed to 10 sec irrespectively of this setting to reduce start-up load.

                              Comment


                                #60
                                Still no crash and a lot of occasional errors so perhaps the plugin's error processing is working better.

                                The "Update" rate sticks. Same 10 seconds after restart, but log shows a somewhat random update rate. Anywhere from almost instantaneous to five to ten seconds from the timestamps in the log.

                                Comment

                                Working...
                                X