fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
943 stars 80 forks source link

Eufy T8214 P2P not working #1211

Closed s-hardt closed 2 days ago

s-hardt commented 2 months ago

Describe the bug

When using the T8214 camera, the P2P stream does not work. It shows preparing, but never streaming. And the status is stuck at preparing for the camera.

To reproduce

Just start the P2P streaming is enough to see the issue.

Expected behavior

A clear and concise description of what you expected to happen.

Additional information

Hardware Information;

cyborcc commented 1 month ago

+1 I am experiencing the same issue. I have tested different versions, both Hass.io and Docker, but encountered the same result: It shows "Preparing" but never starts streaming.

Additional information

LOG: same as @s-hardt } 2024-10-20 10:28:20.758 DEBUG eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol._sendCommand] Sending p2p command... { station: 'xxx', sequence: 22, commandType: 1139, channel: 255, retries: 0, messageStatesSize: 1 } 2024-10-20 10:28:20.774 DEBUG eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol.handleMsg] Received message - DATA CONTROL - Processing sequence 32... { stationSN: 'xxx', remoteAddress: '192.168.178.64', remotePort: 12132, dataType: 'CONTROL', seqNo: 32 } 2024-10-20 10:28:20.780 DEBUG eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol.handleMsg] Received message - DATA CONTROL - Processing sequence 32... { stationSN: 'xxx', remoteAddress: '192.168.178.64', remotePort: 12132, dataType: 'CONTROL', seqNo: 32 } 2024-10-20 10:28:22.061 INFO eufy-security-ws:eufy-security-client [p2p] [Timeout._onTimeout] Initiated closing of connection to station T82145102414163C for saving battery. 2024-10-20 10:28:22.061 INFO eufy-security-ws:eufy-security-client [http] [Station.onDisconnect] Disconnected from station T82145102414163C 2024-10-20 10:28:22.304 DEBUG eufy-security-ws:eufy-security-client [p2p] [P2PClientProtocol.handleMsg] Received message - END { stationSN: 'xxx', remoteAddress: '192.168.178.64', remotePort: 12132 }

Would you share your device with me in case further debugging required? (Yes/No): Yes, I would love to share it with you.

Thank you

supermina999 commented 1 month ago

+1 I'm experiencing the same issue with T8214

Be4fun commented 3 weeks ago

Same for me. The p2p stream stays in preparing. thanks for having a look at it

nicoh88 commented 2 weeks ago

+1

Same here. The p2p stream stays in preparing, can not be stopped or started ...

Thanks for your hard work @fuatakgun

fuatakgun commented 1 week ago

we have checked the issue and it is with add-on.

2024-11-13 20:34:44.213 INFO eufy-security-ws:eufy-security-client
[main] Push notification connection successfully established
2024-11-13 20:35:03.620 INFO eufy-security-ws:eufy-security-client
[p2p] [Timeout._onTimeout] Initiated closing of connection to station
T8214xxx for saving battery.
2024-11-13 20:35:03.621 INFO eufy-security-ws:eufy-security-client
[http] [Station.onDisconnect] Disconnected from station
T8214xxx
2024-11-13 20:35:44.492 INFO eufy-security-ws:eufy-security-client
[http] [Station.onConnect] Connected to station T8214xxx on
host 46.xxxx and port 10274
2024-11-13 20:35:49.868 INFO eufy-security-ws:eufy-security-client
[p2p] [Timeout._onTimeout] Stopping the station stream for the device
T8214xxx, because we haven't received any data for 5 seconds
2024-11-13 20:36:19.922 INFO eufy-security-ws:eufy-security-client
[p2p] [Timeout._onTimeout] Initiated closing of connection to station
T8214xxx for saving battery.
2024-11-13 20:36:19.923 INFO eufy-security-ws:eufy-security-client
cyborcc commented 1 week ago

Thank you, @fuatakgun
I've created a new issue for this: @bropat
https://github.com/bropat/eufy-security-ws/issues/374

If you’re experiencing the same problem, please consider adding a "+1".