Comments (13)
Code 1006 just means that the socket was closed abnormally. Why it has to reconnect so often I don't know.
from homebridge-shelly-ng.
I get these frequently and a couple of times, the devices stopped updating in the UI until I restarted the plugin or HB itself
from homebridge-shelly-ng.
Im also getting this on a Shelly 2PM.
from homebridge-shelly-ng.
Happening to me with a Shelly 1PM Plus, wifi connection is poor but quite stable, but sometimes the device is disconnected from network for some time.
I tried to adjust the reconnect intervals to more frequently but many times the device is connected to the network, after a disconnection, and the plugin is not up to date to current device status (home app shows device is on and the device is really off).
Only solution, for now, is to restart the child bridge.
from homebridge-shelly-ng.
I also see this in the logs occasionally (every 2-4 days, irregular interval). Disconnects, then it reports error because the address is already in use, and after a few minutes it calms down and keeps working. Fortunately no restart necessary.
[14/08/2022, 01:44:18] [Homebridge UI] Creating temporary backup archive at /tmp/homebridge-backup-bjQGQa/homebridge-backup-0E67D863A29B.tar.gz
[14/08/2022, 04:17:13] [Shelly NG] [Terrasse] Device disconnected (code: 1006)
[14/08/2022, 04:17:13] [Shelly NG] [Terrasse] Reconnecting in 5 second(s)
[14/08/2022, 04:17:18] [Shelly NG] [Terrasse] Device connected
[14/08/2022, 04:17:37] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:17:42] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:17:42] [Shelly NG] [Gäste-WC] Device disconnected (code: 1006)
[14/08/2022, 04:17:42] [Shelly NG] [Gäste-WC] Reconnecting in 5 second(s)
[14/08/2022, 04:17:47] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:17:47] [Shelly NG] [Gäste-WC] Device connected
[14/08/2022, 04:17:52] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:17:57] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:02] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:07] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:12] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:17] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:17] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:22] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:22] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:27] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:28] [Shelly NG] [Terrasse] Device disconnected (code: 1006)
[14/08/2022, 04:18:28] [Shelly NG] [Terrasse] Reconnecting in 5 second(s)
[14/08/2022, 04:18:32] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:36] [Shelly NG] [Terrasse] Connection failed (code: 1006)
[14/08/2022, 04:18:36] [Shelly NG] [Terrasse] Reconnecting in 10 second(s)
[14/08/2022, 04:18:37] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:42] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:47] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:49] [Shelly NG] [Terrasse] Connection failed (code: 1006)
[14/08/2022, 04:18:49] [Shelly NG] [Terrasse] Reconnecting in 30 second(s)
[14/08/2022, 04:18:52] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:57] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:57] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:18:57] [Shelly NG] [Gäste-WC] Device disconnected (code: 1006)
[14/08/2022, 04:18:57] [Shelly NG] [Gäste-WC] Reconnecting in 5 second(s)
[14/08/2022, 04:19:02] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:02] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:05] [Shelly NG] [Gäste-WC] Connection failed (code: 1006)
[14/08/2022, 04:19:05] [Shelly NG] [Gäste-WC] Reconnecting in 10 second(s)
[14/08/2022, 04:19:07] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:07] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:12] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:12] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:16] [Shelly NG] [Gäste-WC] Device connected
[14/08/2022, 04:19:17] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:17] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:19] [Shelly NG] [Terrasse] Device connected
[14/08/2022, 04:19:22] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:22] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:27] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:42] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:47] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:47] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:52] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:19:57] [Shelly NG] An error occurred in the mDNS device discovery service: addMembership EADDRINUSE
[14/08/2022, 04:20:26] [Shelly NG] [Gäste-WC] Device disconnected (code: 1006)
[14/08/2022, 04:20:26] [Shelly NG] [Gäste-WC] Reconnecting in 5 second(s)
[14/08/2022, 04:20:29] [Shelly NG] [Terrasse] Device disconnected (code: 1006)
[14/08/2022, 04:20:29] [Shelly NG] [Terrasse] Reconnecting in 5 second(s)
[14/08/2022, 04:20:34] [Shelly NG] [Terrasse] Device connected
[14/08/2022, 04:20:35] [Shelly NG] [Gäste-WC] Device connected
from homebridge-shelly-ng.
I am experiencing the same behaviour as @gintonic4all with this new update. Nothing has changed on my infrastructure (running Eero wifi).
Hi, seems like my Shelly 1 Plus is reconnecting quite often (several times per hour) to the homebridge shelly ng plugin. Its wifi connection (rrsi: -75) is poor but stable, cause it seems reachable during all homebridge reconnection attempts.
[03/05/2022, 22:17:15] [Shelly NG] [shellyplus1-44179394536c] Device disconnected (code: 1006) [03/05/2022, 22:17:15] [Shelly NG] [shellyplus1-44179394536c] Reconnecting in 5 second(s) [03/05/2022, 22:17:21] [Shelly NG] [shellyplus1-44179394536c] Device connected
The log shows "code 1006" - anybody knows what that means? For any other ideas, thanks in advance.
Best regards!
from homebridge-shelly-ng.
I am having the same problem with the Shelly Pro 2.
from homebridge-shelly-ng.
No idea as to why, but I've seen in this in my logs, very infrequent:
[11/19/2022, 9:25:23 AM] [Shelly NG] [shellyplus1pm-a8###xxx##xx] Device disconnected (code: 1006)
[11/19/2022, 9:25:23 AM] [Shelly NG] [shellyplus1pm-a8###xxx##xx] Reconnecting in 5 second(s)
[11/19/2022, 9:25:23 AM] [Shelly NG] [shellyplus1pm-a8###xxx####] Device disconnected (code: 1006)
[11/19/2022, 9:25:23 AM] [Shelly NG] [shellyplus1pm-a8###xxx####] Reconnecting in 5 second(s)
[11/19/2022, 9:25:28 AM] [Shelly NG] [shellyplus1pm-a8###xxx##xx] Device connected
[11/19/2022, 9:25:28 AM] [Shelly NG] [shellyplus1pm-a8###xxx####] Device connected
Properly reconnects after the indicated 5 seconds, then no further issue encountered. This happens to 2 different Shelly devices at the exact same time, with both being installed in the exact same location within very good reach of WiFi access point, and no other devices in Homebridge showing issues around the same time. My network management log indicates no glitches on access points or other networked devices. I cannot draw any particular conclusions from this, nor does it impact the functioning of Homebridge or the Shelly switches... For me it's merely a log entry with no impact, but possibly this information is useful for further troubleshooting.
from homebridge-shelly-ng.
No idea as to why, but I've seen in this in my logs, very infrequent:
does it go away for a while if you restart Homebridge?
from homebridge-shelly-ng.
No idea as to why, but I've seen in this in my logs, very infrequent:
does it go away for a while if you restart Homebridge?
It does go away, but I can't claim it's because of the restart. It was an infrequent occurrence and I have not monitored the logs since, so it also doesn't bother me... the devices work otherwise fine.
from homebridge-shelly-ng.
I have this behavior only when connected via Ethernet! Connection is much more stable with WiFi. Maybe it’s due to the fact that my Homebridge (POC) currently runs with Hyper-V on a Microsoft 2017 Surface Pro connected via WiFi.
from homebridge-shelly-ng.
interesting thing - I happened across this suggestion here regarding another shelly issue, followed the guidance to prune the .shelly-ng.json file by removing old shelly devices I used to have, restarted HB service and I'm not getting the 1006 error for now at least. Who knows but thought it might possibly help others.
from homebridge-shelly-ng.
Same for me. No old devices in the shelly file from this sugestion, @ulte
from homebridge-shelly-ng.
Related Issues (20)
- new Device Shelly Pro Dual Cover HOT 1
- Unexpected device ID (returned: shellypro3-c8f09e892b6c, expected: c8f09e892b6c)
- Shelly Plus1 not discovered
- Shelly Plus 2PM not found
- Temperature / Humidity from Shelly Addon HOT 2
- How to set an i4 input to be a contact sensor
- None of the Plugins support both the Shelly Plus Plug S AND the Shelly 1 PM Mini HOT 16
- Cannot remove shellyplus1
- New device: Shelly Pro Dimmer 2pm HOT 6
- Failed to load cached devices: Unexpected end of JSON input
- Shelly Plus Uni
- Current Consumption negative value warning HOT 2
- Invalid password after some time HOT 1
- Shelly Pro Dimmer 2PM Homebrige Shelly NG HOT 2
- Unable to get Shelly plus2PM as windows cover (and not window)
- Shelly Plus Add-on HOT 1
- Shelly 1 Plus Mini Gen 3 HOT 3
- Shelly i4 DC
- Does the plugin work with UL versions of NG devices?
- A removed shellyplus2pm device is still trying to connect
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 homebridge-shelly-ng.