fuatakgun / eufy_security

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

Cannot stream video of camera in Eufy security doorbell #996

Closed eruisi closed 8 months ago

eruisi commented 8 months ago

Describe the bug

  1. No video stream when click on entity camera.doorbell, just a static picture
  2. Static picture is updated irregularly
  3. RTSP URL not playable in other video player

To reproduce

Click on the camera icon in HA either in floorplan or dashboard, I expect to see live stream from the camera, but I only see a static image that was shot a while ago (no clue how long before). If I click "Start P2P stream", Logbooks start rolling but still no video stream visible for camera.

Expected behavior

I expect to see live stream when I click the icon, and live stream will stop when I close the window. I expect to see static picture on dashboard every time the camera detects human motion.

Additional information

Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields;

Hardware Information;

Additional context

Add any other context about the problem goes here. Mainly, share everything as log files and use screenshots as last resort.

eruisi commented 8 months ago

It turns out that my Host IP Address was somehow set to "true" by mistake. After I set it to "127.0.0.1" everything works perfectly. Thank fuatakgun for debugging the issue with me live time. Really appreciate it!

fuatakgun commented 8 months ago

welcome, happy to see that it is working.

eruisi commented 8 months ago

Please wait. I restarted HA then see static image again.

On Sat, Nov 11, 2023 at 5:26 AM Fuat Akgün @.***> wrote:

Closed #996 https://github.com/fuatakgun/eufy_security/issues/996 as completed.

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/996#event-10932417945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKKCCU4SSFYI4AL7X6H643YD54G7AVCNFSM6AAAAAA7HGHLNWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQHEZTENBRG44TINI . You are receiving this because you authored the thread.Message ID: @.***>

fuatakgun commented 8 months ago

as you need to use start p2p livestream service to see the live image.

eruisi commented 8 months ago

Can I start streaming service automatically when I click the camera and stop the service when I close the camera?

On Sat, Nov 11, 2023 at 5:29 AM Fuat Akgün @.***> wrote:

Reopened #996 https://github.com/fuatakgun/eufy_security/issues/996.

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/996#event-10932422856, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKKCCRZWEZ4NFL2KHGCXRTYD54SHAVCNFSM6AAAAAA7HGHLNWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQHEZTENBSGI4DKNQ . You are receiving this because you authored the thread.Message ID: @.***>

fuatakgun commented 8 months ago

no, I cannot distinguish clicking on camera image vs home assistant is trying to fetch snapshot every 10 seconds and it will start streaming of your camera and drain the battery

eruisi commented 8 months ago

Ok. not 100% prefect but I can live with it. Thank you so much for your time.

eruisi commented 8 months ago

Tried to Start/Stop Stream Service when HA starts, but it doesn't help.

Start Doorbell Stream Service when HA Restart triggered by Home Assistant starting 6:06:08 AM - 9 minutes ago Doorbell Start P2P Stream changed to November 11, 2023 at 6:06 AM triggered by automation Start Doorbell Stream Service when HA Restart triggered by Home Assistant starting 6:06:08 AM - 9 minutes ago Doorbell Stop P2P Stream changed to November 11, 2023 at 6:07 AM triggered by automation Start Doorbell Stream Service when HA Restart triggered by Home Assistant starting 6:07:01 AM - 8 minutes ago

On Sat, Nov 11, 2023 at 5:32 AM Fuat Akgün @.***> wrote:

Closed #996 https://github.com/fuatakgun/eufy_security/issues/996 as completed.

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/996#event-10932427389, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKKCCSNKDBT6KWVEVY7JX3YD5457AVCNFSM6AAAAAA7HGHLNWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQHEZTENBSG4ZTQOI . You are receiving this because you authored the thread.Message ID: @.***>

fuatakgun commented 8 months ago

Logs are needed :-)

eruisi commented 8 months ago

I found the original issues I tried to fix in the ticket still exist. I can see live video only when click the "Start P2P Stream" button in Doorbell Configuration. and I need to click "Stop P2P Stream" after watching video. Is it expected way of handling it? If not, can I request a new appointment to debug?

fuatakgun commented 8 months ago

Please read README.

Lastly, your camera would not start streaming magically by itself, you have to call turn_on or turn_off services of respective camera entities. So, when you first install everything, you would not have any video until you call these functions. Moreover, P2P streaming might stop randomly because of low level issues, you can restart it again with turn_off and turn_on. You can trigger your automation's on camera states (idle, preparing, streaming).

eruisi commented 8 months ago

Thank you for all the help. I remember the eufy add-on + integration works perfectly with doorbell over 1 year ago. (aka, when I clicked entity, I can see stream and when I close stream window, doorbell stops streaming for batter saving) Things went bad when news reported for Eufy leaks data w/o permission. I think Eufy changed it security protocol which make eufy add-on difficult.

For the complexity for so long, I decided to switch to Aqara U100 + G4 doorbell (on sale for Thanksgiving). Stay away from Eufy till it supports HomeKit/Homeassistant better.