pgerke / homebridge-freeathome-local-api

A Homebridge plugin that allows controlling you free@home setup using the local API provided by the System Access Point
MIT License
18 stars 2 forks source link

Frequent random WebSocket disconnects #73

Closed pgerke closed 1 year ago

pgerke commented 1 year ago

Describe The Bug: The plugin frequently disconnects from the SysAP with error 1006 and immediately reconnects.

To Reproduce: Wait.

Expected behavior: No random reconnects without apparent reason.

Logs:

[7/22/2023, 9:43:31 AM] [free@home] Websocket to System Access Point was closed with code 1006: 
[7/22/2023, 9:43:31 AM] [free@home] Attempting to reconnect in 200ms [1/10]
[7/22/2023, 9:43:31 AM] [free@home] Connection closed
[7/22/2023, 9:43:31 AM] [free@home] TLS certificate verification is disabled! This poses a security risk, activating certificate verification is strictly recommended.
[7/22/2023, 9:43:31 AM] [free@home] Connection opened

Plugin Config:

{
    "name": "free@home",
    "host": "192.168.xxx.xxx",
    "user": "xxx",
    "password": "xxx",
    "tlsEnabled": true,
    "disableCertificateVerification": true,
    "verboseErrors": false,
    "experimental": false,
    "ignoredChannels": [
        "ABB6B6161344/ch0011",
        "ABB6B6161344/ch0012",
        "ABB6B6161344/ch0013"
    ],
    "platform": "FreeAtHomeLocalApi"
}

Screenshots: N/A

Environment:

pgerke commented 1 year ago

I spent some time yesterday trying to understand what is happening yesterday:

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

pgerke commented 1 year ago

The reconnects are still there, also with the current firmware version released after the issue was first observed. I don't have any leads as to what is causing the behavior and the trivial workaround is to reconnect when the connection is closed. So I'll close the ticket and will re-open if the issue becomes actionable.

github-actions[bot] commented 11 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.