Alarm Card with "conditioned" confirm_entities

Hi,
I’m pretty new to HASS but I almost managed to adopt the alarm card from @jcooper-korg, thanks for sharing the code, to my needs.
jcooper-korg/AlarmPanel (github.com)

This is my code:

type: custom:alarm_control_panel-card
entity: alarm_control_panel.section_2
confirm_entities:
  - lock.alarm_turen_status
conditions:
  state: unlocked
show_countdown_timer: true
durations:
  arming: 60
  pending: 30
disable_arm_if_not_ready: true
show_override_if_not_ready: true
labels:
  ui.card.alarm_control_panel.arm_away: AWAY
  ui.card.alarm_control_panel.arm_home: HOME
  ui.card.alarm_control_panel.clear_code: CLEAR
  ui.card.alarm_control_panel.disarm: DISARM
scale: 14px
states:
  - arm_home
  - arm_away
title: Alarm Obergeschoss"

What I’d like to achieve is: "if the entity ‘lock.alarm_turen_status’ is locked, then I can arm the alarm system. The challenge is I cannot specify the status of “confirm_entities”. By using the confirm_entities the alarm system cannot be armed independently of the status of confirmed entities.
Sorry perhaps confirmed_entities is the wrong approach instead it should be a template or automation or or …
any hint or help is highly appreciated.
Thanks

I know this doesn’t directly answer your question but I would highly recommend having a look at Alarmo. It’s got a heap of customisation ability.

There is also an Alarmo card for your dashboard.

1 Like

Thanks for helping, I checked it but this is far beyond what I need. Forgot to mention I’m having an Jablotron Alarm system it’s “just” about controlling it from HASS to have a kind of central mgmt of “all”?? system components in my house.

I have been using Alarmo since day one (also highly recommend it). How did I not know about this card?

Looks like some nice improvements over the standard alarm panel card.

EDIT: And Sorry Otto, I don’t know anything about this custom card.

How do you currently interface to to this system from HA? I’m in a similar situation and Alarmo works perfectly. I have a hard-wired commercial alarm system that I keep synchronised with Alarmo in HA via MQTT.

You don’t necessarily need to use all the functions of Alarmo but can use it as a neat way to keep your Jablotron linked to HA for arming / disarming etc.

@sparkydave I’m having a wired USB connection from Intel NUC to Jablotron.
@tom_l yes, I also like to additional features of this alarm card. In particular that you cannot, accidentally, activate the alarm if certain doors are open. In this function I’d like to implement. As beginner I’d say this is a “simple” :wink: if - then process: If “doors specified in the group” are open, then deactivate the arming function. … and I’m still searching for a solution.

Next step achieved :wink: this is the code which I’ve to use in my alarm card … perhaps anyone know how to …

{% if is_state(‘lock.alarm_turen_status’, ‘locked’) %}
disable_arm_if_not_ready: true
{%else%}
disable_arm_if_not_ready: false
{%endif%}