nspanel-lovelace-ui
nspanel-lovelace-ui copied to clipboard
[Feature Request] Alarm Panel - Hide unused arming modes
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
For alarmo you can disable/enable the modes in the alarmo UI
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.
I second this request. My manual alarm panel looks like:
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!
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
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.
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
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.
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.
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.
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 :)
Then the feature request remains valid :)
Sure, it does :)
I've made a PR to add a way to overwrite supported_features
so that it would "hide" unwanted modes of Alarm Panel.
#410