Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebridge errors #1175

Open
1 task done
carldavis31 opened this issue Feb 11, 2025 · 10 comments
Open
1 task done

Homebridge errors #1175

carldavis31 opened this issue Feb 11, 2025 · 10 comments

Comments

@carldavis31
Copy link

Homebridge UniFi Protect Version

7.11.0

Homebridge Platform and OS

Raspberry Pi 4

Homebridge Version

1.8.5

Node Version

20.18.3

UniFi OS Version

4.1.13

UniFi Protect Controller Version

5.2.49

Describe the problem

Error messages in Homebridge and HomeKit keeps saying the UniFi doorbell has no response. I can view the camera in HomeKit.

Homebridge HBUP JSON configuration

{
    "bridge": {
        "name": "Homebridge C418",
        "username": "0E:A7:37:BB:C4:18",
        "port": 51339,
        "pin": "388-13-325",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config",
            "theme": "blue",
            "tempUnits": "f"
        },
        {
            "name": "UniFi Protect",
            "controllers": [
                {
                    "address": "192.168.0.1",
                    "username": "Homebridge",
                    "password": "Snapon@072986"
                }
            ],
            "platform": "UniFi Protect",
            "_bridge": {
                "username": "0E:27:5B:3B:1C:56",
                "port": 56924
            },
            "options": [
                "Enable.Device.SyncName.F4E2C6B7F277"
            ]
        }
    ]
}

Relevant log output

at Object.__awaiter (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:16)
    at On.Characteristic.handleGetRequest (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:740:24)
    at On.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3081:22)
    at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)
[10/02/2025, 19:36:36] [homebridge-unifi-protect] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'DO_NOT_DISTURB.DO NOT DISTURB'). See https://homebridge.io/w/JtMGR for more info.
[10/02/2025, 19:36:36] [homebridge-unifi-protect] TypeError: Cannot read properties of undefined (reading 'DO_NOT_DISTURB.DO NOT DISTURB')
    at On.getHandler (file:///var/lib/homebridge/node_modules/homebridge-unifi-protect/src/devices/protect-doorbell.ts:158:94)
    at On.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2404:32)
    at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)
    at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:177:57)
    at /var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:170:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:16)
    at On.Characteristic.handleGetRequest (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:740:24)
    at On.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3081:22)
    at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)
[10/02/2025, 19:36:36] [UniFi Protect] G4 Doorbell Pro PoE [G4 Doorbell Pro PoE]: HKSV: 1600x1200@30fps (High) [H264], 2,000 kbps (10 second timeshift buffer).
[10/02/2025, 19:36:37] [UniFi Protect] G4 Doorbell Pro PoE Package Camera [G4 Doorbell Pro PoE]: HKSV: 1600x1200@2fps (Package Camera) [H264], 500 kbps (10 second timeshift buffer).
[10/02/2025, 19:36:52] [homebridge-unifi-protect] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'LEAVE_PACKAGE_AT_DOOR.LEAVE PACKAGE AT DOOR'). See https://homebridge.io/w/JtMGR for more info.
[10/02/2025, 19:36:52] [homebridge-unifi-protect] TypeError: Cannot read properties of undefined (reading 'LEAVE_PACKAGE_AT_DOOR.LEAVE PACKAGE AT DOOR')
    at On.getHandler (file:///var/lib/homebridge/node_modules/homebridge-unifi-protect/src/devices/protect-doorbell.ts:158:94)
    at On.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2404:32)
    at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)
    at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:177:57)
    at /var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:170:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:16)
    at On.Characteristic.handleGetRequest (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:740:24)
    at On.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3081:22)
    at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)
[10/02/2025, 19:36:52] [homebridge-unifi-protect] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'DO_NOT_DISTURB.DO NOT DISTURB'). See https://homebridge.io/w/JtMGR for more info.
[10/02/2025, 19:36:52] [homebridge-unifi-protect] TypeError: Cannot read properties of undefined (reading 'DO_NOT_DISTURB.DO NOT DISTURB')
    at On.getHandler (file:///var/lib/homebridge/node_modules/homebridge-unifi-protect/src/devices/protect-doorbell.ts:158:94)
    at On.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2404:32)
    at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)
    at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:177:57)
    at /var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:170:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:16)
    at On.Characteristic.handleGetRequest (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:740:24)
    at On.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3081:22)
    at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)

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.
@infamous-pattern
Copy link

I'm getting the same errors in my HB log as well.

@DaveDNL
Copy link

DaveDNL commented Feb 11, 2025

I am seeing the same errors:
It looks like that the plugin is breaking its neck over the messages you can set-up at the Ubiquity doorbell

[2/11/2025, 7:35:06 PM] [homebridge-unifi-protect] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'LEAVE_PACKAGE_AT_DOOR.LEAVE PACKAGE AT DOOR'). See https://homebridge.io/w/JtMGR for more info.
[2/11/2025, 7:35:06 PM] [homebridge-unifi-protect] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'DO_NOT_DISTURB.DO NOT DISTURB'). See https://homebridge.io/w/JtMGR for more info.
[2/11/2025, 7:35:06 PM] [homebridge-unifi-protect] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'CUSTOM_MESSAGE.PAKKETJE AFGEVEN BIJ BUREN'). See https://homebridge.io/w/JtMGR for more info.

@pickypg
Copy link

pickypg commented Feb 11, 2025

As a note, I would be happy to remove the messages, but the default messages (leave package at door and do not disturb) do not seem to be removable.

Found the configuration where you can remove the messages, and thus these logs:

"Disable.Doorbell.Messages.FromDoorbell.<id>",
"Disable.Doorbell.Messages.<id>",

@DaveDNL
Copy link

DaveDNL commented Feb 12, 2025

As a note, I would be happy to remove the messages, but the default messages (leave package at door and do not disturb) do not seem to be removable.

Found the configuration where you can remove the messages, and thus these logs:

"Disable.Doorbell.Messages.FromDoorbell.<id>",
"Disable.Doorbell.Messages.<id>",

Yep that "fixed" it.

Copy link

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.

@github-actions github-actions bot added the stale label Feb 16, 2025
@infamous-pattern
Copy link

I appreciate that @pickypg has figured out how to remove the messages, but I believe it make sense that the code for the plugin should be corrected so as to not error out on the default messages. Just my 2 cents.

@github-actions github-actions bot removed the stale label Feb 17, 2025
@jvrsgsty
Copy link

Agreed! Also seeing these same errors on my end.

Copy link

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.

@github-actions github-actions bot added the stale label Feb 23, 2025
@carldavis31
Copy link
Author

Is the issue fixed?

@github-actions github-actions bot removed the stale label Feb 23, 2025
@ryangurn
Copy link

I am also experiencing this issue. See logs below.

[2/25/2025, 4:21:10 PM] [homebridge-unifi-protect] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'DO_NOT_DISTURB.DO NOT DISTURB'). See https://homebridge.io/w/JtMGR for more info.

I will be attempting this:

As a note, I would be happy to remove the messages, but the default messages (leave package at door and do not disturb) do not seem to be removable.

Found the configuration where you can remove the messages, and thus these logs:

"Disable.Doorbell.Messages.FromDoorbell.<id>",
"Disable.Doorbell.Messages.<id>",

@DaveDNL or @pickypg does the below screenshot indicate how to disable these logs?

Image

Then save and restart the unifi bridge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants