I have an alarm button that gives me that status of my alarm:
type: 'custom:button-card'
entity: alarm_control_panel.somfy_protexiom_alarm
state:
- value: disarmed
icon: 'mdi:shield-home'
color: red
name: Alarm off
- value: armed_away
icon: 'mdi:shield-home'
color: green
name: Alarm On
I would like to be able to click this button so that it activates and deactivates my alarm. At the moment when i click it it comes up with a box asking for the code. Is there any way around this? Perhaps with an automation?