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]: T8124 battery powered cam always works only briefly #268

Closed saschachina closed 9 months ago

saschachina commented 10 months ago

Version

1.6.4

Node version

2023.10.3

Operating System type

Linux

Operating system version

11.0

Describe the bug

It seems that the camera disconnects after a certain time, an operation via the Eufy Security integration is then no longer possible, each command is ignored, even buttons can be operated, but jump back immediately.

At first I thought it was because of the Eufy Security Integration and report the error (#943), but according to fuatakgun it seems to be because of the eufy-security-ws addon, see here: https://github.com/fuatakgun/eufy_security/issues/943#issuecomment-1764860114

To reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Screenshots & Logfiles

402f1039_eufy_security_ws_2023-10-17T15-11-22.715Z.log

Possibly this could be interesting:

2023-10-03 15:25:55.271  INFO  Timeout connecting to station T8410P412225162F 
2023-10-03 15:26:14.060  INFO  Initiated closing of connection to station T8124P2022360EAB for saving battery.
2023-10-03 15:26:14.061  INFO  Disconnected from station T8124P2022360EAB 

Additional context

I have a total of 3 Eufy cameras, the two mains-powered cameras work without problems, only the battery-powered T8124 camera not

saschachina commented 9 months ago

After update to 1.7.1 my camera still can’t control via HA

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-11-04 19:56:01.906 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2023-11-04 19:56:03.890 INFO Connected to station T8410P422317041F on host 192.168.1.214 and port 13458 2023-11-04 19:56:15.893 INFO Push notification connection successfully established 2023-11-04 19:56:18.866 ERROR All address lookup tentatives failed. { stationSN: 'T8410P412225162F' } 2023-11-04 19:56:18.877 INFO Timeout connecting to station T8410P412225162F 2023-11-04 19:56:24.060 WARN Tried all hosts, no connection could be established to station T8124P2022360EAB. 2023-11-04 19:56:24.061 INFO Timeout connecting to station T8124P2022360EAB 2023-11-04 19:56:49.424 WARN Tried all hosts, no connection could be established to station T8124P2022360EAB. 2023-11-04 19:56:49.426 INFO Timeout connecting to station T8124P2022360EAB 2023-11-04 19:57:19.451 WARN Tried all hosts, no connection could be established to station T8124P2022360EAB. 2023-11-04 19:57:19.452 INFO Timeout connecting to station T8124P2022360EAB``

bropat commented 9 months ago

@saschachina

Try to configure the following in the eufy-security-ws addon:

stations:
  - serial_number: T8410P422317041F
    ip_address: 192.168.1.214
  - serial_number: T8410P412225162F
    ip_address: 192.168.1.xxx # Set the correct IP address
  - serial_number: T8124P2022360EAB
    ip_address: 192.168.1.177

Also make sure that the devices always have the same IP.

Please let me know if it works.

saschachina commented 9 months ago

@bropat

Thank you very much, I have set up a static IP address for each camera in the router and made the settings in the configuration as you described. It seems to be working.

I am happy that it works now, thank you very much for your help.