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
71.9k stars 30.12k forks source link

Elk-M1 Control Integration #67819

Closed LexusSpeed03 closed 2 years ago

LexusSpeed03 commented 2 years ago

The problem

Attempting to add the Elk-M1 Control Integration fails via UI.

What version of Home Assistant Core has the issue?

2022.3.2

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-M1 Integration

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?

Logger: elkm1_lib.elk
Source: /usr/local/lib/python3.9/site-packages/elkm1_lib/elk.py:123
First occurred: 11:52:32 AM (3 occurrences)
Last logged: 12:14:17 PM

ElkM1 at elks://192.168.7.199:2601 disconnected

Additional information

No response

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

elkm1 documentation elkm1 source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years 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! (message by CodeOwnersMention)

gwww commented 2 years ago

Can you provide full logs. Description here on what to turn on: https://community.home-assistant.io/t/elk-m1-interface/4461/958

Did you use the auto discovered Elk or try a manual entry?

FYI: I just tested auto discovery and manual entry, secure and non-secure. All scenarios working for me.

LexusSpeed03 commented 2 years ago

I had done auto and manual both secure and non secure. I am restarting HA to enable the logging now.

LexusSpeed03 commented 2 years ago

2022-03-07 15:59:27 INFO (SyncWorker_1) [homeassistant.loader] Loaded elkm1 from homeassistant.components.elkm1 2022-03-07 16:00:19 DEBUG (MainThread) [elkm1_lib.discovery] discover: ('255.255.255.255', 2362) => b'XEPID' 2022-03-07 16:00:19 DEBUG (MainThread) [elkm1_lib.discovery] discover: ('192.168.7.199', 2362) <= b'M1XEP\x00@\x9d\xba\xda\xeb\xc0\xa8\x07\xc7\n)Wayne Alarm\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01' 2022-03-07 16:00:22 DEBUG (MainThread) [elkm1_lib.discovery] discover: ('255.255.255.255', 2362) => b'XEPID' 2022-03-07 16:00:22 DEBUG (MainThread) [elkm1_lib.discovery] discover: ('192.168.7.199', 2362) <= b'M1XEP\x00@\x9d\xba\xda\xeb\xc0\xa8\x07\xc7\n)Wayne Alarm\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01' 2022-03-07 16:00:25 DEBUG (MainThread) [elkm1_lib.discovery] discover: ('255.255.255.255', 2362) => b'XEPID' 2022-03-07 16:00:26 DEBUG (MainThread) [elkm1_lib.discovery] discover: ('192.168.7.199', 2362) <= b'M1XEP\x00@\x9d\xba\xda\xeb\xc0\xa8\x07\xc7\n)Wayne Alarm\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01' 2022-03-07 16:01:22 DEBUG (MainThread) [homeassistant.components.elkm1] Waiting for login event for 20 seconds 2022-03-07 16:01:22 INFO (MainThread) [elkm1_lib.elk] Connecting to ElkM1 at elks://192.168.7.199:2601 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.proto] connected callback 2022-03-07 16:01:27 INFO (MainThread) [elkm1_lib.elk] Connected to ElkM1 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.proto] write_data 'hassio' 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.proto] write_data '****' 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.elk] Synchronizing panel... 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.proto] write_data '06vn0056' 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.proto] queueing write 06lw00 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.proto] queueing write 06ss00 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.proto] queueing write 0Cua00000000 2022-03-07 16:01:27 DEBUG (MainThread) [elkm1_lib.elk] got_data '' 2022-03-07 16:01:28 DEBUG (MainThread) [elkm1_lib.elk] got_data 'Username: hassio' 2022-03-07 16:01:30 DEBUG (MainThread) [elkm1_lib.elk] got_data 'Password: ****' 2022-03-07 16:01:30 DEBUG (MainThread) [elkm1_lib.elk] got_data 'Elk-M1XEP: Login successful.' 2022-03-07 16:01:30 DEBUG (MainThread) [homeassistant.components.elkm1] ElkM1 login succeeded 2022-03-07 16:01:30 DEBUG (MainThread) [elkm1_lib.elk] got_data '08RP010035' 2022-03-07 16:01:30 DEBUG (MainThread) [homeassistant.components.elkm1] Received login event 2022-03-07 16:01:30 DEBUG (MainThread) [homeassistant.components.elkm1] Waiting for sync_complete event for 35 seconds 2022-03-07 16:01:47 DEBUG (MainThread) [elkm1_lib.elk] got_data '16XK45011630803220000073' 2022-03-07 16:02:05 DEBUG (MainThread) [homeassistant.components.elkm1] Timed out waiting for sync_complete event 2022-03-07 16:02:05 DEBUG (MainThread) [elkm1_lib.proto] disconnected callback 2022-03-07 16:02:05 WARNING (MainThread) [elkm1_lib.elk] ElkM1 at elks://192.168.7.199:2601 disconnected

gwww commented 2 years ago

Looks like you have Elk RP running. This line:

 2022-03-07 16:01:30 DEBUG (MainThread) [elkm1_lib.elk] got_data '08RP010035'

When ElkRP is connected and remote programming is being done, nothing else can connect to the Elk. Is that what is happening?

LexusSpeed03 commented 2 years ago

Completely didn't even think about that while I was doing it. Yep, that fixed it thank you! Sorry to cause a issue for it.