bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
169 stars 24 forks source link

[Bug]: Errors after installing 1.6.3 #251

Closed bangcrash closed 11 months ago

bangcrash commented 12 months ago

Version

1.6.3

Node version

unknown

Operating System type

Linux

Operating system version

HAOS 10.4

Describe the bug

After updating to 1.6.3 the following appears in the addon log and it is not possible to connect to the stream:

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2023-08-21 09:30:27.076 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2023-08-21 09:30:30.459 ERROR Device handlePropertyChange error TypeError Cannot read properties of undefined (reading 'value') error stack: • device.ts:626 getRawProperty usr/src/app/node_modules/eufy-security-client/src/http/device.ts:626:41 • device.ts:106 handlePropertyChange usr/src/app/node_modules/eufy-security-client/src/http/device.ts:106:38 • device.ts:1632 handlePropertyChange usr/src/app/node_modules/eufy-security-client/src/http/device.ts:1632:15 • device.ts:2050 handlePropertyChange usr/src/app/node_modules/eufy-security-client/src/http/device.ts:2050:15 • device.ts:79 updateProperty usr/src/app/node_modules/eufy-security-client/src/http/device.ts:79:22 • device.ts:152 updateRawProperty usr/src/app/node_modules/eufy-security-client/src/http/device.ts:152:30 • device.ts:66 usr/src/app/node_modules/eufy-security-client/src/http/device.ts:66:22 • device.ts:65 update usr/src/app/node_modules/eufy-security-client/src/http/device.ts:65:35 • device.ts:39 initializeState usr/src/app/node_modules/eufy-security-client/src/http/device.ts:39:14 { metadata: { key: 2005, name: 'hidden-motionDetectionSensitivity', label: 'HIDDEN Motion Detection Sensitivity', readable: true, writeable: false, type: 'number', min: 1, max: 3 }, oldValue: undefined, newValue: 1 }

To reproduce

Install 1.6.3 Start Addon

Screenshots & Logfiles

No response

Additional context

No response

maurosenlus commented 12 months ago

I also have an error that started just after the 1.6.3 upgrade. In my case is for a eufy lock.

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2023-08-20 23:14:52.675 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2023-08-20 23:14:53.050 ERROR Data decryption error, invalidating session data and reconnecting... Error error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt details: { library: 'digital envelope routines', function: 'EVP_DecryptFinal_ex', reason: 'bad decrypt', code: 'ERR_OSSL_EVP_BAD_DECRYPT' } error stack: • cipher:193 final node:internal/crypto/cipher:193:29 • utils.ts:190 decryptAPIData usr/src/app/node_modules/eufy-security-client/src/http/utils.ts:190:16 • api.ts:1076 decryptAPIData usr/src/app/node_modules/eufy-security-client/src/http/api.ts:1076:47 • api.ts:1274 getPassportProfile usr/src/app/node_modules/eufy-security-client/src/http/api.ts:1274:46 • task_queues:96 processTicksAndRejections node:internal/process/task_queues:96:5 • api.ts:388 login usr/src/app/node_modules/eufy-security-client/src/http/api.ts:388:33 • eufysecurity.ts:758 connect usr/src/app/node_modules/eufy-security-client/src/eufysecurity.ts:758:9 • server.ts:495 start usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:495:9 • server.ts:66 usr/src/app/node_modules/eufy-security-ws/src/bin/server.ts:66:9 2023-08-20 23:14:55.373 INFO MQTT connection successfully established 2023-08-20 23:14:55.443 INFO Successfully registered to MQTT notifications for lock T8520Q1021210C84 2023-08-20 23:14:56.594 INFO Push notification connection successfully established 2023-08-20 23:14:58.359 INFO Connected to station T8520Q1021210C84 on host 10.0.0.50 and port 22749 2023-08-20 23:15:28.520 INFO Initiated closing of connection to station T8520Q1021210C84 for saving battery. 2023-08-20 23:15:28.521 INFO Disconnected from station T8520Q1021210C84 2023-08-21 00:25:03.358 INFO Connected to station T8520Q1021210C84 on host 10.0.0.12 and port 16816 2023-08-21 00:25:33.648 INFO Initiated closing of connection to station T8520Q1021210C84 for saving battery. 2023-08-21 00:25:33.649 INFO Disconnected from station T8520Q1021210C84 2023-08-21 16:00:08.347 INFO Connected to station T8520Q1021210C84 on host 10.0.0.12 and port 24716 2023-08-21 16:00:38.627 INFO Initiated closing of connection to station T8520Q1021210C84 for saving battery. 2023-08-21 16:00:38.628 INFO Disconnected from station T8520Q1021210C84 2023-08-21 20:00:08.333 INFO Connected to station T8520Q1021210C84 on host 10.0.0.12 and port 25555 2023-08-21 20:00:38.480 INFO Initiated closing of connection to station T8520Q1021210C84 for saving battery. 2023-08-21 20:00:38.481 INFO Disconnected from station T8520Q1021210C84 2023-08-21 22:31:47.255 INFO Connected to station T8520Q1021210C84 on host 10.0.0.12 and port 17519 2023-08-21 22:32:35.477 INFO Client disconnected with ip: 127.0.0.1 port: 55236 code: 1000 reason: Normal Closure 2023-08-21 22:33:13.205 INFO Initiated closing of connection to station T8520Q1021210C84 for saving battery. 2023-08-21 22:33:13.206 INFO Disconnected from station T8520Q1021210C84 2023-08-21 22:35:04.700 INFO Connected to station T8520Q1021210C84 on host 10.0.0.12 and port 23472 2023-08-21 22:36:12.197 INFO Initiated closing of connection to station T8520Q1021210C84 for saving battery. 2023-08-21 22:36:12.198 INFO Disconnected from station T8520Q1021210C84 2023-08-21 22:36:32.997 INFO Client disconnected with ip: 127.0.0.1 port: 53194 code: 1006 reason: Abnormal Closure 2023-08-21 23:42:04.203 INFO Connected to station T8520Q1021210C84 on host 10.0.0.12 and port 11199 2023-08-21 23:42:34.404 INFO Initiated closing of connection to station T8520Q1021210C84 for saving battery. 2023-08-21 23:42:34.405 INFO Disconnected from station T8520Q1021210C84

bropat commented 11 months ago

Fixed in version 1.6.4.