bropat / eufy-security-ws

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

[Bug]: eufy-security-ws - drains battery of eufy s340 #326

Closed sanded001 closed 1 month ago

sanded001 commented 5 months ago

Version

1.8.0-2

Node version

1.8.0-2

Operating System type

Other

Operating system version

Virtualbox 6.1

Describe the bug

The drainage of battery on all 3 cameras i got. Same Eufy s340. without eufy-security-ws started, the drainage doesnt accour.

To reproduce

Start the eufy-security-ws within ha and it starts the drain. Seems like others have similar problem on linux etc.

Screenshots & Logfiles

nestedCommandType: undefined, channel: 255, ageing: 499397, maxAgeing: 120000 } 2024-05-03 13:49:14.990 WARN eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol._sendCommand] Command aged out from send queue for station T8170T1023410F49 { commandType: 1350, nestedCommandType: 1306, channel: 0, ageing: 498231, maxAgeing: 120000 } 2024-05-03 13:49:17.001 WARN eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol._sendCommand] Command aged out from send queue for station T8170T1023410F49 { commandType: 1103, nestedCommandType: undefined, channel: 255, ageing: 500242, maxAgeing: 120000 } 2024-05-03 13:49:19.007 WARN eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol._sendCommand] Command aged out from send queue for station T8170T1023410F49 { commandType: 1144, nestedCommandType: undefined, channel: 255, ageing: 501525, maxAgeing: 120000 } 2024-05-03 13:49:21.012 WARN eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol._sendCommand] Command aged out from send queue for station T8170T1023410F49 { commandType: 1144, nestedCommandType: undefined, channel: 255, ageing: 503371, maxAgeing: 120000 } 2024-05-03 13:49:43.971 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T102338165C for saving battery. 2024-05-03 13:49:43.971 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T102338165C 2024-05-03 13:49:44.311 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023412046 for saving battery. 2024-05-03 13:49:44.312 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023412046 2024-05-03 13:50:09.606 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 13:50:54.610 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023410F49 on host 10.0.0.246 and port 27766 2024-05-03 13:50:54.616 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T102338165C on host 10.0.0.238 and port 18597 2024-05-03 13:51:20.551 WARN eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Tried all hosts, no connection could be established to station T8170T1023412046. 2024-05-03 13:51:20.552 INFO eufy-security-ws:eufy-security-client [http] [Station.onTimeout] Timeout connecting to station T8170T1023412046 2024-05-03 13:51:25.795 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T102338165C for saving battery. 2024-05-03 13:51:25.795 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T102338165C 2024-05-03 13:51:26.132 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023410F49 for saving battery. 2024-05-03 13:51:26.133 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 13:51:28.028 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023412046 on host 10.0.0.121 and port 19603 2024-05-03 13:51:29.165 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T102338165C on host 10.0.0.238 and port 14258 2024-05-03 13:51:29.195 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023410F49 on host 10.0.0.246 and port 24791 2024-05-03 13:52:00.007 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023412046 for saving battery. 2024-05-03 13:52:00.007 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023412046 2024-05-03 13:52:00.753 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023410F49 for saving battery. 2024-05-03 13:52:00.754 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 13:52:06.541 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T102338165C for saving battery. 2024-05-03 13:52:06.541 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T102338165C 2024-05-03 13:56:29.764 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T102338165C on host 10.0.0.238 and port 28593 2024-05-03 13:56:33.678 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023412046 on host 10.0.0.121 and port 18375 2024-05-03 13:56:33.814 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023410F49 on host 10.0.0.246 and port 22236 2024-05-03 13:57:04.711 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023412046 for saving battery. 2024-05-03 13:57:04.711 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023412046 2024-05-03 13:57:05.602 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023410F49 for saving battery. 2024-05-03 13:57:05.602 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 13:57:06.253 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T102338165C for saving battery. 2024-05-03 13:57:06.254 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T102338165C 2024-05-03 13:58:40.162 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T102338165C on host 52.47.46.176 and port 12429 2024-05-03 13:58:43.460 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023412046 on host 10.0.0.121 and port 29833 2024-05-03 13:58:44.543 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023410F49 on host 52.47.46.176 and port 12659 2024-05-03 13:59:14.257 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023412046 for saving battery. 2024-05-03 13:59:14.257 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023412046 2024-05-03 13:59:14.368 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T102338165C for saving battery. 2024-05-03 13:59:14.369 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T102338165C 2024-05-03 13:59:36.505 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 13:59:54.027 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023410F49 on host 35.158.59.61 and port 11661 2024-05-03 13:59:59.447 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023412046 on host 10.0.0.121 and port 22686 2024-05-03 14:00:20.334 WARN eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Tried all hosts, no connection could be established to station T8170T102338165C. 2024-05-03 14:00:20.334 INFO eufy-security-ws:eufy-security-client [http] [Station.onTimeout] Timeout connecting to station T8170T102338165C 2024-05-03 14:00:28.499 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T102338165C on host 52.47.46.176 and port 11686 2024-05-03 14:01:25.490 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023412046 for saving battery. 2024-05-03 14:01:25.491 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023412046 2024-05-03 14:01:26.073 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023410F49 for saving battery. 2024-05-03 14:01:26.074 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 14:01:26.970 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T102338165C for saving battery. 2024-05-03 14:01:26.971 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T102338165C 2024-05-03 14:10:58.775 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023410F49 on host 10.0.0.246 and port 13130 2024-05-03 14:11:15.591 ERROR eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] All address lookup tentatives failed. { stationSN: 'T8170T1023412046' } 2024-05-03 14:11:15.592 INFO eufy-security-ws:eufy-security-client [http] [Station.onTimeout] Timeout connecting to station T8170T1023412046 2024-05-03 14:11:20.612 WARN eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Tried all hosts, no connection could be established to station T8170T102338165C. 2024-05-03 14:11:20.613 INFO eufy-security-ws:eufy-security-client [http] [Station.onTimeout] Timeout connecting to station T8170T102338165C 2024-05-03 14:11:28.789 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T102338165C on host 52.47.46.176 and port 14270 2024-05-03 14:11:29.612 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023410F49 for saving battery. 2024-05-03 14:11:29.613 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 14:11:32.434 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023410F49 on host 10.0.0.246 and port 23339 2024-05-03 14:11:43.197 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8170T1023412046 on host 10.0.0.121 and port 14702 2024-05-03 14:12:13.977 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023410F49 for saving battery. 2024-05-03 14:12:13.977 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023410F49 2024-05-03 14:12:15.091 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T1023412046 for saving battery. 2024-05-03 14:12:15.091 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T1023412046 2024-05-03 14:12:17.087 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T8170T102338165C for saving battery. 2024-05-03 14:12:17.088 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T8170T102338165C

Additional context

No response

BuRnColonia commented 4 months ago

Exact the same Problem on ioBroker eusec adapter (dev Version 1.3.0). Posted it here: https://github.com/bropat/ioBroker.eusec/issues/420

sanded001 commented 4 months ago

Any news on the issue?

BuRnColonia commented 4 months ago

Any news on the issue?

Negative ... I had to shut down the system.