I found this site, to add a pin code to my existing alarm by Bosch Smart Home.
By default, it doesnt has a pincode to arm or disarm.
So i want to add a pincode to the dashboard when arm or disarm the alarm.
But for some reason, i can also click arm or disarm without typing in the code… But why?
Thats the Code from this page
# Example configuration.yaml entry
alarm_control_panel:
- platform: template
panels:
safe_alarm_panel:
value_template: "{{ states('alarm_control_panel.real_alarm') }}"
arm_away:
service: alarm_control_panel.alarm_arm_away
target:
entity_id: alarm_control_panel.real_alarm
data:
code: !secret alarm_code
disarm:
- condition: state
entity_id: device_tracker.paulus
state: "home"
- service: alarm_control_panel.alarm_arm_home
target:
entity_id: alarm_control_panel.real_alarm
data:
code: !secret alarm_code
in secrets.yaml i have alarm_code: 1234