🚨 Alarm System with Z2M Keypad support (KEPZB-110)

Hi !
In my example, I have a Manual Alarm Control with a defined code (for sample : 1111).
When I use the Keypad for disarmed the alarm, the blueprint doesn’t work for this part. When I check the logs, I see an error (invalid code).
It seems that the blueprint want to send a list of code to disarm the alarm :

action: alarm_control_panel.alarm_disarm
target:
  entity_id: alarm_control_panel.home_alarm
data:
  code: 
   - "1111"

And not only the input code from the Keyboard.

Yes, the manual alarm control panel should not have a code enabled. As it is not supported to have multiple codes directly in there.

Which means interactions directly with the manual alarm control panel in Home Assistant doesn’t require a code. Only interacting with the Keypad.

Hi!
I use Alarmo, and in Alarmo I have set up 3 users with 3 different codes.
I created the Helpers in Home Assistant with the same codes, and inserted them into your blueprint.
When I enter a code on the Frient keyboard, nothing happens. Can you help me?

Thanks

- id: '1759961176422'
  alias: Z2M - Alarm System with Keypad (KEPZB-110)
  description: ''
  use_blueprint:
    path: danielpetrovic/z2m-alarm-system-with-keypad.yaml
    input:
      alarm_main: alarm_control_panel.alarmo
      alarm_code_user:
      - input_text.codice_alarmo_alberto
      - input_text.codice_alarmo_alessia
      alarm_keypad: Tastiera Allarme PT

You have not set the regex pattern correctly for the helper. The regex pattern should include numbers 0-9 and letters A-F, if you afterwards only store numbers inside the helper, it should still work as that’s how I use it with the manual alarm control panel. With the regex pattern you have set now I think it can only store 1111 as code.

If you still encounter errors after that, can you share a trace of the automation showing what the error is?

I don’t think I understand how to set up the blueprint.

I use Alarmo, in which I’ve set up three users, each with a different code. After entering the code, I receive a notification of who performed the operation (all created within Alarmo).

The codes are made up of 4 numbers, just numbers with no letters or symbols.

Can your blueprint handle 3 different users?

@danieldeni
Can you send me the yaml file for your automation? I’m probably doing something wrong. I’m probably also messing up the text inputs…

Everything is laid out in the instructions. So read the instruction thoroughly and follow them on how to create the helpers.

use_blueprint:
  path: danielpetrovic/z2m-alarm-system-with-keypad.yaml
  input:
    alarm_main: alarm_control_panel.alarm
    alarm_code_user:
      - input_text.alarm_code_user_1
      - input_text.alarm_code_user_2
      - input_text.alarm_code_user_3
    alarm_keypad: Alarm Paneel

The naming of the input_text you can choose whatever you want. I wanted to make it without storing the username in the helper ID, so it is cleaner for my GitHub.

As mentioned, I’m not using Alarmo myself as my whole Alarm system logic is running inside this blueprint there is no need for Alarmo, so I haven’t tested it with Alarmo.

Every user code needs its own Text Helper to store the code inside it. And the blueprint handles the checking if the code put into the Keypad is stored in one of the Text Helpers. I have stored 3 codes myself like that.

Technically it should work with Alarmo as well, as it is made to forward the code input from the Keypad to the Alarm Control Panel you set in the Alarm Control Panel (Main) field. Which is why you should set no password if you are using Manual Alarm Control Panel, otherwise it would fail on that part.

Ok, but in the input text do I have to put the code itself (for example 1234) in the ā€œ1234ā€ format?

I tried another bkueprint and it works, unfortunately I can’t get yours with the input_text to work.

Yes, inside the Text Helper you should store the pin code with just the numbers that are set for the pin. Make sure the Pattern for the Text Helper is set correctly, sample is given with an easy to copy/paste code snippet.

Then I don’t think it works with Alarmo…
The input_text is set exactly like this

Once again, your regex pattern is wrong. Read my instructions. If it still fails after that, please provide more information to be able to help you.

Check the Traces of the Automation to see if there are any warnings given when the Automation is triggered. If so, please provide the error given.

Thanks, now I use another blueprint that is more suitable for my use with Alarmo, which I have personally modified to make it work as I need it (Alarmo user codes)

Yes, if you are happy with Alarmo there are several Blueprints out there that fit your needs better, when it’s just about syncing the physical with the virtual panel.

Mine was made to not be reliant on any Custom Components as it had bitten me in the past with an update of HA.

This blueprint is no longer supported, please switch to my new blueprint:

I have implemented many extra features that were requested and I’ve thought of myself as well.