oischinger / eufyp2pstream

A small project that provides a Video/Audio Stream from Eufy cameras that don't directly support RTSP
Apache License 2.0
30 stars 10 forks source link

Feedback and Query Regarding EufyP2PStream Integration with Frigate #12

Open mercuryin opened 5 months ago

mercuryin commented 5 months ago

Hi [Developer’s Name or Username],

Firstly, I want to extend my thanks for developing the eufyp2p stream addon. It works perfectly with my Eufy s100 camera, and I truly appreciate your efforts in creating this tool. However, I’m encountering an issue where the Eufy Security addon frequently crashes, leading to unreliable stream availability for integration with Frigate.

Since there hasn’t been a response from the Eufy Security plugin developer for a few months, I’ve set up a Home Assistant automation to restart the addon whenever it’s detected as null or unavailable. This workaround somewhat mitigates the issue, but it’s not an ideal solution. Using your addon I got 1 stream with GotoRTC but my goal is to adapt this setup to provide two streams to Frigate: one of high quality and another of lower quality to ease CPU load, similar to how cameras supporting RTSP offer separate URLs for different stream qualities. However, with the current setup, I’m unsure how to properly configure this.

Could you provide guidance on how I might adjust the command to generate two distinct streams for Frigate, or is there another approach you would recommend for managing CPU load more effectively with this type of integration?

Thank you for your time and any assistance you can provide.

artur-braga commented 2 months ago

Hi @oischinger, I have the same issue that the eufyp2pstream somehow breaks the eufy add-on. Also interestingly enough, I found that they already know about this problem in their addon/integration as their write in their instruction: _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 technical issues, you can restart it again with turn_off and turnon. You can trigger your automation's on camera states (idle, preparing, streaming). Source: https://github.com/fuatakgun/eufy_security?tab=readme-ov-file#how-is-this-working Maybe this helps narrow down the problem.