home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.81k stars 30.9k forks source link

Elk M1G SSL Error after updating M1XEP to v 2.0.46 #52188

Closed ls6620 closed 3 years ago

ls6620 commented 3 years ago

The problem

HomeAssistant is unable to connect to M1G using secure port after upgrading M1XEP to v2.0.46. Apparently this version is using TLS and the elkm1_lib is using an older version of SSL. Error Message: Could not connect to ElkM1 ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1125))

What is version of Home Assistant Core has the issue?

core-2021.6.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Elk M1G

Link to integration documentation on our website

https://www.home-assistant.io/integrations/elkm1

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-06-25 12:49:42 WARNING (MainThread) [elkm1_lib.elk] Could not connect to ElkM1 ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1125)). Retrying in 1 seconds
2021-06-25 12:49:43 WARNING (MainThread) [elkm1_lib.elk] Could not connect to ElkM1 ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1125)). Retrying in 2 seconds
2021-06-25 12:49:45 WARNING (MainThread) [elkm1_lib.elk] Could not connect to ElkM1 ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1125)). Retrying in 4 seconds
2021-06-25 12:49:50 WARNING (MainThread) [elkm1_lib.elk] Could not connect to ElkM1 ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1125)). Retrying in 8 seconds
2021-06-25 12:49:58 WARNING (MainThread) [elkm1_lib.elk] Could not connect to ElkM1 ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1125)). Retrying in 16 seconds
2021-06-25 12:50:14 WARNING (MainThread) [elkm1_lib.elk] Could not connect to ElkM1 ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1125)). Retrying in 32 seconds
2021-06-25 12:50:17 ERROR (MainThread) [homeassistant.components.elkm1] Timed out after 35 seconds while trying to sync with ElkM1 at elks://192.168.1.81

Additional information

On March 8, 2021, Elk Products released a new firmware update that requires changes to how Applications are configured.

In this M1-XEP firmware update, version 2.0.46, Elk has made improvements to the encrypted connection security. Specifically, this update has added support for the “TLS 1.2” protocol and removed the older and weaker legacy protocols.

probot-home-assistant[bot] commented 3 years ago

elkm1 documentation elkm1 source (message by IssueLinks)

bdraco commented 3 years ago

Can you open an issue in the package repo for elkm1

This is the line that needs to be adjusted https://github.com/gwww/elkm1/blob/0328b150e3e5f8618ca1cf020ea0b526f9f34256/elkm1_lib/util.py#L21