Custom dynamic Alarm buttons

hello all, I am sorry but I have no idea what to do, I know what I would like but don’t know how to do it. I have spent many hours on the forums and cannot find anything.

Ideally I would like 2 buttons that turn into 1 based on the state of my alarm based on the mushroom look and feel.

I would like an Arm Home button and Arm Away button.
when either is pressed, it calls my alarm service of course but then those 2 buttons change and become one DISARM button, as at that point it’s the only option.

Then when the disarm button is pressed, without my code it will disarm and both buttons will re appear as the options.

I know this code I am pasting is SOOOOO basic but I literally have tried to finagle everything I could piecing together code from this form and just can’t find anything :0(

if anyone can please help that would be AMAZING!!!

type: custom:stack-in-card
cards:
  - type: horizontal-stack
    cards:
      - type: custom:mushroom-template-card
        primary: ''
        secondary: Arm Stay
        icon: mdi:shield-home
        entity: zone.home
        icon_color: orange
        layout: vertical
        tap_action:
          action: call-service
          service: alarm_control_panel.alarm_arm_home
          data:
            code: '1234'
          target: null
          entity_id: alarm_control_panel.home
      - type: custom:mushroom-template-card
        primary: ''
        secondary: Arm Away
        icon: mdi:shield-account-variant
        entity: alarm_control_panel.home
        icon_color: blue
        layout: vertical
        tap_action:
          action: call-service
          service: alarm_control_panel.alarm_arm_away
          data:
            code: '1234'
          target: null
          entity_id: alarm_control_panel.home
  - type: custom:mushroom-template-card
    primary: ''
    secondary: Disarm
    icon: mdi:shield-lock-open
    entity: alarm_control_panel.home
    icon_color: green
    layout: vertical
    tap_action:
      action: call-service
      service: alarm_control_panel.alarm_disarm
      data:
        code: '1234'
      target: null
      entity_id: alarm_control_panel.home