Coder Social home page Coder Social logo

Comments (5)

thecode avatar thecode commented on July 20, 2024 1

Thanks @Anto79-ops.

I am trying to see which code paths can cause this problem, in the meanwhile if it happens again, Please enable Debug for Shelly integration, wait for this error, disable debug and attach the log.

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

from core.

Anto79-ops avatar Anto79-ops commented on July 20, 2024 1

@thecode just happened again. Here's a timetime:

The Shellly goes offline at 17:53 (all entities unavilable)
The above error gets logged again at 21:54
I turn on debug 22:02
The above error gets logged again at 00:57 the next day
I turn off debug at 05:31

At thins point I unplug and plug the shell back in. and its working again.

I don't why this happening, but I recently enabled BT proxy for the Shelly for active scanning. I will turn it that off in case it causing stability issues.

[log file removed]

from core.

thecode avatar thecode commented on July 20, 2024 1

Thanks @Anto79-ops your log show that we try to connect to the device while previous connect attempt is still active:

2024-06-06 00:56:37.111 DEBUG (MainThread) [homeassistant.components.shelly] Error connecting to Shelly device shellyplus1-b8d61a87d8b8, error: DeviceConnectionError(DeviceConnectionError(TimeoutError()))
2024-06-06 00:56:37.111 DEBUG (MainThread) [homeassistant.components.shelly] Finished fetching shellyplus1-b8d61a87d8b8 data in 10.843 seconds (success: False)
2024-06-06 00:57:07.501 DEBUG (MainThread) [homeassistant.components.shelly] Finished fetching shellyplus1-b8d61a87d8b8 data in 0.000 seconds (success: False)
2024-06-06 00:57:37.269 DEBUG (MainThread) [homeassistant.components.shelly] Connecting to Shelly Device - shellyplus1-b8d61a87d8b8
2024-06-06 00:57:37.269 DEBUG (MainThread) [aioshelly.rpc_device.device] host 192.168.1.196:80: RPC device initialize
2024-06-06 00:57:40.019 DEBUG (MainThread) [homeassistant.components.shelly] async_reconnect_soon: host: 192.168.1.196, mac: B8D61A87D8B8
2024-06-06 00:57:40.020 DEBUG (MainThread) [homeassistant.components.shelly] Connecting to Shelly Device - shellyplus1-b8d61a87d8b8
2024-06-06 00:57:40.021 DEBUG (MainThread) [aioshelly.rpc_device.device] host 192.168.1.196:80: RPC device initialize
2024-06-06 00:57:40.021 ERROR (MainThread) [homeassistant.components.shelly] Unexpected error fetching shellyplus1-b8d61a87d8b8 data

I am trying to fix this race condition.

from core.

Anto79-ops avatar Anto79-ops commented on July 20, 2024 1

thanks!

from core.

home-assistant avatar home-assistant commented on July 20, 2024

Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration (shelly) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of shelly 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 shelly 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)


shelly documentation
shelly source
(message by IssueLinks)

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.