Closed AndrewKite closed 2 years ago
Did you check this Common Issues pages ?
Hi @AndrewKite
Could you please open an issue in the eufy-security-client repo? The error seems to lie in this repos code.
You can use the eufy-log.log
file from the plugins storage path to give further information there, since this contains the information for this library.
Please also mention the error message:
[27/09/2022, 8:16:51 pm] TypeError: Cannot read properties of null (reading 'forEach')
at Lock.update (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/http/device.ts:65:35)
at Lock.initializeState (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/http/device.ts:43:14)
at Function.initialize (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/http/device.ts:1812:14)
at EufySecurity.handleDevices (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/eufysecurity.ts:481:39)
at HTTPApi.<anonymous> (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/eufysecurity.ts:147:63)
at HTTPApi.emit (node:events:527:28)
at HTTPApi.refreshDeviceData (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/http/api.ts:545:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at HTTPApi.refreshAllData (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/http/api.ts:561:9)
at EufySecurity.refreshCloudData (/var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/eufysecurity.ts:540:9)
Thx!
@thieren Just as I was about to, I noticed in the log file that it states US as my region. Updated that in the config file and all seems to be working now. I find this rather odd since I am located in AU, and have signed up both my personal, and guest eufy credentials as being based in AU.
Hopefully this comment can help others if they have issues with their setup.
Ok, glad it was solved for you.
Odd, since your config json clearly stated AU
as country.
What happened?
Attempting to setup plugin and am unable to get it to initialize successfully. Have tried the latest version, the beta, and 2.0.1. A few cameras, door locks, sensors, are part of my setup. But it appears that it is trying to read a null field conatined in the accessory list retrieved?
Device Type
Station (Supported)
Plugin Version
v2.0.x (Supported)
HomeBridge Version
v1.4.x (Supported)
NodeJS Version
v16 (Supported)
Operating System
Raspbian 10+ (Supported)
Relevant log output
config