Ubiquiti Unifi Binding Feature Discussion

Glad to hear you got it sorted out.

Hi Mathew,

Iā€™m kind of in a catch 22 scenario here; Iā€™m running on a Synology that the development lead has only released 2.4 so far for the Synology platform. I was able to trick Synology version 2.4 to use 2.5m1 bindings by modifying the host file to point it locally for binding installs.

Iā€™ve been running your 2.5 binding prior to the Unifi upgrade to 5.10.x and itā€™s worked excellent.

Now I have your build #101 dated 2.5.0.201903210729 and Iā€™m having trouble getting it to work with the Unifi 5.10.x version which Iā€™m assuming is because of the quoted requirement of having 2.5 for OH as the core ā†’ ExtensibleTrustManager.

Is there any other work around other than reverting back my Unifi version to 5.9.x?

It just sits in starting mode:

197 ā”‚ Starting  ā”‚  80 ā”‚ 2.5.0.201903210720     ā”‚ org.openhab.binding.unifi

Debug mode shows this:

2019-04-11 19:31:40.878 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent [unknown:512] - org.openhab.binding.unifi

Best, Jay

Hereā€™s the latest DEBUG log file; is there a specific OH 2.5m1 JAR I can drop in to get the new `ā€œExtensibleTrustManagerā€ working with the new Unifi binding?

2019-04-12 20:15:24.338 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent [unknown:512] - org.openhab.binding.unifi
2019-04-12 20:39:13.894 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent STOPPING - org.openhab.binding.unifi
2019-04-12 20:39:13.898 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent STOPPED - org.openhab.binding.unifi
2019-04-12 20:39:33.241 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent UNRESOLVED - org.openhab.binding.unifi
2019-04-12 20:39:34.158 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent RESOLVED - org.openhab.binding.unifi
2019-04-12 20:39:43.271 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent [unknown:512] - org.openhab.binding.unifi

Best, Jay

How can get a JAR for this feature for my openHAB 2.4.0 Release Build on a Synology?

https://github.com/openhab/openhab-core/blob/master/bundles/org.openhab.core.io.net/src/main/java/org/eclipse/smarthome/io/net/http/ExtensibleTrustManager.java

Best, Jay

I have the same issue with the Unifi binding since the 2.5.0.201903071727 build.

161 x Starting x 80 x 2.5.0.201903210720 x org.openhab.binding.unifi
232 x Starting x 80 x 2.5.0.201903100737 x org.openhab.binding.unifi

Iā€™m running the default Openhabian build with stable 2.4 version.

hope someone can fix it.

Hi Mike,

We have the same issues but yours has one more issue; your trying to run 2 Unifi bindings versions at the same time. Make sure you only have 1 running, meaning 1 in the ADDON directory and NO entry in the addons.cfg file for it.

Youā€™ll still see the Starting and it will just stay in that state (the problem we both have running OH 2.4).

Trying to get you past 1 of the 2 hurdles we both have.

Best, Jay

Hi Jay,

Sorry was a bit unclear wit that, iā€™m running only one version. I only tried to showed that all bindings after 20190307 are not starting anymore(at least for me).
Iā€™m running the latest starting version:

233 x Active x 80 x 2.5.0.201903071727 x org.openhab.binding.unifi

Is it certain that OH 2.4 is the issue?

regards,
Mic

I believe it is, based on @mgbowman statement of ā€œas the required change to ExtensibleTrustManager isnā€™t in 2.4ā€.

We both need a workaround to it.

Best, Jay

@jwiseman @M1C Iā€™ll try and create a 2.4 specific build for you two later this evening. Iā€™m still swamped with my house - only a few more weeks until I move!

Iā€™m also on synology on 2.4 so count me in if you do make an alt version! Cheers! :slightly_smiling_face:

For all of you stuck on 2.4, try this build: openhab2-unifi-binding-2.4

It has a work around for the missing ā€œtrustā€ code thatā€™s only in 2.5 and youā€™ll have all the latest features of the binding.

Once 2.5 is released, this build will go away.

Matthew

2 Likes

Thanks Matthew, thatā€™s very generous of you.
Will try tonightā€¦ Cheers!

Hi Mathew,

First of all, thank you for doing this!

I binding above; the link says 2.4 but the file downloaded was 2.5. Is that correct file?

I did clean out the /cache and /tmp directories also.

Iā€™m still getting the same issue like I was with your latest version.

2019-04-18 08:18:00.579 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent INSTALLED - org.openhab.binding.unifi
2019-04-18 08:18:03.201 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent RESOLVED - org.openhab.binding.unifi
2019-04-18 08:18:04.060 [DEBUG] [org.openhab.binding.unifi           ] - BundleEvent [unknown:512] - org.openhab.binding.unifi

Best, Jay

Thank you Matthew.

But for me it also keeps the status starting.

Regards,
Mic

@jwiseman @M1C Iā€™m sorry to hear thisā€¦

Let me spin up an OH 2.4 installation and see if I can reproduce your issue and maybe get a proper work around.

Iā€™m sorry guys but I just removed all references to the ā€œtrustā€ framework and even I get an error in a fresh 2.4 install :frowning:

Thereā€™s a deeper problem here and unfortunately I donā€™t have the time to figure it out. My only suggestion for now would be to stick with the 2.4 version of the binding and accept the fact youā€™ll have to wait until 2.5 to have access to the new features.

Again Iā€™m sorry.

All the best.

Thanks for trying! Hereā€™s the questions I think weā€™ll have?

  1. What is the URL to the 2.4 JAR binding to manually download it?

  2. Will it work with the Unifi Controller 10.5.2x version?

Best, Jay

You should be able to install it via the PaperUI - it was a part of the 2.4 release :slight_smile:

Iā€™m running 2.5m1 bindings on OH2.4 installation. I have mapped my host file download URL entry to point to itself so I insure I get 2.5m1 bindings from the local KAR file; hence the reason I need the actual download path to manually install it.

Best, Jay

Hi Jay,
Iā€™m running binding version 2.5.0.201903071727 on Openhab 2.4 with Unifi controller 5.10.21. For me its running as expected. I tried most version after this one also but with no success, as far as i can see this is the last version of the binding that does start.
Regards,
Micha