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

Posted on
Sun Nov 19, 2023 10:34 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

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?

Posted on
Sun Nov 19, 2023 4:15 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

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

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

Posted on
Sun Nov 19, 2023 4:18 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

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

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

Posted on
Sun Nov 19, 2023 4:19 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

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

Or delete line 1325 in plugin.py


Sent from my iPhone using Tapatalk

Posted on
Mon Nov 20, 2023 1:18 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

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 :-)

Posted on
Mon Nov 20, 2023 1:21 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

Or if I can install the version before those lines were removed?

Posted on
Mon Nov 20, 2023 8:09 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

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

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

Posted on
Mon Nov 20, 2023 11:37 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

I commented out those three and now I can configure the plugin, thanks!
Last edited by lochnesz on Mon Nov 20, 2023 11:58 am, edited 1 time in total.

Posted on
Mon Nov 20, 2023 11:51 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

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

Posted on
Tue Nov 21, 2023 6:52 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

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

Sorry I will be out until next week Wednesday.


Sent from my iPhone using Tapatalk

Posted on
Wed Nov 22, 2023 1:55 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

No worries, I'll wait.

Posted on
Fri Dec 01, 2023 2:25 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

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

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

Posted on
Sun Dec 03, 2023 11:21 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

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!

Posted on
Sat Dec 09, 2023 11:38 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

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

Sorry, just read this. Will check when I am back home on Thursday.


Sent from my iPhone using Tapatalk

Posted on
Sun Dec 10, 2023 1:54 am
lochnesz offline
Posts: 370
Joined: Oct 01, 2014
Location: Stockholm, Sweden

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

Thanks!

Skickat från min SM-S901B via Tapatalk

Who is online

Users browsing this forum: No registered users and 2 guests