Skip to content
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

Feature Request: Arm & Disarm without code #51

Closed
DNKROZ opened this issue Apr 14, 2022 · 7 comments
Closed

Feature Request: Arm & Disarm without code #51

DNKROZ opened this issue Apr 14, 2022 · 7 comments

Comments

@DNKROZ
Copy link

DNKROZ commented Apr 14, 2022

Hi, first and foremost thank you for this custom integration, without it the Securitas alarm system lacks... a lot.

I have also installed a custom alarm panel with the "Alarmo" custom component, and also a Visonic alarm system with another custom integration, both integrations allow the arming and disarming of each system without the need to enter any codes on the keypad.

Since the default "code_disarm_required" was "false" I commented out the code option in the configuration file (code: !secret securitas_direct_code) to have the code value empty and, surprisingly .... it works! , however the "code_format" attribute is still set to "number", so the keypad still pops up in the alarm panel when trying to arm or disarm, the other integrations have this set to "null" and thus they don't show the keypad.

I've modified the alarm_control_panel.py file from the component to return a None value for the "code_format" function, however I'm not a developer and can't go much further.

Is there a way to modify this integration to return None:

return None

Instead:

return alarm.FORMAT_NUMBER

in the event the code variable from the configuration is not set?

My solution is very crude and temporary and I would very much like to have this feature merged into the main version to be able to arm/disarm every alarm panel with a button click since I'm the only one that has access to my HA instance.

Thanks in advance, best regards.

@themaninspain
Copy link

I'll second this request as my alarm system does not have a code

@guerrerotook
Copy link
Owner

Let me take a look!

@jpg1961
Copy link

jpg1961 commented Jun 17, 2022

@DNKROZ

I had same issue where alarm control panel would popup a keypad to enter code even if I had unset the "code" key in the configuration.yaml. I managed to set code_format to null by adding it in my customize.yaml file.

Here is an excerpt of my customize.yaml file:

alarm_control_panel.name_of_my_entity:
   friendly_name: "xxxx"
   ## Assuming code is unset in configuration.yaml...
   ## When code format is set to no_code the panel will display a field to enter
   ## the pin code instead of a keypad.
   ## When set to null neither field nor keypad are displayed....
   code_format: null

Cheers,

@DNKROZ
Copy link
Author

DNKROZ commented Jun 18, 2022

Hi @jpg1961

Setting up code_format to null in the customize.yaml file works like a charm, thank you!
Still, would be great to have it as a feature from the integration itself, but this is a great solution for the time being

Best regards.

@jpg1961
Copy link

jpg1961 commented Jun 21, 2022

Hi @DNKROZ,
Actually, the integration uses home assistant control panel components and inherits from its code_format variable.
So I guess updating the securitas-direct-new-ap integration documentation instead of adding a feature would fit the bill ;-D.

Cheers,

@soth78
Copy link

soth78 commented Sep 6, 2022

Sorry, I have been unable to reproduce this. I'm on 2.0.0.2, can someone tell me how to remove the keypad so I don't need to input a code?

@cantupaz
Copy link
Collaborator

This should be working since a few releases ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants