Open gintonic4all opened 2 years ago
Code 1006 just means that the socket was closed abnormally. Why it has to reconnect so often I don't know.
I get these frequently and a couple of times, the devices stopped updating in the UI until I restarted the plugin or HB itself
Im also getting this on a Shelly 2PM.
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.
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
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!
I am having the same problem with the Shelly Pro 2.
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.
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?
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.
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.
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.
Same for me. No old devices in the shelly file from this sugestion, @ulte
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!