Giter Club home page Giter Club logo

Comments (4)

home-assistant avatar home-assistant commented on September 18, 2024 1

Hey there @starkillerOG, mind taking a look at this issue as it has been labeled with an integration (reolink) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of reolink can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign reolink Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


reolink documentation
reolink source
(message by IssueLinks)

from core.

starkillerOG avatar starkillerOG commented on September 18, 2024 1

Since HA 2024.7.0 which was released last weak, this should not be an issue anymore.
The firmware check is now performed in a seperate background task and will not hold up the startup of the Reolink integration or HomeAssistant core anymore.

Please try updating to HA 2024.7.x and see if the startup time has improved.
If not, please let me know!

If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library or purchase Reolink products through this affiliate link.

from core.

starkillerOG avatar starkillerOG commented on September 18, 2024

Please enable debug logging of the reolink integration and then restart the reolink integration, wait 10 minutes and then disable debug logging and post the resulting log.txt file here.
https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

from core.

vturekhanov avatar vturekhanov commented on September 18, 2024

Sorry for the long delay, I was on a business trip.

There is a lot of information in the log file. Some of it is a bit sensitive from my point of view. I analyzed the log myself and found the following lines. I think this is a reason for the long integration setup and the long HA startup time.

As I mentioned before, this camera has Internet access and it is remotely accessible.

2024-07-08 12:20:43.238 DEBUG (MainThread) [reolink_aio.api] Camera1/192.168.18.231:443::send() HTTP Request params =
{'token': '<token>'}

2024-07-08 12:20:43.238 DEBUG (MainThread) [reolink_aio.api] Camera1/192.168.18.231:443::send() HTTP Request body =
[{'cmd': 'GetDevInfo', 'action': 0, 'param': {}}, {'cmd': 'CheckFirmware'}]

...

2024-07-08 12:21:14.520 DEBUG (MainThread) [reolink_aio.api] Host 192.168.18.231:443: connection timeout, trying again.
2024-07-08 12:21:14.520 DEBUG (MainThread) [reolink_aio.api] Camera1/192.168.18.231:443::send() HTTP Request params =
{'token': '<token>'}

2024-07-08 12:21:14.520 DEBUG (MainThread) [reolink_aio.api] Camera1/192.168.18.231:443::send() HTTP Request body =
[{'cmd': 'GetDevInfo', 'action': 0, 'param': {}}, {'cmd': 'CheckFirmware'}]

...

2024-07-08 12:21:45.520 DEBUG (MainThread) [reolink_aio.api] Host 192.168.18.231:443: connection timeout, trying again.
2024-07-08 12:21:45.520 DEBUG (MainThread) [reolink_aio.api] Camera1/192.168.18.231:443::send() HTTP Request params =
{'token': '<token>'}

2024-07-08 12:21:45.520 DEBUG (MainThread) [reolink_aio.api] Camera1/192.168.18.231:443::send() HTTP Request body =
[{'cmd': 'GetDevInfo', 'action': 0, 'param': {}}, {'cmd': 'CheckFirmware'}]

...

2024-07-08 12:22:16.674 DEBUG (MainThread) [homeassistant.components.reolink] Error checking Reolink firmware update at startup from Camera1, possibly internet access is blocked
2024-07-08 12:22:16.675 DEBUG (MainThread) [homeassistant.components.reolink] Finished fetching reolink.Camera1.firmware data in 93.437 seconds (success: True)

from core.

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.