Coder Social home page Coder Social logo

Comments (11)

roleoroleo avatar roleoroleo commented on June 8, 2024

I will check it.

from yi-hack_ha_integration.

McGiverGim avatar McGiverGim commented on June 8, 2024

The generic camera integration (https://www.home-assistant.io/integrations/camera/) has a service turn_off that I suppose internally will do it. But I don't know if it is implemented in some of the real camera implementations.

Thanks for looking at it!!

from yi-hack_ha_integration.

roleoroleo avatar roleoroleo commented on June 8, 2024

I can't see errors in the logs.
What is the event causing the error?
When you use a lovelace card?

from yi-hack_ha_integration.

McGiverGim avatar McGiverGim commented on June 8, 2024

Yes, I have one standard lovelace image card (hidden when privacy is on), but I don't need to go to the UI to produce the errors. They appear in the log each few seconds. Maybe it loads the camera in the background? I don't know.
I have too a very basic face recognition added on top of the camera: https://www.home-assistant.io/integrations/dlib_face_detect/ I don't know if it can hurt...

from yi-hack_ha_integration.

roleoroleo avatar roleoroleo commented on June 8, 2024

What's your debug configuration?
Could you try to disable temporarily the face detection feature?

from yi-hack_ha_integration.

McGiverGim avatar McGiverGim commented on June 8, 2024

I don't have any debug configuration, so I have it default.

I tried to disable the face detection and the error continues.

This is what I get just enabling the privacy switch:

2021-09-30 16:46:56 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream:
2021-09-30 16:47:06 ERROR (stream_worker) [libav.tcp] Connection to tcp://192.168.100.20:554?timeout=5000000 failed: Connection refused
2021-09-30 16:47:06 ERROR (stream_worker) [homeassistant.components.stream.worker] Error opening stream rtsp://****:****@192.168.100.20/ch0_0.h264

It's weird that you can't reproduce it :( maybe if others have the same problem can point to something more...

from yi-hack_ha_integration.

roleoroleo avatar roleoroleo commented on June 8, 2024

I think you shouldn't see the error, if you are not "consuming" the stream.
Because ha shouldn't open a connection.
Is there another client application connected to ha?

from yi-hack_ha_integration.

McGiverGim avatar McGiverGim commented on June 8, 2024

No that I'm aware off. It happened to me too when I was using the ONVIF integration and deactivate the camera using the web service.

Do you have enabled the Preload stream? Maybe if enabled the stream is accessed always...

image

from yi-hack_ha_integration.

roleoroleo avatar roleoroleo commented on June 8, 2024

Enabling preload the error appears.
But I don't know ho to fix it. turn_on, turn_off, is_on and is_off are already implemented.
Do you know a cam that doesn't show errors, I could take it as an example.

from yi-hack_ha_integration.

McGiverGim avatar McGiverGim commented on June 8, 2024

No, I don't know of other cameras... Maybe it's a bug on the Home Assistant side?

from yi-hack_ha_integration.

github-actions avatar github-actions commented on June 8, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from yi-hack_ha_integration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.