Removing pin code to disarm alarm

Hello. Is it true that code_disarm_required: false is no longer supported in the HA configuration file. I would like to remove this option, as I am planning to use a sequence on a physical switch to disarm my home alarm. Do you have any suggestion how to achieve this? This is my current alarm configuration:

# Alarm Control Panel
alarm_control_panel:
  - platform: manual
    name: Home Alarm
    code_arm_required: false
    code: 1234
    arming_time: 30
    delay_time: 30
    trigger_time: 120
    disarm_after_trigger: false
    disarmed:
      trigger_time: 0
    armed_home:
      arming_time: 0
      delay_time: 0

Yes.

Create an automation that triggers when your switch sequence occurs. The use the alarm_disarm action with the code.

triggers:
  - trigger: etc...
actions:
  - action: alarm_control_panel.alarm_disarm
    target:
      entity_id: alarm_control_panel.home_alarm
    data:
      code: "1234" # or even better use !secret alarm_code

Thanks. This worked perfectly

1 Like