-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LivestreamNotRunningError Start of livestream for device T8200N0XXXXXXXXX was not also requested by this client #21
Comments
I cannot follow this statement
because the error
To understand exactly what is happening, you have to activate the debug mode of eufy-security-ws. This is activated by setting the DEBUG variable: https://github.com/bropat/eufy-security-ws#docker
eufy-security-ws starts the stream ONLY on request. There is no automatism. I think the problem lies in the client-side implementation: And maybe the rest too. |
I've sent you the log files via Home Assistant forum PM. Please note I am in BST timezone but the logs are reporting GMT time, so I've set my times back 1 hour below. The below two scenarios relate to the two separate log files I sent you. Scenario 1: 8.02pm - the stream works after restarting Home Assistant & Eufy Security dockers and I call Eufy Security: Start Live Stream over P2P within Home Assistant Scenario 2: 8.34pm - the stream works after restarting home assistant & eufy security dockers and I call Eufy Security: Start Live Stream over P2P Also, regarding
This was my mistake, I was calling stop livestream command - not start! |
Hi all, When HA is starting up, integration is checking live stream state and if it is running, it sends a message as Live stream can be started independent of HA, it can be always up and running independent of HA. I see some cases users are recording to NAS, so it is always running but this was an example of RTSP, not sure if it is possible with P2P. So, back to story, if a client (this can be HA or mobile app) initiated a p2p live stream, it can only be stopped by initiator. When you get this error, it means something else started it. @bropat what is the correct way to identify clients triggered start events? Can we inform user on this? |
One thing to add; if you enable |
I'll explain it better with an example. Preface:
Example:
|
I don't have I notice that if I open the Home Assistant app (Android), and call the stop stream service it stops the feed - but only for approx 8-10 seconds before automatically starting it again. I also called the service from my browser (macOS/Firefox) on my laptop while viewing the Android app dashboard (where all my lovelace cards are etc) and it stops it for 8-10 seconds before automatically starting it again. However, on my laptop web browser, if I call the After a few minutes the stream stops and then cannot be triggered again with the |
Updated dependency eufy-security-client, tslog and ws
@conorlap Try version 0.4.2 and let me know. |
Getting the following error from @fuatakgun 's HA integration in the HA logs:
|
I did a second restart of Home Assistant container and it worked when I triggered start livestream, but as soon as I triggered the stop livestream it crashed - it's saying it's
While
|
@conorlap On my side I have tested everything flawlessly. I think we have to wait for @fuatakgun now. |
Describe the bug
I've set-up a script in Home Assistant that calls 'start_livestream' targeted at my Eufy 2k Wired doorbell, however most of the time when I trigger this script I get the below error in bropat/eufy-security-ws logs:
Occasionally it does work but mostly not. The stream always seems to start when the docker (bropat/eufy-security-ws) is restarted - in fact I've noticed that the doorbell seems to automatically start streaming as soon as bropat/eufy-security-ws is started. Because of this, maybe I can't always properly STOP the stream using Home Assistant as the "start stream" command didn't come from Home Assistant...? aka "was not also requested by this client" from the error log.
I've even tried calling 'stop_livestream' , waiting a few seconds and then calling 'start_livestream' but still same issue and no stream starts.
Expected behaviour
I expect the livestream to start when triggered so that I can view the video stream on my Home Assistant dashboard whenever I wish.
Versions:
I also have encountered the below error in the logs when attempting to start livestream:
The text was updated successfully, but these errors were encountered: