I want to change the status of the Alarm Control Panel with a boolean switch.
For example
off = disarm
on = arm_home
The other way around, the alarm control panel should also report its status to the boolean switch.
I’ve already experimented a lot with the Template Alarm Control Panel here. Unfortunately without success.
What is the best way to do this?
alarm_control_panel:
- platform: manual
name: Home Alarm
# code: '1234'
arming_time: 0
delay_time: 0
trigger_time: 1200
disarm_after_trigger: false
disarmed:
trigger_time: 0
armed_home:
arming_time: 0
delay_time: 0
- platform: template
panels:
alarm_home:
value_template: "{{ states('input_boolean.alarmanlage_scharf') }}"
arm_home:
service: alarm_control_panel.alarm_home
data:
entity_id: input_boolean.alarmanlage_scharf
disarm:
service: alarm_control_panel.alarm_home
data:
entity_id: input_boolean.alarmanlage_scharf