Skip to content
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

Feature Request: Stream on battery operated cameras #507

Open
johannijs opened this issue Jan 23, 2024 · 3 comments
Open

Feature Request: Stream on battery operated cameras #507

johannijs opened this issue Jan 23, 2024 · 3 comments
Assignees
Labels
Enhancement New feature or request Help wanted Extra attention is needed

Comments

@johannijs
Copy link

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 JurajNyiri changed the title Feature Request: C420 stream with google home Feature Request: Stream on battery operated cameras Mar 2, 2024
@JurajNyiri JurajNyiri added Enhancement New feature or request Help wanted Extra attention is needed labels Mar 2, 2024
@JurajNyiri
Copy link
Owner

This should be possible locally by:

  • using the same functionality as we use for downloading recordings but request stream instead
  • also since it is a child device, some more changes to request child device stream instead of main hub device
  • expose the stream to ha via ffmpeg

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
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants