My current card is set to to use garage door zone to open the garage door (by tapping it once). However, at times I forget to disarm my alarm before opening the door and that triggers the alarm. Can someone suggest how to incorporate the condition to check if the alarm is on to first disarm before trigger the garage open call service:
type: vertical-stack
view_layout:
position: main
cards:
- type: alarm-panel
entity: alarm_control_panel.partion_1
states:
- arm_home
- arm_away
name: Alarm
- type: custom:vertical-stack-in-card
cards:
- title: Sensors
type: glance
show_header_toggle: false
state_color: true
entities:
- entity: binary_sensor.zone_3
- entity: binary_sensor.zone_4
- entity: binary_sensor.zone_2
- entity: binary_sensor.zone_9
entity_id: alarm_control_panel.partion_1
name: Garage door
state:
- value: open
color: rgb(5, 147, 255)
- value: Closed
color: rgb(189, 255, 5)
tap_action:
condition:
condition: state
entity_id: alarm_control_panel.partion_1
state:
- "armed_away"
action: call-service
service: envisalink.alarm_keypress
service_data:
keypress: D
entity_id: alarm_control_panel.partion_1
- type: entity
entity: sensor.partion_1_keypad
icon: mdi:alarm-panel
state_color: true