bropat / eufy-security-ws

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

[Bug]: Eufy security error on startup after new release #244

Closed EDelsman closed 6 months ago

EDelsman commented 1 year ago

Version

1.6.0

Node version

?

Operating System type

Other

Operating system version

HAOS 10.3

Describe the bug

A persistent notification saying: Error: <Task finished name='Task-5938' coro=<WebSocketClient._process_messages() done, defined at /config/custom_components/eufy_security/eufy_security_api/web_socket_client.py:62> result=None>

To reproduce

Happened on startup of the Home Assistant addon directly after updating to 1.6.0

Screenshots & Logfiles

The logs show: 2023-08-02 08:15:10.788 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:1072 decryptAPIData usr/src/app/node_modules/eufy-security-client/src/http/api.ts:1072:47 • api.ts:1270 getPassportProfile usr/src/app/node_modules/eufy-security-client/src/http/api.ts:1270:46 • task_queues:96 processTicksAndRejections node:internal/process/task_queues:96:5 • api.ts:384 login usr/src/app/node_modules/eufy-security-client/src/http/api.ts:384:33 • eufysecurity.ts:756 connect usr/src/app/node_modules/eufy-security-client/src/eufysecurity.ts:756: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

Additional context

No response

EDelsman commented 1 year ago

For now it seems like a one time thing though, did not reoccur when I restarted the addon or Home Assistant, and things seem fine now, so maybe does not need to get much attention unless it happens a lot.

Marsman83 commented 1 year ago

I too get this notification after installing 1.6.0. This happens everytime I restart the Addon. Unfortunately I have to restart this addon to read the correct battery percentage of my Doorbell.

bajwamar commented 1 year ago

the addon after the update is has made all the devices unresponsive. I have restarted the addon and HA multiple times but this does not resolve the issue

relighted commented 1 year ago

Addon 1.6.0, ha 2023.08.01 Same error after about 24h, HA restart enables and clears it. But issue returns after a day or so.

muckie89 commented 1 year ago

same here... not updating picture entities and producing this error. reloading integration helps, but only a certain amount of time. some kills the integration.

mattheeussen commented 1 year ago

Worked well for one week. Now i get: Error: <Task finished name='Task-2444' coro=<WebSocketClient._process_messages() done, defined at /config/custom_components/eufy_security/eufy_security_api/web_socket_client.py:62> result=None> Also after restart. Version 1.6.2 Dont know what changed

fuatakgun commented 1 year ago

Worked well for one week. Now i get: Error: <Task finished name='Task-2444' coro=<WebSocketClient._process_messages() done, defined at /config/custom_components/eufy_security/eufy_security_api/web_socket_client.py:62> result=None> Also after restart. Version 1.6.2 Dont know what changed

This is related to home assistant not here.

dernorberto commented 9 months ago

I had the same issue and it seems resolved since a recent HA release. I was not able to control the alarm state before, it works again now