I did some digging and discovered that the keypad is always displayed when using Template Alarm Control Panel even when no code is required. Someone reported it as Issue in the Core repository, back in April 2020, but it was never addressed (and is now marked as a stale Issue):
Another community member shared a way of suppressing the display of the keypad. The technique it uses relies on a custom card called card-mod.
Card-mod is used to enhance the appearance of other cards. In this case, it would be used to suppress the display of master_panel’s keypad.
You would need to install card-mod (refer to the link above) and then modify the configuration of your Alarm Panel card to instruct card-mod to hide the keypad. In the following example, all of the options shown are standard options for an Alarm Panel card except for the final style option. That one is understood by card-mod.
type: alarm-panel
entity: alarm_control_panel.master_panel
name: Master Panel
states:
- arm_home
- arm_away
- arm_night
style: |
#keypad, #alarmCode {
display: none !important;
}
Aside from the keypad issue, does the technique I proposed, to use a Template Alarm Control Panel, address your original requirement to control both partitions?