Closed raducotescu closed 2 years ago
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 .storage/core.config_entries
:
{
"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:
If no code is required, the code will be the empty string. In unsplit mode the arm
function will then be called only with an empty string and the prefix you hardcoded:
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 alarm_control_panel.py
file?
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 ;-)
There are 2 similar, but different setting regarding does the control panel need a code and do you want a code entered in HA.
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 https://github.com/tahvane1/jablotron80/pull/143 (don't know why it didn't get linked here).
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.