Page 1 of 2

Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Sun Nov 19, 2023 10:34 am
by lochnesz
I had some issues leading to that I uninstalled the plugin by stopping the server, deleting the plugin file and preferences file and folder, and then started Indigo and installed a new instance of the plugin. Now I can't get even basic configuration done. The plugin starts fine, but I can't do any configuration.

Starting plugin "uniFiAP 2022.42.389" (pid 1587)
uniFiAP initializing ...
uniFiAP path To files: =================
uniFiAP detailed logging /Library/Application Support/Perceptive Automation/Indigo 2023.1/Logs/com.karlwachs.uniFiAP/plugin.log
uniFiAP testing logging levels, for info only:
uniFiAP logger enabled for INFO ==> TEST ONLY
uniFiAP Warning logger enabled for WARNING ==> TEST ONLY
uniFiAP Error logger enabled for ERROR ==> TEST ONLY
uniFiAP Error logger enabled for CRITICAL ==> TEST ONLY
uniFiAP using '/Library/Frameworks/Python.framework/Versions/Current/bin/python3' for utily programs
Started plugin "uniFiAP 2022.42.389"
uniFiAP debug settings :[]
uniFiAP initialized ... looping


Trying to configure anything leads to this (and no configuration gets saved):

Configuration GUI
msg from plugin: error please check indigo eventlog

Log
uniFiAP Error
Traceback (most recent call last):
File "plugin.py", line 1325, in validatePrefsConfigUi
self.cameraEventWidth = int(valuesDict["cameraEventWidth"])
KeyError: 'key cameraEventWidth not found in dict'

Any suggestions?

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Sun Nov 19, 2023 4:15 pm
by kw123
I am out of town until Nov 30

That looks like a bug. I removed code for the old old UniFi camera system. (1500 lines). I might have missed something while deleting code.


Sent from my iPhone using Tapatalk

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Sun Nov 19, 2023 4:18 pm
by kw123
Or as a temp fix
you could add a text field in pluginconfig.xml
cameraEventWidth
Fill it with a 1


Sent from my iPhone using Tapatalk

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Sun Nov 19, 2023 4:19 pm
by kw123
Or delete line 1325 in plugin.py


Sent from my iPhone using Tapatalk

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Mon Nov 20, 2023 1:18 am
by lochnesz
Hi,

After deleting line 1325 I get this error instead:

uniFiAP Error
Traceback (most recent call last):
File "plugin.py", line 1327, in validatePrefsConfigUi
self.imageSourceForEvent = valuesDict["imageSourceForEvent"]
KeyError: 'key imageSourceForEvent not found in dict'

I can wait until you are back :-)

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Mon Nov 20, 2023 1:21 am
by lochnesz
Or if I can install the version before those lines were removed?

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Mon Nov 20, 2023 8:09 am
by kw123
please delete these 3 lines starting at 1325:

self.cameraEventWidth = int(valuesDict["cameraEventWidth"])

self.imageSourceForEvent = valuesDict["imageSourceForEvent"]

self.imageSourceForSnapShot = valuesDict["imageSourceForSnapShot"]


or yes you could go back some releases .

Karl

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Mon Nov 20, 2023 11:37 am
by lochnesz
I commented out those three and now I can configure the plugin, thanks!

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Mon Nov 20, 2023 11:51 am
by lochnesz
However the plugin seems to reboot like every minute with this written to log:

20 Nov 2023 at 18:55:04
uniFiAP after loop , quitNow= >>new devices<<
uniFiAP Warning comsumeDictData: stopping process due to stop request
uniFiAP Warning comsumeLogData: stopping process due to stop request
uniFiAP Warning getProtectEvents: stopping process due to stop request
uniFiAP Warning getMessages: stopping listener process for :SWdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :SWdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APtail - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APtail - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APtail - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APtail - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APtail - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APtail - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :GWtail - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :SWdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :GWdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :SWdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :SWdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :SWdict - 192.168.x.x
uniFiAP Warning getMessages: stopping listener process for :APdict - 192.168.x.x
uniFiAP runConcurrentThread stopping plugin due to: ::::: new devices :::::
Reloading plugin "uniFiAP 2022.42.389" using API v3.0
Stopping plugin "uniFiAP 2022.42.389" (pid 90945)
uniFiAP Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Stopped plugin "uniFiAP 2022.42.389"
Starting plugin "uniFiAP 2022.42.389" (pid 91603)
uniFiAP initializing ...
uniFiAP path To files: =================
uniFiAP detailed logging /Library/Application Support/Perceptive Automation/Indigo 2023.1/Logs/com.karlwachs.uniFiAP/plugin.log
uniFiAP testing logging levels, for info only:
uniFiAP logger enabled for INFO ==> TEST ONLY
uniFiAP Warning logger enabled for WARNING ==> TEST ONLY
uniFiAP Error logger enabled for ERROR ==> TEST ONLY
uniFiAP Error logger enabled for CRITICAL ==> TEST ONLY
uniFiAP using '/Library/Frameworks/Python.framework/Versions/Current/bin/python3' for utily programs
Started plugin "uniFiAP 2022.42.389"
uniFiAP debug settings :[]
uniFiAP initialized ... looping

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Tue Nov 21, 2023 6:52 pm
by kw123
Sorry I will be out until next week Wednesday.


Sent from my iPhone using Tapatalk

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Wed Nov 22, 2023 1:55 am
by lochnesz
No worries, I'll wait.

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Fri Dec 01, 2023 2:25 am
by kw123
please check the new version .394

it has some checks added if config is not fully configured.

please delete first
/Library/Application Support/Perceptive Automation/Indigo 2023.1/Preferences/Plugins/com.karlwachs.uniFiAP.indiPref
/Library/Application Support/Perceptive Automation/Indigo 2023.1/Preferences/Plugins/com.karlwachs.uniFiAP

then load the new version. it automatically goes into config, please setup :
- web user id and pwd
- unix (ssh) userid and password
- ip # of unifi controller and type and port number (anything new should be 433) and do not check port #
- select f you want to use controller info for reports only or also to check for new devices. if new devs is selected any new UNIFI system device will be automatically added.

Karl

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Sun Dec 03, 2023 11:21 am
by lochnesz
Thank you Karl, it looks good now!

I am trying to control PoE for some switch ports but nothing happens when I am using the plugin to do this (Unifi web GUI works fine). Is there anything I must configure in the plugin before this works? I tried with two switch models so far; US 8 150W and USW Lite 16 PoE.

Thanks!

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Sat Dec 09, 2023 11:38 pm
by kw123
Sorry, just read this. Will check when I am back home on Thursday.


Sent from my iPhone using Tapatalk

Re: Clean re-install of uniFi-WiFi-AP can't be configured

PostPosted: Sun Dec 10, 2023 1:54 am
by lochnesz
Thanks!

Skickat från min SM-S901B via Tapatalk