dgreif / homebridge-mylink

Somfy myLink plugin for Homebridge.
MIT License
8 stars 7 forks source link

ETIMEDOUT Error on First Move of Awning Each Morning #23

Closed mwhite2003 closed 3 years ago

mwhite2003 commented 3 years ago

We have just started using the plug-in with our exterior Somfy awning, and generally have no issues. However, after adding some triggered automation the other day, we have started seeing that Homebridge crashes the first time automation triggers the awning to move in the morning. This is the third day in a row where we have seen this same error. Once Homebridge reboots, any new automation triggers or manual adjustments throughout the day call for the awning to move with no issues.

If it helps, I have the Somfy myLink device and the Raspbery Pi running Homebridge each assigned with static IP addresses through my router. I’ve run the normal update scripts and am running Homebridge v1.2.5

[05/02/2021, 08:38:35] [Somfy myLink] Setting position of target CC1103C0.1 (Awning) from 0% to 100%.
[05/02/2021, 08:38:35] Error: write ETIMEDOUT
    at afterWriteDispatched (internal/stream_base_commons.js:156:25)
    at writeGeneric (internal/stream_base_commons.js:147:3)
    at Socket._writeGeneric (net.js:785:11)
    at Socket._write (net.js:797:8)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at Socket.Writable.write (internal/streams/writable.js:303:10)
    at Socket.wrapper.<computed> [as write] (/usr/local/lib/node_modules/homebridge-mylink/node_modules/socket-pool/lib/utils.js:12:36)
    at /usr/local/lib/node_modules/homebridge-mylink/node_modules/somfy-synergy/src/SomfySynergy.js:33:18
    at new Promise (<anonymous>)
    at /usr/local/lib/node_modules/homebridge-mylink/node_modules/somfy-synergy/src/SomfySynergy.js:31:9
[05/02/2021, 08:38:35] Got SIGTERM, shutting down Homebridge...
[05/02/2021, 08:38:35] [Somfy myLink] Encountered an error setting target position of target CC1103C0.1 (Awning): write ETIMEDOUT
[05/02/2021, 08:38:40] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[05/02/2021, 08:38:45] [HB Supervisor] Restarting Homebridge...
pradeepmouli commented 3 years ago

I’ve had the same issue as well - the myLink may be defective....

Sent from my iPhone

On Feb 5, 2021, at 12:11 PM, mwhite2003 notifications@github.com wrote:

 We have just started using the plug-in with our exterior Somfy awning, and generally have no issues. However, after adding some triggered automation the other day, we have started seeing that Homebridge crashes the first time automation triggers the awning to move in the morning. This is the third day in a row where we have seen this same error. Once Homebridge reboots, any new automation triggers or manual adjustments throughout the day call for the awning to move with no issues.

If it helps, I have the Somfy myLink device and the Raspbery Pi running Homebridge each assigned with static IP addresses through my router. I’ve run the normal update scripts and am running Homebridge v1.2.5

[05/02/2021, 08:38:35] [Somfy myLink] Setting position of target CC1103C0.1 (Awning) from 0% to 100%. [05/02/2021, 08:38:35] Error: write ETIMEDOUT at afterWriteDispatched (internal/stream_base_commons.js:156:25) at writeGeneric (internal/stream_base_commons.js:147:3) at Socket._writeGeneric (net.js:785:11) at Socket._write (net.js:797:8) at writeOrBuffer (internal/streams/writable.js:358:12) at Socket.Writable.write (internal/streams/writable.js:303:10) at Socket.wrapper. [as write] (/usr/local/lib/node_modules/homebridge-mylink/node_modules/socket-pool/lib/utils.js:12:36) at /usr/local/lib/node_modules/homebridge-mylink/node_modules/somfy-synergy/src/SomfySynergy.js:33:18 at new Promise () at /usr/local/lib/node_modules/homebridge-mylink/node_modules/somfy-synergy/src/SomfySynergy.js:31:9 [05/02/2021, 08:38:35] Got SIGTERM, shutting down Homebridge... [05/02/2021, 08:38:35] [Somfy myLink] Encountered an error setting target position of target CC1103C0.1 (Awning): write ETIMEDOUT [05/02/2021, 08:38:40] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [05/02/2021, 08:38:45] [HB Supervisor] Restarting Homebridge... — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

dgreif commented 3 years ago

Sorry for the long wait, but I finally have an update out that should hopefully resolve a lot of the connectivity issues. I'll be continuing to tweak it in the coming weeks, but v2.0.0 should hopefully be more reliable. It also does automatic discovery of channels! Note, there are some breaking changes (see the CHANGELOG). Let me know how it works for you!