Announcement

Collapse
No announcement yet.

State status not changing when device is disconnected.

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

    State status not changing when device is disconnected.

    If one of my devices goes offline the state the UniFi plugin will remain 'connected,' has anyone else experienced this? And if so is there a fix?

    Some notes:

    While the plugin showed the device connected it does show offline in UniFi.
    ​ This happens if it is a switch or AP.
    If HomeSeer is restarted it will view the device has disconnected. However when the device is reconnected it will changed to 'connected' in the plugin
    I'm using a CloudKey so Unfi Network is enabled but UniFI OS is disabled.

    #2
    I will do some testing tomorrow to see if I can reproduce it. I assume you are referring to the HS4 "State" feature of the device, right?

    In the meantime, can you check the JSON at the time the UniFi device is offline? You can find the JSON by viewing any of the HS4 features, and select the "UniFi" tab.

    The "state" value of the JSON is normally 1 when Connected. Let me know if that changes when the device goes offline.
    stefxx

    Comment


      #3
      Thanks! Yes the value is 1 ["state": 1,] Yes I am referring to the "State" feature of the device. My testing was unplugging the device and checking it after a period of time. The counters will stop updating such as client count and experience but the "State" will remain "Connected" Thanks for the help and the quick response!

      Comment


        #4
        Can you please try beta 4.0.29.1? That should update the "State" value for UniFi Network devices much better than before.

        Thanks!
        stefxx

        Comment


          #5
          Did you have a chance to test this version? Thanks!
          stefxx

          Comment


            #6
            I am having a similar problem. For me the problem seems to be with the Unifi controller my Wi-Fi devices (mostly phones) are staying "connected" to the Unifi controller all the time. Happening for Apple iPhones and Samsung Galaxy phones.

            Does anyone know if there are settings in Unifi that can be adjusted?

            Thanks

            Comment


              #7
              This is - from a Plugin perspective - not related. This is more how UniFi handles the connection/disconnection of clients, right?

              There are a few discussions here on clients - mainly phones - are disconnecting during idle/sleep time. I have never heard of clients that are always connected according to the UniFi network. Do know that if a client is getting out of reach of the WiFi network, it might take up to 10 minutes before the UniFi controller "gives up" and sets the client to disconnected.

              The Plugin is "simply" stating whatever the UniFi Network is telling it.
              stefxx

              Comment


                #8
                Yes, I think in my case, the issue is not with the plug-in. My devices seem to be holding the connected status in the unifi controller for way too long. eg. they stay on all day even when the user has gone away.

                I was hoping someone else might have found an option within the unifi controller where this time setting can be adjusted.

                Comment


                  #9
                  I have never seen that behavior. Most of my automaton depends on the (un)availability of our phones in our household (only Android) and it works perfectly.

                  I hope someone can help you. You might also consider asking this on the UniFi community forums?
                  stefxx

                  Comment


                    #10
                    I'm going to try your Plugin, I have noticed a very fast response and updates. I currently use the other one but going to test yours. With the previous Plugin I hade the same issue expecially when I have multiple access points. Do you have any special events to check whem the phone is actually out of range or just check for it via device?

                    Sent from my SM-S906U using Tapatalk

                    Comment


                      #11
                      Great! No special events for this, since using device status gives much more flexibility in my opinion.

                      Read this first on how to track clients: https://forums.homeseer.com/forum/hs...atus-explained. That should get you started.
                      stefxx

                      Comment


                        #12
                        Thanks Stephan. So far so good. I read the post about tracking the device referenced here. I changed the Android to phone MAC but the Unifi still shows the random Mac. How do I change your plugin client device to reflect the new mac? Would it automatically update after few minutes?

                        Comment


                          #13
                          Make sure to re-connect the device after changing the property on the Android device.

                          The plugin should pick up the new Mac address soon. The old Mac address might also be there for days or weeks, that is normal and should disappear over time.
                          stefxx

                          Comment


                            #14
                            Thanks for the fast response. So I went in my Droid, changed the Mac to Mac phone, it reflect it in unifi but not in the Plugin. In the Plugin, I disabled the client and re enabled it again but the same old Mac shows. I will change it again this morning and I will keep you posted. Anything else I can do in the meantime? By the way, I m using the beta.

                            Thanks

                            Sent from my SM-S906U using Tapatalk

                            Comment


                              #15
                              The existing, old device will continue to show (it might go away when you click "forget").

                              You will have to look for a new device, since it has a new Mac address is will be considered a new devices.

                              So you will have to disable the device with the old Mac address, and enable the device with the new Mac address.
                              stefxx

                              Comment

                              Working...
                              X