Are your motion and person sensors working now?
Hi
For the webrtc function, i had to add it 2x times, otherwise it said custom element doesnt exist, the github page didnt mention to add it 2x:
- through hacs integration
- through HA integration
Maybe add this to the readme?
Iâm gettings strange results with my 2 cams.
Sometimes i have video (very fast)
Sometimes errors:
Also the video isnt stopping , should this be added somewhere?
You click to start itâŠ
But then when does it stopâŠ
Still some progress to be made i guess
all contributions and proposals are welcome
It is still autoplaying , without doing anything hovering over it plays the rtsp stream
Tried to stop the stream with the service stop livestream over rtps
It keeps playing
In the conditional cards, you use camera turn on
IS that the right commando? Or should we use start stream?
Did you follow readme to disable auto play?
Yes i did
It is disabled
Think for now, i read your readme like 100 times lol
If your camera supports only p2p, camera turn on and start p2p livestream are identical. In my case, my camera supports both options, turn on refers to rtsp and i need to explicitly call start p2p livestream, if i need.
Iâm looking to see what works now⊠cause i get the idea, it doesnt respond to commands, like stopping.
Also it doesnt auto stop , so to be ready to start again, it needs to be stopped first⊠maybe add this to readme too?
But i should get it to work firstâŠ
I have 2 cams for now (would like more, but im holding off the boat, if i go further with eufy or not)
So i have the doorbell (only does p2p) but i use the rtsp addon
and a cam that does support rtsp
Edit: now my doorbell isnt responding to the turn on command⊠when clicking the image (it is idle)
Very strange
regarding to your edit
, did you get latest codebase?
What do you mean?
Regarding to your comments inside edit
section, do you have latest codebase, there were some changes from today.
Yes i updated 2/3 times today
Just now tooâŠ
No difference
Looking at the rtsp addon, it shows timeouts for the doorbell
Even eufy security log has errors
It says its streaming already but the sensor streaming says false lol
In that case, there is nothing to do other than restarting add on. Integration heavily relies on add on actions and responses.
I read up some and found that we donât get the motion notifications if the device is not sending push notifications, so that explains why Iâm not getting any⊠We only have the notifications on during the night or when weâre away and so far we havenât gotten any unexpected visitors. Itâs a shame that limitation is there though.
I think Iâve finally got this all working how Iâve wanted since I got my Eufy 2k Wired doorbell
I have always wanted a live video stream from my doorbell camera through Home Assistant when I want to quickly check my front door (in case I hear a noise etc).
My configuration is as follows:
-
I have a conditional card that shows the âlast eventâ image (aka the image from the last motion detection or doorbell press) when the camera state is âIdleâ (not streaming)
-
On this card, Iâve set the tap action to call service which calls a script Iâve created called âscript.eufy_doorbell_start_livestreamâ
-
The script calls âeufy_security.start_livestreamâ targeting my doorbell device/entity and also âbrowser_mod.window_reloadâ (Browser Mod is a separate integration installed via HACS). The window reload triggers a full refresh of the page which for me results in the video stream appearing quicker.
-
When the script is triggered, the âlast eventâ conditional card from Step 1 disappears and in itâs place appears a separate conditional card which I have set to only appear when the camera state is âStreaming - p2pâ
-
This conditional card is a WebRTC video stream card (WebRTC is a separate integration installed via HACS) which allows for low latency live stream from the camera (only approx 2 seconds delay)
-
Below this card Iâve also setup another conditional card which only appears when the camera state is âStreaming - p2pâ. This is a button card which calls another script âscript: Eufy camera OFFâ.
-
This script calls âeufy_security.stop_livestreamâ targeting my doorbell device/entity and also calls service âhomeassistant.reload_config_entryâ targetting my doorbell device/entity which cleanly reloads the entire eufy integration, which Iâve found neccessary to get everything working perfectly. Once the âEufy camera OFFâ script is triggered we end up cleanly back at Step 1 with the âlast eventâ image which is clickable to restart the live stream.
-
Additional to all this I have an automation âEufy - Stop doorbell stream after 2.50 minâ which has a trigger type: state, which triggers when the doorbell changes state from âIdleâ to âStreaming - p2pâ. This then triggers the action of delay for 2.50 mins after which it calls the âScripts: Eufy camera OFFâ to stop livestream and reload the integration automatically incase the button on the UI wasnât triggered.
Thanks for this, you were my inspiration point for webrtc and conditional card usage. https://github.com/fuatakgun/eufy_security/#63-optional---webrtc
Steps 6-7-8 should not be required anymore because integration is automatically calling stop_livestream
, in case there are no new bytes are coming. Just try it out yourself and please share your experience.
Awesome, could you please share code for this? Mostly lovelace but also perhaps scripts + automation
Yeah the conditional cards/WebRTC points are the same as explained before but thought Iâd share the entire setup for other people who are interested, just so itâs all in one place
I have had issues with the stream breaking (not being able to trigger the video stream a second/third/fourth time) and Iâve found that the service âhomeassistant.reload_config_entryâ targeting my doorbell device/entity works to resolve that very quickly so thought it would be useful to share!
Interesting to know that the integration is automatically calling stop_livestream
when no new bytes are received though!
here is code pointer: https://github.com/fuatakgun/eufy_security/blob/9d2b8368189b210f6341f5b1e9ba27e5b9547a86/custom_components/eufy_security/camera.py#L159
in case, we do not receive bytes after 10 iteration, each iteration waits for 0.25 seconds, it calls `stop_livestreamâ
Regarding to sharing your examples, if you can create a discussion in github, I can update the README
with a link to it.