github agoberg85/home-assistant-simple-tabs v1.1.8

20 hours ago

New features:

  • Option for hiding titles of inactive tabs.
  • Dynamic default tab/conditions for default tab.
  • Hide tabs from users

New features example code:

type: custom:simple-tabs
alignment: start
background-color: "#2a2a2a"
border-color: "#555555"
text-color: "#bbbbbb"
hover-color: "#ffffff"
active-text-color: "#000000"
active-background: >-
  linear-gradient(122deg,rgba(230, 163, 222, 1) 10%, rgba(255, 245, 196, 1)
  110%)

# --- NEW FEATURE: HIDE INACTIVE TITLES ---
# Only the active tab shows text. Others show only icons.
hide_inactive_tab_titles: true

# --- NEW FEATURE: DYNAMIC DEFAULT TAB ---
default_tab:
  # Rule 1: If 'group.all_lights' is on, default to Tab 3 (Lights)
  # (Note: 'tab' is the 1-based index number)
  - tab: 3
    conditions:
      - entity: group.all_lights # Or a specific light entity
        state: 'on'
  
  # Rule 2: Fallback to Tab 2 (Kitchen) if lights are off
  - tab: 2

tabs:
  - title: Livingroom
    icon: mdi:sofa
    conditions:
      - template: "{{ now().hour < 17 }}"
    card:
      type: markdown
      content: Livingroom goes here

  - title: Kitchen
    icon: mdi:silverware-fork-knife
    card:
      type: markdown
      content: Kitchen goes here

  - title: >-
      Lights on: {{ states.light | selectattr('state','eq','on') | list | count }}
    icon: mdi:lightbulb
    card:
      type: markdown
      content: Lights goes here

  - title: Bedroom
    icon: mdi:bed
    card:
      type: markdown
      content: Bedroom goes here

  - title: Upstairs
    icon: mdi:toy-brick
    card:
      type: markdown
      content: Upstairs goes here

  - title: Kidsroom
    icon: mdi:account-child-circle
    # --- NEW FEATURE: USER VISIBILITY ---
    conditions:
      # This tab will disappear completely for anyone not in this list
      - user: 
          - "ADMIN_USER_ID"
    card:
      type: markdown
      content: Kidsroom (Restricted Access)

Don't miss a new home-assistant-simple-tabs release

NewReleases is sending notifications on new releases.