Asking for help in optimizing a configuration to hide a tab on a tabbed-card from family members

Hi, I’m fairly new to HA and this’ll be my first post on the community site. I created a mobile dashboard for the family members to have controls at their finger tips. So far, everything is working great. I’m using tabbed-card for a few hue-bulb lights in my home. I want to hide one of the tabs (Master bedroom) from my kids but display it for me and my wife. I’ve got it working using state-switch, but I did so by putting the full tabbed-card configuration under each user state (with Bedroom hidden for the default user). I did try to nest this the other way by using state-switch for one of the tab cards but I could not get that working.

My question is how can I optimize this so I don’t have to maintain multiple versions of the same config?

type: custom:state-switch
entity: user
default: default
states:
  Jack:
    type: custom:tabbed-card
    options: {}
    tabs:
      - card:
          type: custom:mushroom-light-card
          entity: light.living_room
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: living-room-lights
        attributes:
          label: Living Room
      - card:
          type: custom:mushroom-light-card
          entity: light.front_porch
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: front-porch-lights
        attributes:
          label: Front Porch
      - card:
          type: custom:mushroom-light-card
          entity: light.bedroom
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: bedroom-lights
        attributes:
          label: Bedroom
  Jill:
    type: custom:tabbed-card
    options: {}
    tabs:
      - card:
          type: custom:mushroom-light-card
          entity: light.living_room
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: living-room-lights
        attributes:
          label: Living Room
      - card:
          type: custom:mushroom-light-card
          entity: light.front_porch
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: front-porch-lights
        attributes:
          label: Front Porch
      - card:
          type: custom:mushroom-light-card
          entity: light.bedroom
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: bedroom-lights
        attributes:
          label: Bedroom
  default:
    type: custom:tabbed-card
    options: {}
    tabs:
      - card:
          type: custom:mushroom-light-card
          entity: light.living_room
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: living-room-lights
        attributes:
          label: Living Room
      - card:
          type: custom:mushroom-light-card
          entity: light.front_porch
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          show collapsible_controls: true
          fill_container: false
          double_tap_action:
            action: navigate
            navigation_path: front-porch-lights
        attributes:
          label: Front Porch

That’s why users maintain a code in yaml: use yaml-anchors for same code.
Yaml-anchors do not work in a storage dashboard mode.

type: custom:state-switch
entity: user
default: default
states:
  Jack: &ref_all_tabs
    type: custom:tabbed-card
    options: {}
    tabs:
      - &ref_tab_living_room
        card:
          ...
        attributes:
          ...
      - &ref_tab_front_porch
        card:
          ...
        attributes:
          ...
      - card:
          ...
        attributes:
          ...
  Jill: *ref_all_tabs
  default:
    type: custom:tabbed-card
    options: {}
    tabs:
      - *ref_tab_living_room
      - *ref_tab_front_porch

Excellent, thank you. Of course, I do have my dashboard in storage mode, so I’m going to have to figure that out.

I am using storage mode only for testing.