Dear all:
I’m configuring the below template for Aqara Hub, the aim is to remove the unsupported modes. I added the hub via Homekit integration and those modes are incorrectly mapped so my idea is to create a template alarm control panel to hide them:
# Helper to hide the unsupported modes
- alarm_control_panel:
- name: "Kitchen Aqara Hub Alarm"
unique_id: "kitchen_aqarahub_alarm"
state: >
{% set source_state = states('alarm_control_panel.kitchen_aqarahub_alarm_raw') %}
{% if source_state in ['armed_away', 'armed_home', 'armed_night', 'armed_vacation', 'armed_custom_bypass'] %}
armed_away
{% else %}
disarmed
{% endif %}
code_arm_required: false
arm_away:
service: alarm_control_panel.alarm_arm_away
target:
entity_id: alarm_control_panel.kitchen_aqarahub_alarm_raw
disarm:
service: alarm_control_panel.alarm_disarm
target:
entity_id: alarm_control_panel.kitchen_aqarahub_alarm_raw
I have “code_arm_required: false” so it doesn’t ask for code when I arm, however when I disarm it always pops up to enter code, which I don’t have any. How to prevent the pop-up for disarming? code_disarm_required doesn’t exist…
Thank you!