nspanel-lovelace-ui icon indicating copy to clipboard operation
nspanel-lovelace-ui copied to clipboard

[Feature Request] Alarm Panel - Hide unused arming modes

Open thommicom opened this issue 2 years ago • 6 comments

FEATURE DESCRIPTION

Where can I configure the arming mode "buttons". I just use one mode and would like to hide the others.

ADDITIONAL CONTEXT

PANEL / FIRMWARE VERION

thommicom avatar Jul 13 '22 20:07 thommicom

For alarmo you can disable/enable the modes in the alarmo UI

image

joBr99 avatar Jul 13 '22 21:07 joBr99

Thanks for your quick reply. So far I only used the manual alarm control panel. There I haven’t found a way to do that. Anyway.. I will have a look for alarmo.

thommicom avatar Jul 13 '22 21:07 thommicom

I second this request. My manual alarm panel looks like: image And I would like the nspanel to mimic that. I now see 2 options which are unused and a keypad which I do not use, on my nspananel.

Keep up the good work!

HA-TB303 avatar Aug 06 '22 14:08 HA-TB303

Hey, would recommend you to take a look at alarmo, if you still need this leave a message.

You can easily install it via HACS https://github.com/nielsfaber/alarmo#installation

joBr99 avatar Aug 06 '22 14:08 joBr99

Hi, I really just want to use the manual alarm panel. It serves me well and for Alarmo I would have to change my setup and automations and rely on again another external module.

HA-TB303 avatar Aug 06 '22 15:08 HA-TB303

I love this NSpanel project, keep up the good work!

I second this as well. Basically you should be able to customize in the cardAlarm configuration which 'states' should be displayed. This would be independent from the actual integration. This is also implemented at the lovelace Alarm card from HA itself, as well as the Alarmo Lovelace cards. Take a look at:

  • https://www.home-assistant.io/dashboards/alarm-panel/#states
  • https://github.com/nielsfaber/alarmo-card#state-configuration

adriaanh avatar Aug 08 '22 13:08 adriaanh

It seems that it is dependent on the integration you use for your alarm.

As an example, if you use HA MQTT alarm_control_panel , it defines all the states by default. That's why you see all the modes here.

WhistleMaster avatar Aug 18 '22 16:08 WhistleMaster

I use the standard manual alarm control panel: https://www.home-assistant.io/integrations/manual/

alarm_control_panel:
  - platform: manual
    name: Inbraakalarm
    arming_time: 15
    delay_time: 10
    trigger_time: 600
    disarmed:
      trigger_time: 0
    armed_home:
      arming_time: 0
      delay_time: 7

And I still see all the options, including "code", even though not defined.

HA-TB303 avatar Aug 18 '22 16:08 HA-TB303

That's the problem, HA manual alarm_control_panel also defines all the states in the supported_features by default, see manual/alarm_control_panel.py#L190.

WhistleMaster avatar Aug 18 '22 16:08 WhistleMaster

Ah right....

So in the locelace UI you hide those in the lovelace config..

entity: alarm_control_panel.inbraakalarm
hide_keypad: true
states:
  - arm_home
  - arm_away
style: '--alarm-color-disarmed: var(--label-badge-blue);'
type: alarm-panel
theme: Mushroom

Then the feature request remains valid :)

HA-TB303 avatar Aug 18 '22 16:08 HA-TB303

Then the feature request remains valid :)

Sure, it does :)

WhistleMaster avatar Aug 18 '22 16:08 WhistleMaster

I've made a PR to add a way to overwrite supported_features so that it would "hide" unwanted modes of Alarm Panel.

#410

WhistleMaster avatar Aug 24 '22 14:08 WhistleMaster