UniFi WiFi AP: download

Posted on
Mon May 03, 2021 8:05 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

Code: Select all
published v .265

changes in V7.39.365@ 2021-05-02
================== 
   changed reading dicts and messages from unifi devices:
   1. dict checks for single line w xxxThisIsTheEndTokenxxx255
   2. tail messages check for ...state is locked...
   3. changed time wait for dicts read to 63 secs from 58 secs
   4. issue a unifi reboot command when encountering mca error, w option to switch off in config
   5. fixed error in  Line# 5966 ;  error='key name Unifi_Camera_with_Ev ...
Karl

Posted on
Thu May 13, 2021 9:39 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V7.39.370@ 2021-05-13
==================
1. added warning levels for excessive time used to consume data for unifi devices
set in config at bottom in EXPERT section

Posted on
Wed Feb 09, 2022 3:58 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V7.39.3720@ 2022-02-09


needed for controller v 6.5.55 and greater:

changed check of port number to python-request and add option in config to not check port number
this is needed for controller V >= 6.5.55 as curl does not connect anymore, all connections to controller need now python-request module

Karl

Posted on
Tue Mar 29, 2022 3:08 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

There is a new version 7.40.374 available now,
That can run under MAC OS 12.3.. AFTER indigo 2022 is released

!!! do not upgrade to MAC OS12.3 (Monterey) yet !!!,

But this release should work fine with indigo 2021 and 2022 and older versions

I would appreciate if someone could test this with the current indigo releases ie 2021 and older.
It was tested under indigo 2022 Mac OS 12.3 and Indigo 2021 and MAC OS 12.2, but naturally not all functions.

The older versions of this plugin (< 7.40.374) will NOT run under MAC OS 12.3 (even with indigo 2022 )

Karl

Posted on
Sun Apr 03, 2022 3:02 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V7.40.375@ 2022-04-03
==================
added stats for wait times,
in menu "PRINT Communication and processing stats":.
this is useful to understand if the plugin has performance problems. This is not new functionalityfor the user.

The log output will look like:
Code: Select all
Wait times[secs] during processing of incoming data,  from 2022-04-04 00:00:01 to 2022-04-04 09:03:10 - today
Pgm Module Waiting --- nMeasuremts  TotWaitTime  AveWait   >.1  >.5   >1   >3   >6  >12  >20  maxWait
doAPdictsSELF                 1841        0.026    0.000     0    0    0    0    0    0    0      0.0
doAPmessages                  5897       50.134    0.009   101    8   11    1    0    0    0      5.7
doGWHost_table                 400        0.005    0.000     0    0    0    0    0    0    0      0.0
doGatewaydictSELF              400        2.743    0.007     7    2    0    0    0    0    0      0.9
doNeighborsdict               1841        0.021    0.000     0    0    0    0    0    0    0      0.0
doSWITCHdict                  1209        0.027    0.000     0    0    0    0    0    0    0      0.0
doSWdictSELF                  1209       16.801    0.014    11    2    5    1    0    0    0      5.6
doWiFiCLIENTSdict             2786       12.140    0.004    27    2    3    0    0    0    0      1.6
main                          5770        4.797    0.001    25    0    0    0    0    0    0      0.3
---TOTAL----                 21353       86.695    0.004   171   14   19    2    0    0    0      5.7

Pgm Module Blocking--- nMeasuremts  TotBlocTime  AveBloc   >.1  >.5   >1   >3   >6  >12  >20  maxWait
doAPmessages                     6        0.847    0.141     4    0    0    0    0    0    0      0.3
doGWHost_table                   4        0.526    0.131     4    0    0    0    0    0    0      0.1
doNeighborsdict                 49       11.377    0.232    48    0    1    0    0    0    0      2.1
doSWITCHdict                     7        6.845    0.978     6    0    0    1    0    0    0      5.7
main                           142       66.511    0.468   109   14   18    1    0    0    0      5.6
---TOTAL----                   210       86.106    0.410   171   14   19    2    0    0    0      5.7

Wait times[secs] during processing of incoming data,  from 2022-04-03 18:06:14 to 2022-04-04 00:00:00 - yesterday
Pgm Module Waiting --- nMeasuremts  TotWaitTime  AveWait   >.1  >.5   >1   >3   >6  >12  >20  maxWait
doAPdictsSELF                 1199        0.019    0.000     0    0    0    0    0    0    0      0.0
doAPmessages                  4520       16.091    0.004    54    1    3    0    0    0    0      1.9
doGWHost_table                 260        0.003    0.000     0    0    0    0    0    0    0      0.0
doGatewaydictSELF              260        1.212    0.005     7    0    0    0    0    0    0      0.3
doNeighborsdict               1199        0.372    0.000     1    0    0    0    0    0    0      0.4
doSWITCHdict                   786        0.022    0.000     0    0    0    0    0    0    0      0.0
doSWdictSELF                   786        5.910    0.008    10    1    2    0    0    0    0      1.7
doWiFiCLIENTSdict             1811        6.896    0.004    22    0    2    0    0    0    0      1.2
main                          3787        3.113    0.001    15    0    0    0    0    0    0      0.3
---TOTAL----                 14608       33.638    0.002   109    2    7    0    0    0    0      1.9

Pgm Module Blocking--- nMeasuremts  TotBlocTime  AveBloc   >.1  >.5   >1   >3   >6  >12  >20  maxWait
doAPmessages                     1        0.111    0.111     1    0    0    0    0    0    0      0.1
doGWHost_table                   2        0.365    0.182     2    0    0    0    0    0    0      0.2
doNeighborsdict                 26        6.845    0.263    25    0    1    0    0    0    0      1.9
doSWITCHdict                     3        0.631    0.210     3    0    0    0    0    0    0      0.3
main                            86       25.276    0.294    78    2    6    0    0    0    0      1.7
---TOTAL----                   118       33.228    0.282   109    2    7    0    0    0    0      1.9
================================================ END ================================================


It shows the modules that wait and the modules that cause any waits for others.
In my setup the max wait time for any data processing is 5.7 seconds and happened once in about 10 hours.
Indigo devices can be updated from different sources: switches, AP , router ... They should not update the same device at the same time. That is why the plugin serializes the actual updates
Sometimes 2 processes want to update at the same time. To solve this a wait mechanism is used. First update process goes through, the other has to wait.
This log print out shows who is waiting from whom and how often and how long.

So if you have a problem with performance, I might ask you you send me this info.

Karl

Posted on
Wed Apr 20, 2022 4:12 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V7.40.377@ 2022-04-20
==================
1. fixed status did not got up --> down (one tab was missing)

Posted on
Tue May 10, 2022 3:48 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: UniFi WiFi AP: download

NOTE: Indigo 2022.1 has solved the compatibility issue with macOS Monterey 12.3+.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed May 11, 2022 10:47 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

v7.40.378

1. fixed waitqueue for stats analysis, gave sometimes an error.. when queue was empty
2. some dev state updated did not work properly, when multiple updates to the same dev/state were in the queue

==> this release is indigo 2022.1 compatible, but still runs under python 2.7 for backwards compatibility.
This will be the last version that runs under python 2.7 and older indigo releases. Only if there is a major bug it will be be fixed<==


Any future improvement will require indigo 2022.1 and will run under python 3.x

Karl

Posted on
Tue May 17, 2022 4:47 am
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: UniFi WiFi AP: download

Upgraded and got
Code: Select all
Reloading plugin "uniFiAP 7.40.378"
   Starting plugin "uniFiAP 7.40.378" (pid 1078)
   uniFiAP Error                   Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "plugin.py", line 25, in <module>
ImportError: No module named queue

   Stopping plugin "uniFiAP 7.40.378" (pid 1078)
   Stopped plugin "uniFiAP 7.40.378"

The plugin does not restart, on its own or manually. I'm running on an older system, not Python 3.

Downgraded to 7.39.373 and it all came back up.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu May 19, 2022 7:39 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V7.40.379@ 2022-05-19
==================
1. fixed: No module named queue


Karl

Posted on
Tue May 24, 2022 4:14 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: UniFi WiFi AP: download

I'm not upgraded to 2022.1 yet, but unlike several other plugins, I see a "download available" icon for UnifiAP when looking at the plugin menu, but the new version specifically says it is for 2022 only. Other plugins like this have a red download available icon.

Perhaps I'm in a unique situation between OS versions and such?

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue May 24, 2022 4:26 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: UniFi WiFi AP: download

A black arrow means that there is a newer version of the plugin in the store that's compatible, but not necessarily that it's the latest version. Switch to the releases tab and find the most recent one that says it runs on your version of Indigo.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue May 24, 2022 4:31 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: UniFi WiFi AP: download

Ok, I have no idea what I did wrong before, but now 7.4.379 is working for me.

thanks.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri Jun 03, 2022 2:44 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V7.40.380@ 2022-06-03
==================
1. replaced all f = open() with f=self.openEncoding() method that does the utf8 depending on sys.version_info[0] >2
2. fixed global name 'item' is not defined;


****** definitely the last version that runs under py2 ******
****** next releases WILL REQUIRE PY3 and indigo 2022.1 *****

it gets difficult to maintain code that runs under py2 and py3 and I can not use the nice features from py3.
so this is it.

Karl

Posted on
Mon Jun 27, 2022 10:07 am
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V2022.40.382@ 2022-06-27
==================
1. suppress error message that File suspended does not exist
2. added option to supress Exsessive time used ... set in config at the bottom
3. fixed error msg: state key previousStatusChange not defined

===> this will require indigo 2022 and py3 <===

Karl

Who is online

Users browsing this forum: No registered users and 5 guests