hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.48k stars 93 forks source link

G4 doorbell no doorbell notifications on > v6.9.2 #961

Closed bluewalk closed 1 year ago

bluewalk commented 1 year ago

Describe The Problem: On versions higher than v6.9.2 the doorbell notifications and doorbell chime options are gone in the Home app. No notifications are sent to homepods nor to apple tv's.

To Reproduce: Update to a version higher than v6.9.2

Logs: Logs are actually the same between the two versions. I haven't checked debuglogs yet though.

Homebridge Configuration:

{
    "bridge": {
        "name": "Homebridge XXXX",
        "username": "0E:31:6C:XX:XX:XX",
        "port": 53063,
        "pin": "999-99-999",
        "advertiser": "bonjour-hap",
        "bind": [
            "ens160"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "en",
            "platform": "config"
        },
        {
            "name": "Living Room",
            "hubIP": "192.168.1.202",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "publishGeneralMuteSwitch": true,
            "linkVolumeControlToTV": true,
            "platform": "HarmonyHubWebSocket"
        },
        {
            "email": "",
            "password": "",
            "platform": "NeatoVacuumRobot",
            "hidden": [
                "schedule",
                "spot"
            ]
        },
        {
            "controllers": [
                {
                    "address": "172.16.1.254",
                    "mqttUrl": "mqtt://mqttserver",
                    "password": "password",
                    "username": "username"
                }
            ],
            "name": "UniFi Protect",
            "platform": "UniFi Protect"
        }
    ],
    "disabledPlugins": []
}

Screenshots: v6.9.2 - G4 doorbell options: IMG_2489

after v6.9.2: IMG_2487

Environment:

bluewalk commented 1 year ago

Updated to: UniFi Protect Version: 2.8.35 UniFi Protect Controller Firmware Version: v3.1.14

Problem still persists

hjdhjd commented 1 year ago

Appreciate the report, but it's missing a crucial piece of information. πŸ˜„

What cameras and doorbells do you have connected to the Protect controller, and which one(s) are having an issue? I know your referenced the G4 Doorbell but it's unclear if it's the G4 Doorbell, G4 Doorbell Pro, etc.

Thanks - I know what's going on here, in general terms...but let's figure out what's going on in your configuration and we'll get this working.

bluewalk commented 1 year ago

Hi @hjdhjd , my apologies, I forgot that information. Currently my Protect has 4 camera's running:

The G4 doorbell shows up in HomeKit as a doorbell with v6.9.2 and I can choose to enable the doorbell notification and chime. Once I update the plugin to the latest version (or any version above v.6.9.2) these options disappear from the Home app (see screenshots). When pressing the doorbell no notifications are sent nor do the HomePods chime.

hjdhjd commented 1 year ago

Let me recreate the same environment on my end and see if I can duplicate the outcome. I think I know what's going on here. In the meantime, feel free to use 6.9.2 until then...won't be until later this week, but really appreciate your thorough testing between versions to this point.

bluewalk commented 1 year ago

No worries, if you need me to test anything just let me know πŸ˜€

sebwar2004 commented 1 year ago

Hi, first: Thanks for your great work!

Unfortunately I have to add that I have the same issues (I'm on 6.11.0) with missing Doorbell options and also missing notifications, for example on the AppleTV.

Devices are:

hjdhjd commented 1 year ago

@sebwar2004 Thanks for your report - I don’t need more information or additional data points on this one right now. Stay tuned and monitor this issue. Thanks!

sebwar2004 commented 1 year ago

Thanks for the fast reply!

I have to say: today evening it works again after a week. So I'm not quite sure what was causing this in my setup...

bluewalk commented 1 year ago

@hjdhjd Today I saw 6.11.1 got released so why not give that one a shot. And presto, the doorbell works again! This doesn't really make sense looking at the changes though.

[edit] One other thing, I did recently upgrade to the official release of v3.1.15, maybe that fixed some issues?

hjdhjd commented 1 year ago

@hjdhjd Today I saw 6.11.1 got released so why not give that one a shot. And presto, the doorbell works again! This doesn't really make sense looking at the changes though.

[edit] One other thing, I did recently upgrade to the official release of v3.1.15, maybe that fixed some issues?

So...I actually was able to recreate this issue. You are correct that the bug / issue here was actually in Protect firmware - namely Ubiquiti apparently forgot to indicate that the G4 Doorbell was in fact a doorbell in recent firmware releases. That's fixed in the 3.1 UniFi OS releases that are now GA. I've also confirmed that this is no longer an issue so long as you're on the latest GA UniFi OS and Protect controller firmwares - which should upgrade the firmware on the G4 Doorbell to fix things.

The bugfixes in yesterday's HBUP update had nothing to do with this issue. πŸ˜„

TL;DR: bug was in Ubiquiti/Protect firmware and is fixed with the latest GA Protect controller and UniFi OS firmwares.

Thanks for a cool report!

bluewalk commented 1 year ago

Thank you so much for looking into this, this is still my favorite Homebridge plugin 😁

hjdhjd commented 1 year ago

Glad you do - pay it forward by sharing the awesomeness with others and spreading the word. πŸ˜„

github-actions[bot] commented 1 year ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.