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 alarm integrated, can only disarm but not arm. #97378

Closed ve1koz111 closed 1 year ago

ve1koz111 commented 1 year ago

The problem

The alarm has been successfully integrated. All the sensors and scenes are visible. However, the alarm can’t be armed from home assistant. I found that only disarming works. Not sure why this is the case.

it can be armed normally from the alarm control panel, and otherwise all is working.

Also, documentation says that my alarm version should have force_arm_away service which is not visible? Let me know!

thanks

What version of Home Assistant Core has the issue?

2023.7.3

What was the last working version of Home Assistant Core?

2023.7.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Elk-M1 Control

Link to integration documentation on our website

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

Diagnostics information

Can provide if needed

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

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)

gwww commented 1 year ago

Did you check the panel's options as described on the integration's documentation page? The fact that you are getting bad timestamps in LD (ElkM1 log, not the same thing as HA debug logs) messages from the panel indicates something is not setup correctly on your panel. It's just a clue at this point and I have no way to correlate the LD errors to arming problems.

After you have checked the setup of your panel logs are required. Include all the HA ElkM1 debug logs. This means from system start to an example of you trying to arm the system.

Last, force arm away is supported and can be accessed using a service. It is not supported from the front end (at least not by default and I'm not sure if it can be configured). This is a separate question and won't be further addressed by this issue. If you would like further help with this the forum tends to be the best place.

mrwkbrdr commented 1 year ago

I am having the same issue. Cannot arm but can disarm. Bern using this for years with no issue until about 2 weeks ago?

gwww commented 1 year ago

Can you provide a debug log that includes an arm and a disarm sequence.

mrwkbrdr commented 1 year ago

Logger: elkm1_lib.connection Source: runner.py:186 First occurred: October 13, 2023 at 5:01:25 PM (1213 occurrences) Last logged: 9:50:47 AM

Error connecting to ElkM1 ([Errno 113] Connect call failed ('10.0.0.19', 2101)). Retrying in 2 seconds Error connecting to ElkM1 ([Errno 113] Connect call failed ('10.0.0.19', 2101)). Retrying in 4 seconds Error connecting to ElkM1 ([Errno 111] Connect call failed ('10.0.0.19', 2101)). Retrying in 1 seconds Error connecting to ElkM1 ([Errno 111] Connect call failed ('10.0.0.19', 2101)). Retrying in 2 seconds ElkM1 at elk://10.0.0.19 disconnecting (heartbeat timeout)

gwww commented 1 year ago

Can you provide a full copy of home assistant.log found in the config directory.

It needs to include you arming and disarming.

mrwkbrdr commented 1 year ago

Not sure how to find that log?

gwww commented 1 year ago

“Download full log” on the system -> logs page.

Restart your system first, reproduce the problem, then download logs.

mrwkbrdr commented 1 year ago

Log file. home-assistant_2023-10-15T20-50-35.289Z.log

gwww commented 1 year ago

The reason that you cannot arm or disarm is that the connection to the panel fails. Nothing I can do about that. Here is a small clip of what I see in the logs:

2023-10-15 15:03:50.821 WARNING (MainThread) [homeassistant.config_entries] Config entry 'ElkM1' for elkm1 integration not ready yet: Timed out connecting to elk://10.0.0.19; Retrying in background
2023-10-15 15:06:18.964 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://10.0.0.19 disconnecting (heartbeat timeout)
2023-10-15 15:06:36.385 WARNING (MainThread) [elkm1_lib.connection] Error connecting to ElkM1 ([Errno 113] Connect call failed ('10.0.0.19', 2101)). Retrying in 1 seconds
2023-10-15 15:06:39.777 WARNING (MainThread) [elkm1_lib.connection] Error connecting to ElkM1 ([Errno 111] Connect call failed ('10.0.0.19', 2101)). Retrying in 2 seconds
2023-10-15 15:09:11.453 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://10.0.0.19 disconnecting (heartbeat timeout)
2023-10-15 15:11:18.282 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://10.0.0.19 disconnecting (heartbeat timeout)
2023-10-15 15:11:36.672 WARNING (MainThread) [elkm1_lib.connection] Error connecting to ElkM1 ([Errno 113] Connect call failed ('10.0.0.19', 2101)). Retrying in 1 seconds
2023-10-15 15:11:40.736 WARNING (MainThread) [elkm1_lib.connection] Error connecting to ElkM1 ([Errno 113] Connect call failed ('10.0.0.19', 2101)). Retrying in 2 seconds
2023-10-15 15:11:43.808 WARNING (MainThread) [elkm1_lib.connection] Error connecting to ElkM1 ([Errno 113] Connect call failed ('10.0.0.19', 2101)). Retrying in 4 seconds
2023-10-15 15:14:11.594 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://10.0.0.19 disconnecting (heartbeat timeout)
2023-10-15 15:16:18.415 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://10.0.0.19 disconnecting (heartbeat timeout)
2023-10-15 15:18:25.278 WARNING (MainThread) [elkm1_lib.connection] ElkM1 at elk://10.0.0.19 disconnecting (heartbeat timeout)

No where in there is a stable connection to the panel. Once you can connect to the ElkM1, open a new issue if the problem still is occurring.

gwww commented 1 year ago

@home-assistant close