JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
953 stars 80 forks source link

Feature Request: Stream on battery operated cameras #507

Open johannijs opened 5 months ago

johannijs commented 5 months ago

Is your feature request related to a problem? Please describe. no streaming possible from battery operated camera's

Describe the solution you'd like i was thinking if it's possible to extract the c420 camera steam through google home. Since I can ask google to play my camera stream on the google-hub, there must be a way to trick tapo that home assistant is a google cast device?

Describe alternatives you've considered none possible

Additional context only tested on C420, hit maybe works on the doorbell?

JurajNyiri commented 3 months ago

This should be possible locally by:

This would most likely kill the battery life so we would need to optimise it and do it on demand.

I do not own battery operated camera so we would need help here.

fedefreue commented 3 months ago

I have a C420 and can look into it. @JurajNyiri, is your thinking that we'd add a new function in the entity that pulls the request stream in a similar way as we pull a recording? I think we'd have to trick the camera to 'exit battery saver mode' and likely limit the request to 30 seconds (or some arbitrary time) so we protect the battery but also ensure the stream starts before we display.

JurajNyiri commented 3 months ago

We will need to pass the stream into ffmpeg binary which would pass it to ha similarly like how is it done currently if stream functionality is disabled. As for the battery maybe we just return stream if user requires it? I am not sure if we can detect that we will need to test that.