Brandawg93/homebridge-ezviz

EZVIZ 8 Channel Husky Air 1080p + NVR EZWireless Kit

Faaiez opened this issue · 1 comments

Describe the bug
I get an error where homebridge keeps rebooting after installing and configuring the plugin.
The only config I have is my username and password for EZWIZ

Debug Output
[2/18/2022, 1:05:27 PM] [EZVIZ] Error fetching cameras: 401
[2/18/2022, 1:05:27 PM] [EZVIZ] Updating info for Front Left Audio
[2/18/2022, 1:05:27 PM] [EZVIZ] Error fetching cameras: 401
[2/18/2022, 1:05:27 PM] [EZVIZ] Updating info for Front Right Sleep Mode
[2/18/2022, 1:05:27 PM] [EZVIZ] Error fetching cameras: 401
[2/18/2022, 1:05:27 PM] [EZVIZ] Updating info for Tennis Court Sleep Mode
[2/18/2022, 1:05:27 PM] [EZVIZ] Error fetching cameras: 401
[2/18/2022, 1:05:27 PM] [EZVIZ] Updating info for Front Right Audio
[2/18/2022, 1:05:27 PM] [EZVIZ] Error fetching cameras: 401
[2/18/2022, 1:05:27 PM] [EZVIZ] Updating info for Tennis Court Audio
[2/18/2022, 1:05:27 PM] [EZVIZ] Error fetching cameras: 401
[2/18/2022, 1:05:27 PM] [EZVIZ] Updating info for Entrance Sleep Mode
[2/18/2022, 1:05:27 PM] [EZVIZ] Error fetching cameras: 401
[2/18/2022, 1:05:27 PM] [EZVIZ] Updating info for Front Left Sleep Mode
[2/18/2022, 1:05:28 PM] [EZVIZ] New camera found: X5C(C82319284)
[2/18/2022, 1:05:28 PM] [EZVIZ] Configuring accessory X5CC82319284
[2/18/2022, 1:05:28 PM] TypeError: Cannot read properties of undefined (reading 'find')
at EZVIZPlatform.configureAccessory (/usr/local/lib/node_modules/homebridge-ezviz/src/index.ts:88:44)
at /usr/local/lib/node_modules/homebridge-ezviz/src/index.ts:134:14
at Array.forEach ()
at EZVIZPlatform. (/usr/local/lib/node_modules/homebridge-ezviz/src/index.ts:114:13)
at Generator.next ()
at /usr/local/lib/node_modules/homebridge-ezviz/dist/index.js:8:71
at new Promise ()
at __awaiter (/usr/local/lib/node_modules/homebridge-ezviz/dist/index.js:4:12)
at EZVIZPlatform.addCameras (/usr/local/lib/node_modules/homebridge-ezviz/dist/index.js:86:16)
at EZVIZPlatform. (/usr/local/lib/node_modules/homebridge-ezviz/src/index.ts:171:18)
[2/18/2022, 1:05:28 PM] Got SIGTERM, shutting down Homebridge...

To Reproduce

Steps to reproduce the behavior:

  1. As explained above

Expected behavior

Please answer these questions before submitting this issue:

On what device are you running homebridge:  Mac Mini with MacOS 10.11.6
On what iOS version are you having issues: 
What camera types are having issues: Husky Air
Does this issue occur consistently or randomly: consistently
If applicable, what was the last version that worked properly: New install

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 3 days