Unifi binding stops triggering once unifi controller/network or Protect is updated

I am looking for some help in how to troubleshoot an issue I am having. I have a unifi doorbell and use it to trigger a rule when the doorbell is pressed. This works great untill the Unifi controller firmware is updated. Unifi pushes out a lot of firmware updates.
When this happens everthing still seems normal, the “Unifi Protect NVR” bridge thing and “unifi protect G4 Doorbell” thing still seem to be online (green).
But if the doorbell is then pressed Doorbell Ding-Dong or Last Ring are not updated and do not trigger the Rule. Nothing in the error log.
To recover from this situation I disable and re-enable the bridge and this puts everything in working condition again.

I am running 4.3.5 release, but previous releases have also had the same issue.

Anyone else recognizes this issue or idea how to futher troublshoot this, possibly a workaround?

thx,
Daan

I can confirm that binding stops working after a certain time. I cannot proof if this is firmware-update related or if there are other reasons.
Someone with more know-how than me maybe could check the binding source code for this?

There are other questions too, if G6 cameras will be supported soon - but there is no answer yet:
https://github.com/seaside1/unifiprotect/issues

I also tried to contact @Seaside - but unfortunately I didn’t get an answer.
Maybe somebody could take over the maintenance of the binding code? :innocent:

Take a look here: UniFi Protect Binding (Cloudkey gen2+, Dream Machine Pro, NVR) - #499 by ErikDB

I had the same problems for months. A few weeks ago, I compiled a jar myself from @Seaside’s GitHub, and it’s running without a problem. So I assume that the jar that’s out there as ‘latest version’ somehow isn’t the latest version.

1 Like

I wish I could contribute for real, but it’s miles beyond me :slight_smile:

Thank you, do I need to compile this for my specific openhab version or can I use the Jar posted?

It works for OH4.3. Hopefully the code also plays nicely with Java 21 and OH5… We’ll see :wink:

Ok, I have installed the binding, lets see how it performs! For future users, I used the following actions to make this happen.

  • Step 1: Uninstall current protect binding via the regular interface
  • Step 2: Login via SSH and loging to the concole
  • Step 3: Install specific binding and run

Step 2:

openhab-cli console
'password: hapopen'

Step 3:

bundle:install "https://github.com/ErikDB87/unifiprotect/blob/unifiprotect/built-jars/org.openhab.binding.unifiprotect-4.0.0-SNAPSHOT.jar?raw=true"
bundle:start 325 // actual bundle ID is given

For later to unstall:

bundle:uninstall 325 //actual bundle ID can be found via bundle:list

Thanks Daan,

there is another (maybe easier?) way to install such a binding:
Just copy the downloaded *.jar file to the /openhab/addons folder and openHAB will install and use it.

Uninstall: just delete the *.jar file in the /openhab/addons folder.

best, Kai