Open kmil4 opened 6 months ago
For anyone struggling with the S120, I found a workaround to make it stream reliably. It's hacky and I wish it was seamless but at least this will work.
I wrote a script that does this:
Something about toggling the light seems to get the camera feed "unstuck" but the actual stream will not appear until you navigate away from the dashboard page first (or refresh it like my script).
It's not ideal, but it works reliably for me. I went from basically never being able to see the stream and preview images to always having it show. Better than nothing
For anyone struggling with the S120, I found a workaround to make it stream reliably. It's hacky and I wish it was seamless but at least this will work.
I wrote a script that does this:
- Toggle the light switch on the camera
- Wait 3 seconds
- Press "start p2p stream"
- Toggle the same light switch again
- Wait 1 second
- Force the dashboard page to refresh (I use Browser Mod from HACS which includes this service)
Something about toggling the light seems to get the camera feed "unstuck" but the actual stream will not appear until you navigate away from the dashboard page first (or refresh it like my script).
It's not ideal, but it works reliably for me. I went from basically never being able to see the stream and preview images to always having it show. Better than nothing
Hello
could you write your script please for a newbee? :)
Thanks
For anyone struggling with the S120, I found a workaround to make it stream reliably. It's hacky and I wish it was seamless but at least this will work.
I wrote a script that does this:
- Toggle the light switch on the camera
- Wait 3 seconds
- Press "start p2p stream"
- Toggle the same light switch again
- Wait 1 second
- Force the dashboard page to refresh (I use Browser Mod from HACS which includes this service)
Something about toggling the light seems to get the camera feed "unstuck" but the actual stream will not appear until you navigate away from the dashboard page first (or refresh it like my script).
It's not ideal, but it works reliably for me. I went from basically never being able to see the stream and preview images to always having it show. Better than nothing
And the motion sensors in HA are working? Mine doesn't do nothing.
Describe the bug
FYI: I have a Eufy doorbell and multiple pan/tilt cameras that work flawlessly with this integration (Thank you!!). I've been using this integration for quite a while so I have a decent understanding.
The problem is with a new Eufy S120 when attempting to livestream to my HA dashboard. I encounter this error:
Failed to call service camera/turn_on. {'type': 'result', 'success': False, 'messageId': 'device.stop_livestream.c42ea6d5c7f742d0a678cc8f883e539e', 'errorCode': 'device_livestream_not_running
}`Around 20% of the time, I can get the feed to appear without issue from this camera (it's on the list of supported devices). The rest of the time, the stream will throw an error within about 10 seconds after clicking "Start Stream." But even if I'm able to get the stream running, most of the time it will be live for about 30 seconds before suddenly stopping, and throwing the same error above. Once the error appears, the Eufy Add-On hangs, and must be manually restarted or it will chew up CPU.
To reproduce
Assume Eufy Add-On + Integration are installed and configured, with other camera streams already working.
Assuming the root cause is related this bug reproes in two ways: First Repro
camera.garage_camera
and saveSecond Repro
camera.garage_camera
and saveExpected behavior
A livestream of the camera feed should start within 10 seconds of pressing "Start stream"
Additional information
Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields;
Hardware Information:
Camera Model: Eufy S120
Raspberry Pi Model 4B
Live Streaming Protocol (RTSP/P2P): P2P (note: this camera specifically does not give the option for RTSP, but i still get an RTSP link in the device UI, and the stream says "RTC" when it works)
Debug Logs from Home Assistant (https://github.com/fuatakgun/eufy_security/discussions/624) - Without this, I will automatically resolve this issue Attached, with specific error below. The logs keep getting truncated to a short output instead of showing me the whole thing at once. So I tried to capture the logs specifically when the stream fails. I can get additional samples if helpful.
402f1039_eufy_security_ws_2024-05-20T18-56-52.879Z.log
Logs from Eufy Security Add-on (either from Add-ons page of Home Assistant or Docker output): Attached, with specific error below. The logs keep getting truncated to a short output instead of showing me the whole thing at once. So I tried to capture the logs specifically when the stream fails. I can get additional samples if helpful.
Would you share your device with me in case further debugging required? (Yes/No): If necessary
Additional context
Add any other context about the problem goes here. Mainly, share everything as log files and use screenshots as last resort.
A few things I've tried without notable changes in behavior: