Page 1 of 1

miniUniFi Error "Error in plugin execution GetUiDynamicList

PostPosted: Fri Nov 03, 2023 10:22 am
by MartinG
Just discovered errors from the Miniunifi plugin which occur when I try to add new devices. When I try to select a client in the config dialog there are no entries, and the following error is triggered:

Code: Select all
3 Nov 2023 at 15:59:44
   miniUniFi Error                 Error in plugin execution GetUiDynamicList:

  File "plugin.py", line 602, in get_client_list
type: '<' not supported between instances of 'NoneType' and 'str'

   miniUniFi Error                 Error in plugin execution GetUiDynamicList:

  File "plugin.py", line 602, in get_client_list
type: '<' not supported between instances of 'NoneType' and 'str'


Logins to the controller and reporting of other devices configured previously are working just fine.

Here's the relevant log section up to the error:

Code: Select all
    Item : (dict)
          Disabled : false (bool)
          Key : offline_seconds (string)
          StateLabel : Seconds Offline (string)
          TriggerLabel : Seconds Offline (string)
          Type : 100 (integer)
   miniUniFi Debug                 Scanner Server via UniFi: getDeviceStateList, final state_list = States : (list)
     Item : (dict)
          Disabled : false (bool)
          Key : offline_seconds (string)
          StateLabel : Seconds Offline (string)
          TriggerLabel : Seconds Offline (string)
          Type : 100 (integer)
   miniUniFi Debug                 getDeviceConfigUiValues: devId = 762514591, typeId = unifiWirelessClient, pluginProps =
UiValuesDict : (dict)
     SupportsOnState : true (bool)
     SupportsSensorValue : false (bool)
     SupportsStatusRequest : false (bool)
     UniFiName :  (string)
     address :  (string)
     sql_logging_exclude : false (bool)
     unifi_controller : 1688481092 (string)
     unifi_site : default (string)
   miniUniFi Debug                 get_client_list: typeId = unifiWirelessClient, targetId = 762514591, filter = Wireless, valuesDict = UiValuesDict : (dict)
     SupportsOnState : true (bool)
     SupportsSensorValue : false (bool)
     SupportsStatusRequest : false (bool)
     UniFiName :  (string)
     address :  (string)
     sql_logging_exclude : false (bool)
     unifi_controller : 1688481092 (string)
     unifi_site : default (string)
   miniUniFi Debug                 get_client_list: using site default (Default)
   miniUniFi Error                 Error in plugin execution GetUiDynamicList:

  File "plugin.py", line 602, in get_client_list
type: '<' not supported between instances of 'NoneType' and 'str'

   miniUniFi Debug                 get_site_list: typeId = unifiWirelessClient, targetId = 762514591, valuesDict = UiValuesDict : (dict)
     SupportsOnState : true (bool)


The log then goes on to show the plugin finding a long list of active clients, including the one I'm trying to configure.

Have I misconfigured, or is something else amiss?

Re: miniUniFi Error "Error in plugin execution GetUiDynamic

PostPosted: Fri Nov 03, 2023 10:53 am
by FlyingDiver
Do any of your devices have names with "<" or ">" in them?

Re: miniUniFi Error "Error in plugin execution GetUiDynamic

PostPosted: Sat Nov 04, 2023 9:28 am
by MartinG
Not that I can find. No "<" or ">" in the UniFi client list, in the Indigo device list or in the MiniUnifi log entries other than the error message copied above.

Re: miniUniFi Error "Error in plugin execution GetUiDynamic

PostPosted: Sat Nov 04, 2023 11:03 am
by FlyingDiver
Ok I’ll have to look at that again. Now I’m thinking that the device sorting is failing because some devices don’t have names. But I need to look at how the names are assigned.


Sent from my iPhone using Tapatalk