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
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.
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
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.
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?
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.
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.