I struggled with this for a long time as well. Here's what you can do to solve it:
Wire a free PGM (I use PGM3 on my EVO panel) to an available zone with a 1k resistor on the wire. The zone should be set to 24hr xxx (haven't tested beyond using those):
View attachment 1475731
Your PGM should be configured without an activation event:
View attachment 1475733
When you trigger the PGM via HA, it'll open the zone, which in turns triggers the alarm with whatever you set the zone type to, in my case, 24Hr Hold Up.
Just tested it again and it works fine. It's not really a panic, but more a way of just triggering the alarm via HA with one button. Unfortunately there isn't an option to trigger a panic state via the zone type.
Button in HA:
View attachment 1475735
Config (most of which can be ignored, I like fiddling with the look of things):
YAML:
type: custom:mushroom-template-card
entity: switch.pgm_homeassistant_on
primary: >
{% if is_state('switch.pgm_homeassistant_on', 'on') %} PANIC {% elif
is_state('switch.pgm_homeassistant_on', 'off') %} PANIC {% endif %}
secondary: ''
icon: >
{% if is_state('switch.pgm_homeassistant_on', 'on') %} mdi:alert {% elif
is_state('switch.pgm_homeassistant_on', 'off') %} mdi:alert-outline {% endif
%}
icon_color: >
{% if is_state('switch.pgm_homeassistant_on', 'on') %} red {% elif
is_state('switch.pgm_homeassistant_on', 'off') %} red {% endif %}
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: toggle
fill_container: true
layout: vertical
card_mod:
style: |
ha-card {
border-radius: 20px;
min-height: 10px;
padding-top: 3px !important;
padding-bottom: 3px !important;
{% if is_state('switch.pgm_homeassistant_on', 'on') %}
animation: borderPulse 1s ease-out infinite;
{% endif %}
}
@keyframes borderPulse {
50% {
box-shadow: 0 0 50px red;
}
}
:host {
--mush-icon-size: 30px;
--mush-card-primary-font-size: 12px;
--mush-icon-symbol-size: 1.2em
}