Add ARM NIGHT to Alarm_Control_Panel entity / badge

Hi,

I have a manual alarm alarm_control_panel and have added the entity [alarm_control_panel.home_alarm] as a badge in my lovelace. When you click on this, you can choose 2 options: ARM AWAY and ARM HOME. I would like to add the option ARM NIGHT to the buttons. Is that possible without using the various (custom) alarm panel cards?

AlarmPanel

The code in the alarm.yaml file is the following:

alarm_control_panel:
  - platform: manual
    name: Home Alarm Test
    code_arm_required: false
    arming_time: 0
    delay_time: 60
    trigger_time: 300
    armed_home:
      delay_time: 0
    armed_night:
      delay_time: 0

Cheers,
Johan

1 Like

Edit the card in the lovelace UI configuration . Then click the “available states” drop down and select armed_night. It will show up

Just checed the card config (default entities card) but I can’t find an option to choose “available states”

The reason for using (in this example) a default entities card is that I have the alarm as a badge on my main view. I’d rather not have a dedicated alarm card (where it is indeed possible).

Hi I have been searching for a solution to this as well. Were you able to find something?

Nope, never found a solution

1 Like

Click on the SHOW VISUAL EDITOR button.
Or fill in these lines :

type: alarm-panel
states:
  - arm_home
  - arm_away
  - arm_night
entity: alarm_control_panel.alarm

This works but its not adding the buttons to overview, is there anyway to make the change apply system wide?

Did you find out how whether it can be applied system wide? I’d like to know that too.

What is the difference from a technical view between home, night and away?

I didn’t success too. I use before the alarm card, and it works perfectly and easy to choose all the armed we want.

But I try to reforge my dashboard, and this damned arm_night is proposed only in this card. No in badge, no in entity . I have try to copy the max of yam of the alarm panel card without success …

Addressed in More alarm arming options in more-info dialog by karwosts · Pull Request #15452 · home-assistant/frontend · GitHub

But Pull Request #15452 never happened?
It is now Oct 2024 - and do not see these buttons on my Alarmo.
Is there something I need to do to make them appear?

Yes that pull was merged a long time ago.

If you don’t see certain modes in the frontend, it may be that your alarm entity does not support them.