fuatakgun / eufy_security

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

Stream NEVER Loading #100

Closed johnrobledo closed 2 years ago

johnrobledo commented 2 years ago

Stream takes forever to buffer, even with RTSP. Sometimes it won't load at all, just keep buffering. HELP! Would like to know when the thumbnail updates and if I can manually set the time interval for it to update. If it updates by motion, that is fine. PS. the eufy security addon is showing some error logs

fuatakgun commented 2 years ago

have you tried webrtc? I am also having lots of issues with native stream functionality of HA but webrtc improved it a lot.

fuatakgun commented 2 years ago

moreover, please check issue template and share respective information here. It will make the issue something actionable rather than a riddle.

template: https://github.com/fuatakgun/eufy_security/issues/new?assignees=&labels=&template=bug_report.md&title=

johnrobledo commented 2 years ago

I will try webrtc but am I correct that each camera requires two cards?

On Fri, Oct 29, 2021, 7:11 AM Fuat Akgün @.***> wrote:

moreover, please check issue template and share respective information here. It will make the issue something actionable rather than a riddle.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-954732191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG3HJBJMYFCHBN7HTX3UJKTQBANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johnrobledo commented 2 years ago

Here is the rewritten issue Describe the bug Stream not loading on Lovelace UI To Reproduce Steps to reproduce the behavior:

  1. Go to lovelace
  2. Click on camera card

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

Screenshots If applicable, add screenshots to help explain your problem. Expected stream to start playing, instead just keeps loading.

**Hardware Information about Home Assistant Raspberry Pi 4 running HassOS on an NVME m.2 ssd

**Hardware Information about Cameras

Additional context Have also tried p2p streaming...same problem

johnrobledo commented 2 years ago

Also, how do i set it to automatically stop streaming....it just keeps going and if I manually call service it does nothing

fuatakgun commented 2 years ago

So, you have the ability to see the video now? Please share all updates before moving on.

Stopping stream is done through calling respective services. There is stop rtsp and stop p2p service calls. Or you can use turn on/off camera which picks rtsp/p2p automatically

johnrobledo commented 2 years ago

Yes...it is working really nicely! Thank you for your help! So I will either need to manually stop it or I could create an automation stopping it after 3 minutes correct?

johnrobledo commented 2 years ago

Unfortunately, it will not set the streaming sensor state to false when I call stop camera...the live stream stops as it shows black, but the sensor is still true

On Fri, Oct 29, 2021 at 4:57 PM John Jr < @.***> wrote:

Yes...it is working really nicely! Thank you for your help! So I will either need to manually stop it or I could create an automation stopping it after 3 minutes correct?

johnrobledo commented 2 years ago

And sometimes, it will keep playing

On Fri, Oct 29, 2021 at 6:42 PM John Jr < @.***> wrote:

Unfortunately, it will not set the streaming sensor state to false when I call stop camera...the live stream stops as it shows black, but the sensor is still true

On Fri, Oct 29, 2021 at 4:57 PM John Jr < @.***> wrote:

Yes...it is working really nicely! Thank you for your help! So I will either need to manually stop it or I could create an automation stopping it after 3 minutes correct?

fuatakgun commented 2 years ago

So, before jumping into second problem, i have two installations of HA, one for development purposes for developing these integrations one for production purposes used across home.

Dev box is using 2021.10.6 version, production os 2021.10.3.

Normal streaming without WebRTC works in prod but not in dev. Which ha version you are using?

johnrobledo commented 2 years ago

I'm using the production version.

On Fri, Oct 29, 2021, 11:23 PM Fuat Akgün @.***> wrote:

So, before jumping into second problem, i have two installations of HA, one for development purposes for developing these integrations one for production purposes used across home.

Dev box is using 2021.10.6 version, production os 2021.10.3.

Normal streaming without WebRTC works in prod but not in dev. Which ha version you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-955151074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG7JX6XQRAV3T3ANWILUJOFNZANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johnrobledo commented 2 years ago

And I still can't stop the webrtc camera

On Sat, Oct 30, 2021, 8:20 AM John Jr < @.***> wrote:

I'm using the production version.

On Fri, Oct 29, 2021, 11:23 PM Fuat Akgün @.***> wrote:

So, before jumping into second problem, i have two installations of HA, one for development purposes for developing these integrations one for production purposes used across home.

Dev box is using 2021.10.6 version, production os 2021.10.3.

Normal streaming without WebRTC works in prod but not in dev. Which ha version you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-955151074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG7JX6XQRAV3T3ANWILUJOFNZANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johnrobledo commented 2 years ago

Anyway - Happy Halloween!

On Sun, Oct 31, 2021 at 12:25 PM John Jr < @.***> wrote:

And I still can't stop the webrtc camera

On Sat, Oct 30, 2021, 8:20 AM John Jr < @.***> wrote:

I'm using the production version.

On Fri, Oct 29, 2021, 11:23 PM Fuat Akgün @.***> wrote:

So, before jumping into second problem, i have two installations of HA, one for development purposes for developing these integrations one for production purposes used across home.

Dev box is using 2021.10.6 version, production os 2021.10.3.

Normal streaming without WebRTC works in prod but not in dev. Which ha version you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-955151074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG7JX6XQRAV3T3ANWILUJOFNZANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

leonardpitzu commented 2 years ago

I have the same issue with the latest betas - video stream is not playing at all. Latest working version was 2021.10 but sadly i don't know which revision.

johnrobledo commented 2 years ago

yes....Mr. Akgun was helping me with WebRTC but then i had problems with stoppin the camera too! Try WebRTC

On Mon, Nov 1, 2021 at 1:21 AM leonardpitzu @.***> wrote:

I have the same issue with the latest betas - video stream is not playing at all. Latest working version was 2021.10 but sadly i don't know which revision.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-955994648, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG6V3MLX2PGIJCZQYPDUJY5YTANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johnrobledo commented 2 years ago

Hi ....just wondering if you figured out what my problem was

On Mon, Nov 1, 2021 at 8:10 AM John Jr < @.***> wrote:

yes....Mr. Akgun was helping me with WebRTC but then i had problems with stoppin the camera too! Try WebRTC

On Mon, Nov 1, 2021 at 1:21 AM leonardpitzu @.***> wrote:

I have the same issue with the latest betas - video stream is not playing at all. Latest working version was 2021.10 but sadly i don't know which revision.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-955994648, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG6V3MLX2PGIJCZQYPDUJY5YTANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johnrobledo commented 2 years ago

update...It briefly worked and then continued...i turned of RTSP but it says it is still using RTSP. It also says streaming sensor True when it is off.

fuatakgun commented 2 years ago

this issue seems to be new version of HA, somehow it is failing to show the stream. example issue;

So far, we have a workaround to stick with webrtc, I will keep this in low priority but continue to investigate.

johnrobledo commented 2 years ago

But i am on WebRTC...my problem is that the streaming sensor doesn't change to false when the stream is off

On Fri, Nov 5, 2021 at 4:21 PM Fuat Akgün @.***> wrote:

this issue seems to be new version of HA, somehow it is failing to show the stream. example issue;

- https://community.home-assistant.io/t/cameras-not-showing-live-stream/352820

So far, we have a workaround to stick with webrtc, I will keep this in low priority but continue to investigate.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-962255139, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG4KYLOIRMWUZDB7RDTUKRKFPANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fuatakgun commented 2 years ago

Ok, got it, today, if p2p or rtsp stream forcibly ended by camera/homebase, we are not receiving any event so integration is not aware of it is ended.

There are many users tricking it via calling stop p2p livestream or stop rtsp.

New version, i will introduce a mechanism to catch up this.

If you still have issues on this even after calling stop, please share your cameras following README and let me know their names.

leonardpitzu commented 2 years ago

I have tried as well the webrtc and streaming never works - i can't get a video output in HA. I read that HA 2021.11 introduces some webrtc support - did you look into this? Would this be something that makes life easier?

fuatakgun commented 2 years ago

https://community.home-assistant.io/t/realtime-camera-streaming-without-any-delay-webrtc/258216/343?u=fuatakgun

Please check my previous message about my request

fuatakgun commented 2 years ago

hi all, any shared camera on this issue? As there are many shared ones, it is hard me to keep track names. if you have shared, please put names here, if not, share please

johnrobledo commented 2 years ago

No not yet...it doesnt update the streaming sensor even when I call stop RTSP or P2P

On Sat, Nov 6, 2021 at 8:10 AM Fuat Akgün @.***> wrote:

hi all, any shared camera on this issue? As there are many shared ones, it is hard me to keep track names. if you have shared, please put names here, if not, share please

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-962457298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKG3XKQWYX5G3FDGR3H3UKUZM5ANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fuatakgun commented 2 years ago

if you want to get help, you need to read through messages. I have been asking if you want to share your camera or if you shared it already, name of it. do not just answer part of the message and dismiss the rest

fuatakgun commented 2 years ago

I am merging this issue with this: https://github.com/fuatakgun/eufy_security/issues/100 if you think you have a separate issue, follow README and create an issue with shared camera info.

johnrobledo commented 2 years ago

Of course! I ma so sorry for disregarding them...I will share now....they are 3 eufy cam 2s from john

On Sun, Nov 7, 2021, 4:52 AM Fuat Akgün @.***> wrote:

if you want to get help, you need to read through messages. I have been asking if you want to share your camera or if you shared shared, name of it. do not just answer part of the message and dismiss the rest

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-962596642, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKGYGB4OUI53KHS75T23UKZR6XANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johnrobledo commented 2 years ago

I will share them in a couple hours and let you know when they are shared

On Sun, Nov 7, 2021, 7:54 AM John Jr < @.***> wrote:

Of course! I ma so sorry for disregarding them...I will share now....they are 3 eufy cam 2s from john

On Sun, Nov 7, 2021, 4:52 AM Fuat Akgün @.***> wrote:

if you want to get help, you need to read through messages. I have been asking if you want to share your camera or if you shared shared, name of it. do not just answer part of the message and dismiss the rest

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/100#issuecomment-962596642, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSMKGYGB4OUI53KHS75T23UKZR6XANCNFSM5G2URLXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.