Hi,
after an upgrade to OH 2.5 (M5) (with a few intermediate steps in which I did not check on the bindings working) I run into an error with the Ubiquity Unifi binding.
I ran a 5.7.X version of the unifi network controller until earlier today, ran into the below observed problem and upgraded to 5.12.35 (current version).
Item and thing configuration used to work under OH 2.2 with a version of the binding org.openhab.binding.unifi-2.2.0-SNAPSHOT.jar and the 5.7 version of the controller. With the new version of OH the old binding loads, does not throw an error but stays in PaperUI in an “initializing” state.
The 2.5.M5 binding loaded through PaperUI shows a state of “offline - configuration error”, the things config shows in PaperUI, and openhab.log shows the attached stack trace.
The unifi.things config:
Bridge unifi:controller:home "UniFi" [ host="192.168.1.56", port=8443, username="XXXX", password="YYYYYYYYYYYY", refresh=10, considerHome=180 ] {
Thing client clemensPhone "Clemenss iPhone" [ mac="AB:CD:EF:01:02:03", contactType="NO" ]
....
.....
}
(MAC / USER / PASSWD) changed. User PW combo works to log into the Unifi admin interface.
Here is the stack trace.
org.openhab.binding.unifi.internal.api.UniFiException: Unknown HTTP status code 404 returned by the controller
at org.openhab.binding.unifi.internal.api.model.UniFiControllerRequest.getContent(UniFiControllerRequest.java:147) ~[bundleFile:?]
at org.openhab.binding.unifi.internal.api.model.UniFiControllerRequest.execute(UniFiControllerRequest.java:116) ~[bundleFile:?]
at org.openhab.binding.unifi.internal.api.model.UniFiController.executeRequest(UniFiController.java:198) ~[bundleFile:?]
at org.openhab.binding.unifi.internal.api.model.UniFiController.login(UniFiController.java:106) ~[bundleFile:?]
at org.openhab.binding.unifi.internal.api.model.UniFiController.start(UniFiController.java:91) ~[bundleFile:?]
at org.openhab.binding.unifi.internal.handler.UniFiControllerThingHandler.initialize(UniFiControllerThingHandler.java:92) [bundleFile:?]
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_40]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_40]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_40]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_40]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_40]
I also see a few unusual lines in the “server.log” of the ubiquiti controller:
[2019-12-01T21:34:55,871] <launcher-ui> INFO launcher - UniFi Controller (5.12.35) started.
[2019-12-01T22:20:55,496] <webapi-10> WARN sanitize - Invalid key exists in Setting payload, key=analytics_disapproved_for
[2019-12-01T22:20:55,497] <webapi-10> WARN sanitize - Invalid key exists in Setting payload, key=storeEnabled
[2019-12-01T22:20:55,497] <webapi-10> WARN sanitize - Invalid key exists in Setting payload, key=storeAdminsEnabled
Any ideas or suggestions how to fix this?
Thanx
Clemens