-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot arm alarm with version 0.29 when no code is required for arming #142
Comments
My system is setup same as yours and works as expected. I suspect that what has happened for you is that there was a comms issue during initial setup and your system thinks it is in partial or split mode. To check this, you'd need to edit the setup file, but I can't recall where this is at the moment and am away so cannot check. Perhaps someone else can point you in the right direction until I can verify? |
Matt, by system you mean the HA integration or the actual control panel? O-Link shows that the system is configured in unsplit mode. |
I'm referring to the HA integration |
Here's what I see in {
"entry_id": "7fb1f51ccda4a2d3106b9ab85579ef5f",
"version": 1,
"domain": "jablotron80",
"title": "Jablotron 80",
"data": {
"cable_model": "JA_82T",
"serial_port": "/dev/hidraw0",
"password": "<redacted>",
"number_of_wired_devices": 4,
"settings": {
"device_require_code_to_arm": false,
"device_system_mode": "Unsplit"
}
} |
There's another file with setting derives during initial config. this is where all the sensors are stored. It has additional info in it. |
Matt, I found the bug: jablotron80/custom_components/jablotron80/alarm_control_panel.py Lines 137 to 148 in b7e9d58
If no code is required, the code will be the empty string. In unsplit mode the jablotron80/custom_components/jablotron80/jablotron.py Lines 2574 to 2578 in b7e9d58
The correct solution, according to the Jablotron Control Panel manual as well is to:
I locally changed the code to send the "C" zone (which is the equivalent of the ABC button, that in my case is the only one that arms the system) when the system is configured in unsplit mode and the code is not required and it worked. Should I send the PR for the |
Yes please submit a PR so I can see what you intend.... but I'm not yet convinced there is a bug given mine and your systems seem to be configured the same. There are 2 similar, but different setting regarding does the control panel need a code and do you want a code entered in HA. ..... it could well be me who is confused on this though ;-) |
…required for arming * when the JA-82K control panel doesn't required a code for arming and the panel is configured in unsplit mode the arming must be done by simulating a keypad press on the ABC button; sending an empty code has no effect
Those two are currently in sync when the component is set up and the code doesn't seem to adapt if the user changes the component's configuration. If the control panel doesn't require a code, the value configured in HA is overridden with the empty string. I haven't changed that behaviour in the PR, but I see that there's already an issue that could address this - #43. |
PR is at #143 (don't know why it didn't get linked here). |
fix #142: Cannot arm alarm with version 0.29 when no code is required for arming
My alarm is configured in unsplit mode and doesn’t require a code for arming. When trying to arm it, I see the following in the logs:
What is wrong? I kept looking through the code and didn’t see anything obvious.
Moreover, I tried to reconfigure the control panel and the integration to require a code before arming. The result is the same.
The text was updated successfully, but these errors were encountered: