Any update to this binding? *Iām on the 2.1-SNAPSHOT.jar. I was hoping to use it. I notice itās still trying to access https://mycontroller:8443/api/s/null/stat/device
Hi @martinvw, Iāve been away for the last month now Iām finally back home. I will try and find some free time this coming week. Thereās 2 things I want to do before I squash and rebase:
Look into the **null** issue @psyciknz is experiencing
Change the online channel to a Contact (instead of a Switch as itās read-only)
I will make these changes and post a new build (with a 2.2.0-SNAPSHOT version) to see if we can get this in OH 2.2.
Download the latest *.jar file from: https://jenkins.otr.mx/job/openhab2-unifi-binding/
Place it in your $OPENHAB_RUNTIME/addons folder (in Linux apt: /usr/share/openhab2/addons/)
Use discovery in PaperUI or manually define your things and items (see this thread for example configs)
edit: forgot the link to the UniFi Binding Readme for config info
I was about to open a PR and I remembered the two outstanding issuesā¦
@psyciknz did you ever sort out your issue or are you still getting **null** in the calls to your controller? Do you have a site parameter defined on the UniFi Controller bridge?
Is the consensus to change the online channel to a Contact? It makes sense to me as itās read-only.
Iām going to wait for your feedback before I open the PR. Hopefully we can do this quick enough to get it into the 2.2 release.
Iāve tried removing my controller and found the binding in resolved state to gave it a restart. Then I was able to see the binding config - couldnāt see a site in there, so tried adding the controller again. Now I see to be in some sort of mess where i canāt see the binding config anywhere.
So still not sure where I add the site.
EDIT. Just moved to the 2.2.0-SNAPSHOT and now I can get it to work.
Site is defined at the thing level (not the Bridge). I havenāt changed the ādefaultā name of the site in the Unifi Controller to test if it will work (but it should).
In PaperUI, the site option appears under the thingās configuration parameters
I am currently running:
openHAB 2.2.0 Snapshot Build #1028 on a Debian Jessie with Oracleās JVM 8u144 with 2.1.0.201706081307 org.openhab.binding.unifi and Unifi Controller version 5.5.19 (need to up to 5.5.20)
the binding works fine on this latest release. I never had problems with it since I started using it.
@psyciknz: what is your opinion on changing the channel type for the Online channel from Switch to Contact? (I am in favor since it is a āread onlyā setting)