Doorbell Chimes
Closed this issue · 9 comments
Homebridge UniFi Protect Version
7.1.2
Homebridge Platform and OS
Raspberry Pi5
Homebridge Version
1.8.4
Node Version
18.19.0
UniFi OS Version
4.0.6
UniFi Protect Controller Version
4.0.33
Describe the problem
I have configured the plugin to add a switch accessory to trigger doorbell ring events. The switch appears in the Homekit automation configuration function and I can build an automation, which tests correctly in Homekit. I can occasionally trigger the automation from the accessories tile under the plugin configuration accessories tab, but the correct operation will only work randomly. I cannot trigger the automation from the doorbell itself, even though the log shows a doorbell trigger event. I'm sure I have an option or parameter set incorreclt, but I am unable to determine where.
Homebridge HBUP JSON configuration
{
"bridge": {
"name": "Homebridge 8215",
"username": "0E:C8:31:FD:82:15",
"port": 51131,
"pin": "748-76-443",
"advertiser": "avahi"
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"name": "UniFi Protect",
"controllers": [
{
"address": "192.168.1.1",
"username": "HomeKit",
"password": "Home!110042!Kit"
}
],
"platform": "UniFi Protect",
"options": [
"Enable.Doorbell.Trigger.F4E2C670DBCC",
"Enable.Doorbell.PhysicalChime.F4E2C670DBCC"
]
}
]
}
Relevant log output
[27/07/2024, 13:38:52] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Stopped video streaming session.
[27/07/2024, 13:50:40] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getOptions
[27/07/2024, 13:50:40] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getDevices
[27/07/2024, 13:50:40] [Homebridge UI] [homebridge-unifi-protect] (node:666753) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.
(Use `node --trace-deprecation ...` to show where the warning was created)
[27/07/2024, 13:54:31] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Doorbell ring detected.
[27/07/2024, 13:54:31] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Doorbell ring event triggered.
[27/07/2024, 13:54:31] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Streaming request from 192.168.1.9: 1600x1200@30fps, 1,450 kbps. Transcoding 1600x1200@30fps (High) [H264], 3,000 kbps [RTSP].
[27/07/2024, 13:54:34] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Stopped video streaming session.
[27/07/2024, 13:54:35] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Doorbell ring detected.
[27/07/2024, 13:54:35] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Doorbell ring event triggered.
[27/07/2024, 13:54:38] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Doorbell ring detected.
[27/07/2024, 13:54:38] [UniFi Protect] Garage Doors [G4 Doorbell Pro]: Doorbell ring event triggered.
Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel
- I acknowledge that I am not running any early access / beta firmwares or operating systems from either Ubiquiti or Apple.
Thanks for the report. First, to be clear, the Homebridge webUI and the HBUP webUI aren’t the same thing. The Homebridge webUI and the “accessories view” it provides are completely unsupported and out of scope for HBUP. If you have an issue there, you should take it up with the Homebridge Config-UI-X team. I wouldn’t recommend using it, looking at it, or doing anything with it.
Second - can you describe exactly what you’re trying to do and your setup. I can’t really follow much of what you wrote aside from the fact you’re trying to automate doorbell rings in some manner.
Happy to help, but to me, this is all a blank slate and only you know your setup and what you’re trying to do. Help me, help you. 😄
The UniFi smart chime is absolutely capable of multiple alert tones, though Protect itself doesn’t allow you to choose between them currently. This feature has existed since HBUP 6.2.0. You can read all about it.
There are a number of ways to solve the issue you have. The easiest and likely most robust is to simply buy additional smart chimes and associate them with the respective doorbell. There’s an upcoming update from Ubiquiti that’s currently in testing that further allows you to customize ringtones. This would most elegantly solve your challenge.
Another answer is to enable the doorbell trigger on the G4 Doorbell Pro and create an automation that, when the trigger is turned on, takes whatever action you want. That trigger is turned on only by a doorbell ring. It sounds like you’re trying some version of this, but without seeing screenshots of the automation in question I can’t provide more perspective.
You’re welcome to join the Discord and walk the community through your setup - but there are quite a few ways to do this.
Follow the link above to the release notes for HBUP. Here’s the relevant excerpt:
New feature: UniFi chime devices now expose two additional switches, allowing you to trigger the chime speaker with either the default tone or the buzzer tone. Buzzer tone you say, what's that? Give it a try.
You’re also trying to do advanced things…if you’re new to HBUP, my advice is crawl/walk/run. Get up and running and then read all the documentation if you want to do more sophisticated automations. And join the Discord…lots of good folks to ask questions to including myself.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.