the expiration times ( AP, GW, SW) on the unifi devices vary quit a bit. the longest time is the switch or GW = DHCP if you use that.
the AP has the shortest "forget time" .
The plugin offers many options for AP, GW, SW. If it is wifi I suggest to use AP/ optimized option.:
- Screen Shot 2017-08-03 at 18.24.29.png (46.53 KiB) Viewed 3455 times
the plugin uses 2 channels to get info:
1. get the unifi database every xx seconds (30-90) from the UG/SW/AP
2. listen to the log files on the unifi devices for any relevant changes.
For wifi the AP-logfile offers the fastest info. When connecting the log file -> indigo plugin sees newly attached device within 0.5-1 secs.
Also when actively detaching (not just leaving range) = switching wifi on on your icon. it goes fast as well. when walking out of range there is no message in the log file. then we need to look at the database
the database info (dict) get requested by the plugin every xx seconds. Then the plugin reads the dict and determines if the device
- is listed at all
- or has changed parameters ( e.g. uptime, idle time ...)
then depending on the settings it determines if the device its still there or not..
Those are the parameters shown in the screen shot. You can also see these states in the device state list.
==> optimized tries to use all info available.
hope that helps
Karl