Comments (5)
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.
@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.
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.
thanks!
from core.
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)
- Google Generative AI returns "400 bad request" on system control prompt HOT 17
- Rain Bird RC2 controller doesn't work after migration to Rain Bird 2.0 app and firmware update 4.36.0 HOT 4
- Detected blocking call to glob with args ('/usr/lib/libturbojpeg.so',) inside the event loop by integration 'camera' HOT 5
- Netatmo public weather integration fails to set up HOT 1
- Detected blocking call to open inside the event loop by integration 'webostv' HOT 3
- Switchbot Lock Pro recognize, functional but status is always UNKNOWN HOT 1
- GREE CLİMATE INTEGRATION PLEASE HOT 1
- Huawei LTE component with E5172As-22 HOT 1
- Calendar trigger broken HOT 3
- Abode Lock does not show up in HA HOT 1
- ThermoPro Integration reporting incorrect Battery levels HOT 1
- NWS Weather: Get forecasts results in unknown error HOT 3
- add a rest api to query username HOT 1
- Still seeing gcal event type enum error, fixed in #114085 HOT 2
- The LLM model causes a 400 error in Google AI and cannot query more logs. It may be that there is an error in the model. It can run normally below 7.0. HOT 2
- Template Trigger and expand() group HOT 2
- Generic camera problem with SVG format from meteogram HOT 1
- Missing timezone information in forecasts from SMHI integration HOT 1
- Shelly Motion 1 and Shelly Motion 2 devices will not recover HOT 2
- Waze travel time configuration not used correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.