Manual Alarm panel modification

I want to have a simple alarm panel with two options: armed and disarmed

How can I change this?

This always gives me armed away, armed night, armed home and disarmed.

Also how can I sync this with an input boolean properly?
The alarm panel and the input boolean should always have the same state: on/armed and off/disarmed no matter which side changes.

These are the default settings, however I assume you will be using the alarm control panel in the front end and as such you can edit the card to only display the options you want:

You could then set up and automation with 4 triggers:

1: Alarm goes to armed
2: Alarm goes to disarmed
3: Boolean goes to on
4: Boolean goes to off

Then use a choose to action the changes eg:

1: call service, set input Boolean to on
2: call service, set input Boolean to off
3: call service, set alarm to armed
4: call service, set alarm to disarmed

You will want to add some conditions as well to prevent if looping and logging errors / warnings

Not in front of a computer right now so won’t attempt to give a full example, but if you need an example just shout and I will try to post an example later

1 Like

Thanks.

I just found a solution for the automation part. Using the alarm panel template I can sync the states even without any automation.

alarm_control_panel:
  - platform: template
    panels:
      safe_alarm_panel:
        name: Sicherheit
        unique_id: sicherheit_panel
        code_format: no_code
        value_template: >
          {% if is_state('input_boolean.sicherheit', 'on') %}
            {{'armed_away'}}
          {% else %}
            {{'disarmed'}}
          {% endif %}
        arm_away:
          - service: input_boolean.turn_on
            target:
              entity_id: input_boolean.sicherheit
        disarm:
          - service: input_boolean.turn_off
            target:
              entity_id: input_boolean.sicherheit

Now I still see home_armed available in the frontend which I can edit in the card - thanks for that.
Interestingly, once included in HomeKit I only get the two states. So this is the solution.

1 Like

Nice work :+1:

1 Like