mattsaxon/HASS-Jablotron80

arm night missing in HA alarm card

Closed this issue · 9 comments

Hi,
I have a question about the alarm arming button. Right now I have in HA only ARM HOME and ARM AWAY. I am also exposing the alarm in Homekit from HA and there I can see also the ARM NIGHT option. All three ARMING states lock my alarm differently and how they should - btw it so far works flawlessly so big thanks to you 😀 But I would like to ask you how can I add the ARM NIGHT in HA alarm control panel too or perhaps change the ARM HOME to ARM NIGHT button. Thanks a lot

The HA alarm panel doesn't directly support ARM NIGHT, so I have the following script to achieve this

nightalarm:
  alias: Arm Night
  sequence:
    - service: alarm_control_panel.alarm_arm_night
      data:
        entity_id: alarm_control_panel.jablotron_alarm

I then have this in the same group as the 'real' control panel so it appears in the UI together.

Hi, I have figure out how to add the ARM NIGHT in HA Alarm Card. When you click on + button to add new card then choose the alarm card - as usual 😀. Then, before you save the card, you can click on available states on the left and choose to add the ARM NIGHT too. I have tested my and works like a charm 😀 therefore no script is needed.

I’m suspecting you are using a customised Lovelace UI. I’m using the automatic Lovelace generated from configuration.yaml, so I don’t think your suggestion will work for me.

Then again, it might be the prompt I need to migrate my UI!

Hm, when I restart the HA my alarm card is back without the ARM NIGHT button. Any ideas?

Sorry, no idea, but this seems to be a standard HA issue, so suggest you make a post there to see what they can advise.

Can I confirm, have you got a Lovelace.yaml file?

OK I try to post it somewhere in HA forum.

I dont have Lovelace.yaml - I just use gui. Why?

OK, I've moved over the configuration via the UI as you are using. It works as you describe, but also sticks over a restart of HA.

It has created a file here <config_directory>/.storage/lovelace

It contains the following (amongst many other things)

                            "entity": "alarm_control_panel.jablotron_alarm",
                            "states": [
                                "arm_away",
                                "arm_home",
                                "arm_night"
                            ],
                            "type": "alarm-panel"

Note I did this by editing the existing card, not creating a new one.

guess what. I deleted the card and made a new including the arm night and after the restart no change 😀 Looks like success. I did couple of more restarts and arm night is still there. Try it.

Yep agreed this works for me too, thanks.