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.8k stars 30.9k forks source link

ElkM1 insecure connection not connecting after upgrade to 2023.6.3 #95200

Closed caseyd closed 1 year ago

caseyd commented 1 year ago

The problem

ElkM1 not connecting after upgrade to 2023.6.3 OS 10.3 Core 23.6.3 Insecure connection fails in previously working system.

After removal of the integration and a full restart, HA reports discovering the M1. I then walk through the initial connection / configuration step, clicking on the "non-secure" option. It fails to login.

ElkM1 insecure connection is live - the following is from a node.js tool feeding my MQTT setup: huh = 08RP010035 EthernetCheck = 25/06/23 09:06:49 Regular Time ArmStatus = Disarmed AlarmMemory = 00000000 AllZoneState = TBD 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 KeypadTemp = Dev: 01Temp: 78

HA Log: 023-06-25 08:45:02.409 DEBUG (MainThread) [homeassistant.components.elkm1] Setting up elkm1 elk://192.168.0.19 2023-06-25 08:45:02.422 DEBUG (MainThread) [homeassistant.components.elkm1] Waiting for login event for 20 seconds 2023-06-25 08:45:02.422 INFO (MainThread) [elkm1_lib.connection] Connecting to ElkM1 at elk://192.168.0.19 2023-06-25 08:45:02.431 DEBUG (MainThread) [elkm1_lib.elk] Synchronizing panel... 2023-06-25 08:45:02.433 DEBUG (MainThread) [elkm1_lib.connection] write_data '06vn0056' 2023-06-25 08:45:02.450 DEBUG (MainThread) [elkm1_lib.connection] got_data '08RP010035' 2023-06-25 08:45:02.455 DEBUG (MainThread) [elkm1_lib.connection] got_data '08RP010035' 2023-06-25 08:45:20.517 DEBUG (MainThread) [elkm1_lib.connection] got_data '16XK19450812506231100066' 2023-06-25 08:45:22.424 DEBUG (MainThread) [homeassistant.components.elkm1] Timed out waiting for login event 2023-06-25 08:45:22.424 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://192.168.0.19 disconnecting

I have have tried defining the insecure port in the YALM as part of the elk://x.x.x.x directive. I have removed elk integration YAML and reinstalled the itegration a couple of times. This was working yesterday ( and for months ) before updating.

What version of Home Assistant Core has the issue?

23.6.2

What was the last working version of Home Assistant Core?

23.6.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ElkM1

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

023-06-25 08:45:02.409 DEBUG (MainThread) [homeassistant.components.elkm1] Setting up elkm1 elk://192.168.0.19 
2023-06-25 08:45:02.422 DEBUG (MainThread) [homeassistant.components.elkm1] Waiting for login event for 20 seconds 
2023-06-25 08:45:02.422 INFO (MainThread) [elkm1_lib.connection] Connecting to ElkM1 at elk://192.168.0.19 
2023-06-25 08:45:02.431 DEBUG (MainThread) [elkm1_lib.elk] Synchronizing panel... 
2023-06-25 08:45:02.433 DEBUG (MainThread) [elkm1_lib.connection] write_data '06vn0056' 
2023-06-25 08:45:02.450 DEBUG (MainThread) [elkm1_lib.connection] got_data '08RP010035' 
2023-06-25 08:45:02.455 DEBUG (MainThread) [elkm1_lib.connection] got_data '08RP010035' 
2023-06-25 08:45:20.517 DEBUG (MainThread) [elkm1_lib.connection] got_data '16XK19450812506231100066' 
2023-06-25 08:45:22.424 DEBUG (MainThread) [homeassistant.components.elkm1] Timed out waiting for login event 
2023-06-25 08:45:22.424 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://192.168.0.19 disconnecting

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @gwww, @bdraco, mind taking a look at this issue as it has been labeled with an integration (elkm1) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `elkm1` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign elkm1` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


elkm1 documentation elkm1 source (message by IssueLinks)

caseyd commented 1 year ago

oops in the field for OS release I have a typo; it's def 23.6.3, not .2

gwww commented 1 year ago

The got_data '08RP010035' in the logs tell me that the panel is on programming mode. The Elk integration pauses when in programming mode. Shut down ElkRP and try again.

caseyd commented 1 year ago

ah, the old Win7 VM on a machine in the basement bug! I disconnected the ElkRP on that machine and re-installed this integration. After a non-secure login the feed to HA is back. I didn't think of this as my node stuff was happily reporting to MQTT, and the only way it can do that is to have a connection. Not sure why I didn't think to check the ASCII specs for that response code. sorry about the excitement.