Hi,
I would like to create an Alarm Panel
I got already the function
- 2 state (armed away, disarmed) related to the state from an HM Systemvariable
I cant find how I can setup:
- Panel Keypad only visible when Armed because only than I would Enter a code to disarm
- When the System is “armed” and I Enter the correct code the action = virtual Key HM-RCV-50 Chanel 24 short press
- When the System is “disarmed” and I select “arm away” the action = virtual Key HM-RCV-50 Chanel 26 short press
alarm_control_panel:
- platform: template
panels:
safe_alarm_panel:
name: Alarmanlage
value_template: >
{% if is_state('binary_sensor.ccu3_sv_sv_alarm_extern_scharf', 'on') %}
{{'armed_away'}}
{% else %}
{{'disarmed'}}
{% endif %}
arm_away:
service: alarm_control_panel.alarm_turn_on
target:
entity_id: binary_sensor.ccu3_sv_sv_alarm_extern_scharf
disarm:
service: alarm_control_panel.alarm_turn_off
target:
entity_id: binary_sensor.ccu3_sv_sv_alarm_extern_scharf
data:
code: "1234"