Create this card for the âSTOP CAMERAâ button (not required but can be useful to have ability to stop the livestream via UI):
type: conditional
conditions:
- entity: binary_sensor.doorbell_streaming_sensor
state: 'True'
card:
type: button
tap_action:
action: call-service
service: script.THE_SCRIPT-ID-FOR-Eufy camera OFF script from step 4
service_data: {}
target: {}
icon: mdi:doorbell
show_state: false
show_name: true
icon_height: 50px
name: STOP CAMERA
Ps. If there are any issues I usually find restarting the bropat docker container fixes things.
Also, you may not require to call the `stop_livestreamâ service as @anon63427907 has pointed out that the integration automatically calls this when no incoming bytes received. However I do find that I need the service âhomeassistant.reload_config_entryâ to get everything working perfectly.
Hi
Iâm experiencing the same things as you do !
I also need to stop it manually
i also use browser_mod
So we probably have almost 100% the same situation
Are you willing to share ALL your scripts and dashboard setup (conditional carsds?)
However still have a question concerning step 6 and 7
Why you make separate script for 6, why dont you include it in the script from step 3 ?
After x time (or maybe after 2.5 min so step 8 isnt necessary) , or maybe after you close the popup from browser_mod ?
Lovely ! thx
Will try it asap.
step 3 & 4 you target the entity_id AND the device_id
No need for that, you can get rid of the device_id i think (less code lines)
@conorlap
I will probably adjust your scripts to be able to be used by rtsp cameras too.
So the scripts will have a choice (if p2p doorbell then do this) or choose rtsp cam then do this
So we dont need 4 scripts and 2 automations but only 2 and 1
Amazing, thanks!
My doorbell has a state in the format of âIdle - 71 %â though. I guess maybe new with an update? Might need to template, or maybe make âstate notâ.
Do change the name of the cams , here i used âdeurbelâ and âtuinâ , but change it to your names @conorlap why dont you make use of the binary streaming sensor in your scripts and dashboard? its new and very useful ! Will adjust mine
Iâve edited my code above to use the new binary streaming sensor
Regarding using device ID also, I just found it worked in my testing so I added it and the entity.
@skank I didnât add RTSP as my doorbell doesnât support this but useful info for others!
Why you make separate script for 6, why dont you include it in the script from step 3 ?
After x time (or maybe after 2.5 min so step 8 isnt necessary) , or maybe after you close the popup from browser_mod ?
@skank Step 6 calls the script from Step 3. I chose to have the automation seperate for more granular control / to test if I can turn it off if I donât need it etc. Not sure which popup youâre talking about, I donât get any pop ups from browser_mod.
Ok clear.
The popup is the more info box
Actually in my main dashboard i have a button âsecurityâ
When i tap it, a popup comes up with all my cameras and motion detecters.
So there i have the conditional cardsâŠ
You can do pretty amazing stuff with browser mod !
But thats too offtopic here
Pm me if u want to know more
Iâm still tweaking the scripts and conditional cards here
Edit: @conorlap, iâm seeing strange things with the browser mod reload and config entry reload, so iâm withdrawing that from your script, then theres nothing left to start the script, so i can use the config from fuatakgun to start.
To stop i do have a script and buttonâŠ
Still tweaking, coming back here with final resultsâŠ
Whats the purpos of the msr: true and background false addition to the webrtc cam? When i look at github, the background is false always so no need to add, the mse i dont quite understand
MSE is specific technology to enable remote streaming, in case your router fails to stream webrtc remotely and it is used as fallback mechanism when webrtc would fail. more here: https://github.com/AlexxIT/WebRTC#webrtc-external-access
Anyway, retesting stuff
Still i get sometimes eufy is not doing what i ask
I was trying to STOP the rtsp camera
with the command eufy_security.stop_rtsp
But to be sure, i stopped eufy addon and rtsp addon
restarte both
then trying to stop it, but still it keeps playing
when i look at binary sensor streaming it says TRUE
and i cant stop it using the command
(not always like that)
Yeah itâs actually probably best to set mse to false. For me it caused delay when mse was left enabled because it would initially load the live stream via mse and then tranfer to WebRTC after a second. Causing glitches/delay for the first 1-3 seconds of the livestream starting.
Iâve edited my code above.
Iâm experiencing this now too, I thought this issue was gone because everything worked great earlier today but now itâs auto restarting the livestream sometimes and I cannot stop using the command.
Yeah thatswhy i didnt add any extra eufy cams and still doubting to throw it all overboard including doorbell and even going to google cams and doorbell or smth
Eufy should pay fuatakgun and bropat for all their effort into this thoughâŠ
But still it remains unstable, and im beginning to think, its not cause of fuatakgun and bropat their programming skills, but it might be that the cause there is eufy itself