Tag instead of code in Alarm Panel

Hi all,
I would like to define a tag (e.g. in secret.yaml) in order to use it instead of the code to arm/disarm the Alarm.

Something like this

service: alarm_control_panel.alarm_arm_home
data:
  code: !secret alarm_code '
target:
  entity_id: alarm_control_panel.home

instead of


service: alarm_control_panel.alarm_arm_home
data:
  code: '1234'
target:
  entity_id: alarm_control_panel.home

Do you know if it is possible?