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