Ubiquiti Unifi Protect cameras

No, you don't need the Python script running if you are on a new enough version of Hubitat software.

What does the device page and events history look like for the doorbell device? You should see a pushed event on button 1 on the doorbell device for each time you press the physical doorbell button.

That is the event that you use as a trigger in Rule Machine.

Thanks Tom. I do see the 1 for the doorbell. In the history. Shouldn't it revert to a 0 after the press? I have to look at my rule to see what is "not" going on

One is the button number, so no.

You need to look at pressed.

1 Like

Yep, specifically, you should look at the Events history by clicking on the link on the Hubitat device page. You should see timestamped events that correspond to you pressing the physical doorbell button.

I got it working. My action in the rule was failing. No wto figure that out :slight_smile:

1 Like

Unable to get connected. The log is showing:

dev:9412022-03-28 11:58:51.127 errorgroovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.String#. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class [B] [class [C] [class java.lang.String] on line 213 (method refresh)

dev:9412022-03-28 11:58:51.108 debugreadBootstrap() failed: Ambiguous method overloading for method java.lang.String#. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class [B] [class [C] [class java.lang.String]

Unifi Dream Machine PRO: (Beta Tester)
UniFi OS UDM Pro 1.12.15
Protect Version: 1.21.4
Controller Version: 7.1.59

Hubitat
Revision: C-7
Platform Version: 2.3.1.129

Interesting. I wonder if the Groovy update in 2.3.1 broke something. Are you able to try it on a 2.3.0 release? I am still on that version (usually wait for the dust to settle on new versions). I will try updating when I get a moment to tinker with it.

I am unable to use 2.3.0. I had to upgrade to 2.3.1 due to Z-Wave issues.

I'll update to 2.3.1 and give it a shot.

Update: this still works for me on 2.3.1, so that doesn't seem to be the issue. I may have to look at Protect next. I'm still on 1.18 on that side.

I'm going to see if I can remove the specific functionality that seems to be breaking just to rule out a more fundamental issue.

FYI, saw your other post on another thread regarding UniFi Protect. My drivers do support button press events for the doorbell (and real-time motion detection and smart detection events). So if we can get this working with your setup, you should be able to get that functionality.

I started looking @snell's code when I realized this one stopped communicating. He has done a lot of great work also. I was using this initially, but it recently broke, and in turn, I no longer have my Google Home Mini's announcing someone is at the door.

Ah, I thought that it never worked. Did you also recently update Protect? Any clues on which step or any potential change in configuration might have been the step that caused it to break?

OK... you may hate me for not reporting earlier. It stopped working for me several weeks back when I was forced to change my local Unifi password. :frowning:

I do not. Since I use EA with Unifi, I have it automatically update. I do not recall when it stopped working.

Right now it looks like it is an issue trying to log in.

I think @snell has great login code that seems to work, and you have great code for actually communicating with everything. If you two combined your codes somehow, things would be excellent.

I even tried creating a new local admin account on the UDMP just for the hubitat. Works in @snell 's code, but not yours.

Ok, let me look into it. Thanks for the context.

What version of Protect are you on, @jkp?

now... 1.21.4 EA. when it happened... not sure... one or two earlier EA versions but it was working up to the moment I changed my password

I didn't have the time to deal with it at the time so I uninstalled

March 10th I believe was when it started for me

Are you on a UDM Pro? I'm wondering if it is related to the 1.12.13 Dream Machine OS update.

Improvements

  • Add Floorplan feature to the dashboard.
  • Add support for WAN/LAN remapping on UDM-Pro port 8-11.
  • Add support for disabling weak ciphers for L2TP VPN.
  • Add support for IGMP snooping on UDM/UDM-Pro switch ports.
  • Add support file download progress indicator.
  • Add support for Jumbo Frames.
  • Redesign UniFi OS Settings.
  • Wireless feature/fix parity with UAP 6.0.14 release.
  • Allow setting SFP speed during setup.
  • Allow disabling Console Remote Access only when connected locally.
  • Auto-update timezone when IP changes (based on GeoIP).
  • Improve compatibility to PPPoE ISP provider that provides IPv6.
  • Improve mobile experience in UniFi OS settings.
  • Improve push notification stability.
  • Improve establishing a remote connection.
  • Improve internet connectivity check.
  • Improve the accuracy of SFP link status detection.
  • Improve Cloud config backup feature.
  • Improve system stability.
  • Update OpenSSL to 1.1.1l.
  • Upgrade busybox from 1.31.1 to 1.34.1
  • Upgrade Suricata to 6.0.4.
  • Move running applications to the top of the list in UniFi OS settings.
  • Require to agree to ToS to enable SSH.
  • Various remote connectivity improvements.
  • Update app switcher for the local portal.
  • Minor LCM fixes and improvements.
  • Remove weak ciphers' support from the WiFiman service.
  • Remove TLS1.0 and TLS1.1 support for guest portals.
  • Separate firewall logs from /var/log/messages to /mnt/data/log/kern.log.

Bugfixes

  • Fix timezone issue for Sao Paulo.
  • Fix issue where arping message was spamming log files
  • Fix performance gauges in UniFi OS settings for Safari.
  • Fix issues where excessive incorrect failovers are reported.
  • Fix issue where configuration may fail to apply in edge cases.
  • Fix to avoid console locking up for some users.
  • Fix a commit error issue when changing firewall rules.
  • Fix an issue where UniFi applications may fail to start in some rare cases.
  • Fix an issue where Chromecast speaker groups cross VLAN don't work.
  • Fix issue where 1G manual speed setting on UDM brings link down
  • Fix a corner issue where the default routing table may become incorrect when both WANs are used.
  • Fix an issue where a wireless bandwidth profile may not work as expected when WAN is PPPoE on UDM.
  • Fix a corner issue that UDM-Pro may suffer boot issue when there's HDD inserted.
  • Fix an issue where the UDM-Pro can't link with 1G peer device using UF-RJ45-10G on SFP+ ports.
  • Fix an issue where advertised MTU in IPv6 RA packet is not used.
  • Fix an issue where content filtering doesn't work for wired clients in guest portal-enabled networks.

Where did you get these version numbers? I am on a CK G2+ (not UDMP). I'm now on Protect 1.21.4 (which still works), but the only other version I see is the firmware version for my controller (2.1.11). I want to find the UniFi OS version to see where I'm at.

yes